Changeset f5a08fa8831935ee37056a6832c2c6b90bf55a48
- Timestamp:
- 12/21/07 01:58:18
(7 months ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1198198698 +0000
- git-parent:
[6586a8ab643eb5bc459a5085ea99ed946a476f54]
- git-author:
- Rafaël Carré <funman@videolan.org> 1198198698 +0000
- Message:
qt4: special icon made by Geoffrey Roussel alias akem/meka is displayed in the last days of the year.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r7d6fd3c |
rf5a08fa |
|
| 85 | 85 | Frank Chao <frank0624 at gmail.com> - Chinese Traditional translation |
|---|
| 86 | 86 | Fumio Nakayama <endymion at ca2.so-net.ne.jp> - Japanese translation |
|---|
| | 87 | Geoffrey Roussel <meka321 at hotmail dot com> - Christmas easter egg Artwork |
|---|
| 87 | 88 | Georgi Chorbadzhiyski <gf at unixsol dot org> - HTTP access error handling fix |
|---|
| 88 | 89 | Gisle Vanem <giva at bgnet dot no> - gettieoffay under win32 |
|---|
| rf651c3b |
rf5a08fa |
|
| 43 | 43 | #include <QPalette> |
|---|
| 44 | 44 | #include <QResizeEvent> |
|---|
| | 45 | #include <QDate> |
|---|
| 45 | 46 | |
|---|
| 46 | 47 | /********************************************************************** |
|---|
| … | … | |
| 150 | 151 | label->setMinimumHeight( MIN_BG_SIZE ); |
|---|
| 151 | 152 | label->setMinimumWidth( MIN_BG_SIZE ); |
|---|
| 152 | | label->setPixmap( QPixmap( ":/vlc128.png" ) ); |
|---|
| | 153 | if( QDate::currentDate().dayOfYear() >= 354 ) |
|---|
| | 154 | label->setPixmap( QPixmap( ":/vlc128-christmas.png" ) ); |
|---|
| | 155 | else |
|---|
| | 156 | label->setPixmap( QPixmap( ":/vlc128.png" ) ); |
|---|
| 153 | 157 | |
|---|
| 154 | 158 | QHBoxLayout *backgroundLayout = new QHBoxLayout( this ); |
|---|
| … | … | |
| 169 | 173 | if( !p_input || p_input->b_dead ) |
|---|
| 170 | 174 | { |
|---|
| 171 | | label->setPixmap( QPixmap( ":/vlc128.png" ) ); |
|---|
| | 175 | if( QDate::currentDate().dayOfYear() >= 354 ) |
|---|
| | 176 | label->setPixmap( QPixmap( ":/vlc128-christmas.png" ) ); |
|---|
| | 177 | else |
|---|
| | 178 | label->setPixmap( QPixmap( ":/vlc128.png" ) ); |
|---|
| 172 | 179 | return; |
|---|
| 173 | 180 | } |
|---|
| … | … | |
| 180 | 187 | QString arturl = url.replace( "file://",QString("" ) ); |
|---|
| 181 | 188 | if( arturl.isNull() ) |
|---|
| 182 | | label->setPixmap( QPixmap( ":/vlc128.png" ) ); |
|---|
| | 189 | { |
|---|
| | 190 | if( QDate::currentDate().dayOfYear() >= 354 ) |
|---|
| | 191 | label->setPixmap( QPixmap( ":/vlc128-christmas.png" ) ); |
|---|
| | 192 | else |
|---|
| | 193 | label->setPixmap( QPixmap( ":/vlc128.png" ) ); |
|---|
| | 194 | } |
|---|
| 183 | 195 | else |
|---|
| 184 | 196 | { |
|---|
| r77c834e |
rf5a08fa |
|
| 44 | 44 | #include <QEvent> |
|---|
| 45 | 45 | #include <QFileDialog> |
|---|
| | 46 | #include <QDate> |
|---|
| 46 | 47 | |
|---|
| 47 | 48 | |
|---|
| … | … | |
| 91 | 92 | qtr( "Information about VLC media player." ) ); |
|---|
| 92 | 93 | QLabel *iconVLC = new QLabel; |
|---|
| 93 | | iconVLC->setPixmap( QPixmap( ":/vlc48.png" ) ); |
|---|
| | 94 | if( QDate::currentDate().dayOfYear() >= 354 ) |
|---|
| | 95 | iconVLC->setPixmap( QPixmap( ":/vlc48-christmas.png" ) ); |
|---|
| | 96 | else |
|---|
| | 97 | iconVLC->setPixmap( QPixmap( ":/vlc48.png" ) ); |
|---|
| 94 | 98 | layout->addWidget( iconVLC, 0, 0, 1, 1 ); |
|---|
| 95 | 99 | layout->addWidget( introduction, 0, 1, 1, 7 ); |
|---|
| … | … | |
| 120 | 124 | |
|---|
| 121 | 125 | QLabel *iconVLC2 = new QLabel; |
|---|
| 122 | | iconVLC2->setPixmap( QPixmap( ":/vlc128.png" ) ); |
|---|
| | 126 | if( QDate::currentDate().dayOfYear() >= 354 ) |
|---|
| | 127 | iconVLC2->setPixmap( QPixmap( ":/vlc128-christmas.png" ) ); |
|---|
| | 128 | else |
|---|
| | 129 | iconVLC2->setPixmap( QPixmap( ":/vlc128.png" ) ); |
|---|
| 123 | 130 | infoLayout->addWidget( iconVLC2 ); |
|---|
| 124 | 131 | infoLayout->addWidget( infoLabel ); |
|---|
| r6be497d |
rf5a08fa |
|
| 51 | 51 | #include <QToolBar> |
|---|
| 52 | 52 | #include <QGroupBox> |
|---|
| | 53 | #include <QDate> |
|---|
| 53 | 54 | |
|---|
| 54 | 55 | #include <assert.h> |
|---|
| … | … | |
| 869 | 870 | void MainInterface::createSystray() |
|---|
| 870 | 871 | { |
|---|
| 871 | | QIcon iconVLC = QIcon( QPixmap( ":/vlc128.png" ) ); |
|---|
| | 872 | QIcon iconVLC; |
|---|
| | 873 | if( QDate::currentDate().dayOfYear() >= 354 ) |
|---|
| | 874 | iconVLC = QIcon( QPixmap( ":/vlc128-christmas.png" ) ); |
|---|
| | 875 | else |
|---|
| | 876 | iconVLC = QIcon( QPixmap( ":/vlc128.png" ) ); |
|---|
| 872 | 877 | sysTray = new QSystemTrayIcon( iconVLC, this ); |
|---|
| 873 | 878 | sysTray->setToolTip( qtr( "VLC media player" )); |
|---|
| r5ace50e |
rf5a08fa |
|
| 26 | 26 | #include <QLocale> |
|---|
| 27 | 27 | #include <QTranslator> |
|---|
| | 28 | #include <QDate> |
|---|
| 28 | 29 | |
|---|
| 29 | 30 | #include "qt4.hpp" |
|---|
| … | … | |
| 38 | 39 | |
|---|
| 39 | 40 | #include "../../../share/vlc32x32.xpm" |
|---|
| | 41 | #include "../../../share/vlc32x32-christmas.xpm" |
|---|
| 40 | 42 | |
|---|
| 41 | 43 | /***************************************************************************** |
|---|
| … | … | |
| 263 | 265 | /* Start the QApplication here */ |
|---|
| 264 | 266 | QApplication *app = new QApplication( argc, argv , true ); |
|---|
| 265 | | app->setWindowIcon( QIcon( QPixmap(vlc_xpm) ) ); |
|---|
| | 267 | if( QDate::currentDate().dayOfYear() >= 354 ) |
|---|
| | 268 | app->setWindowIcon( QIcon( QPixmap(vlc_christmas_xpm) ) ); |
|---|
| | 269 | else |
|---|
| | 270 | app->setWindowIcon( QIcon( QPixmap(vlc_xpm) ) ); |
|---|
| 266 | 271 | p_intf->p_sys->p_app = app; |
|---|
| 267 | 272 | |
|---|
| r94b8b91 |
rf5a08fa |
|
| 6 | 6 | <file alias="vlc16.png">../../../share/vlc16x16.png</file> |
|---|
| 7 | 7 | <file alias="vlc48.png">../../../share/vlc48x48.png</file> |
|---|
| | 8 | <file alias="vlc128-christmas.png">../../../share/vlc128x128-christmas.png</file> |
|---|
| | 9 | <file alias="vlc48-christmas.png">../../../share/vlc48x48-christmas.png</file> |
|---|
| 8 | 10 | <file>pixmaps/advprefs_audio.png</file> |
|---|
| 9 | 11 | <file>pixmaps/advprefs_codec.png</file> |
|---|