Changeset 06970296ddc77ca6e23e1e669e6d110672f21d74
- Timestamp:
- 25/06/08 01:59:37
(4 months ago)
- Author:
- Jean-Baptiste Kempf <jb@videolan.org>
- git-committer:
- Jean-Baptiste Kempf <jb@videolan.org> 1214351977 -0700
- git-parent:
[6ec764aec733dacb654ce11d2f0566c54e3b0c15]
- git-author:
- Jean-Baptiste Kempf <jb@videolan.org> 1214351977 -0700
- Message:
Cosmetics
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r39cbef1 |
r0697029 |
|
| 92 | 92 | #define OPACITY_TEXT N_( "Windows opacity between 0.1 and 1." ) |
|---|
| 93 | 93 | #define OPACITY_LONGTEXT N_( "Sets the windows opacity between 0.1 and 1 " \ |
|---|
| 94 | | "for main interface, playlist and extended panel." \ |
|---|
| | 94 | "for main interface, playlist and extended panel."\ |
|---|
| 95 | 95 | " This option only works with Windows and " \ |
|---|
| 96 | 96 | "X11 with composite extensions." ) |
|---|
| … | … | |
| 229 | 229 | #endif |
|---|
| 230 | 230 | |
|---|
| | 231 | /* Allocations */ |
|---|
| 231 | 232 | p_intf->p_sys = (intf_sys_t *)malloc( sizeof( intf_sys_t ) ); |
|---|
| 232 | 233 | if( !p_intf->p_sys ) |
|---|
| … | … | |
| 236 | 237 | p_intf->pf_run = Run; |
|---|
| 237 | 238 | |
|---|
| | 239 | /* Access to the playlist */ |
|---|
| 238 | 240 | p_intf->p_sys->p_playlist = pl_Yield( p_intf ); |
|---|
| | 241 | /* Listen to the messages */ |
|---|
| 239 | 242 | p_intf->p_sys->p_sub = msg_Subscribe( p_intf ); |
|---|
| 240 | 243 | |
|---|
| … | … | |
| 310 | 313 | /* Start the QApplication here */ |
|---|
| 311 | 314 | QApplication *app = new QApplication( argc, argv , true ); |
|---|
| | 315 | p_intf->p_sys->p_app = app; |
|---|
| | 316 | |
|---|
| | 317 | /* Icon setting |
|---|
| | 318 | FIXME: use a bigger icon ? */ |
|---|
| 312 | 319 | if( QDate::currentDate().dayOfYear() >= 354 ) |
|---|
| 313 | 320 | app->setWindowIcon( QIcon( QPixmap(vlc_christmas_xpm) ) ); |
|---|
| 314 | 321 | else |
|---|
| 315 | 322 | app->setWindowIcon( QIcon( QPixmap(vlc_xpm) ) ); |
|---|
| 316 | | p_intf->p_sys->p_app = app; |
|---|
| 317 | | |
|---|
| 318 | | // Initialize timers and the Dialog Provider |
|---|
| | 323 | |
|---|
| | 324 | /* Initialize timers and the Dialog Provider */ |
|---|
| 319 | 325 | DialogsProvider::getInstance( p_intf ); |
|---|
| 320 | 326 | |
|---|
| 321 | | // Create the normal interface |
|---|
| | 327 | /* Create the normal interface in non-DP mode */ |
|---|
| 322 | 328 | if( !p_intf->pf_show_dialog ) |
|---|
| 323 | 329 | { |
|---|
| 324 | | MainInterface *p_mi = new MainInterface( p_intf ); |
|---|
| 325 | | p_intf->p_sys->p_mi = p_mi; |
|---|
| | 330 | p_intf->p_sys->p_mi = new MainInterface( p_intf ); |
|---|
| 326 | 331 | /* We don't show it because it is done in the MainInterface constructor |
|---|
| 327 | 332 | p_mi->show(); */ |
|---|
| … | … | |
| 334 | 339 | } |
|---|
| 335 | 340 | |
|---|
| | 341 | /* Explain to the core how to show a dialog :D */ |
|---|
| | 342 | p_intf->pf_show_dialog = ShowDialog; |
|---|
| 336 | 343 | |
|---|
| 337 | 344 | #ifdef ENABLE_NLS |
|---|
| … | … | |
| 354 | 361 | #endif //ENABLE_NLS |
|---|
| 355 | 362 | |
|---|
| 356 | | /* Explain to the core how to show a dialog :D */ |
|---|
| 357 | | p_intf->pf_show_dialog = ShowDialog; |
|---|
| 358 | | |
|---|
| 359 | 363 | /* Last settings */ |
|---|
| 360 | 364 | app->setQuitOnLastWindowClosed( false ); |
|---|
| 361 | 365 | |
|---|
| 362 | | /* retrieve last known path used in file browsing */ |
|---|
| | 366 | /* Retrieve last known path used in file browsing */ |
|---|
| 363 | 367 | char *psz_path = config_GetPsz( p_intf, "qt-filedialog-path" ); |
|---|
| 364 | 368 | p_intf->p_sys->psz_filepath = EMPTY_STR( psz_path ) ? psz_path |
|---|
| 365 | | : config_GetHomeDir(); |
|---|
| | 369 | : config_GetHomeDir(); |
|---|
| 366 | 370 | |
|---|
| 367 | 371 | #ifdef UPDATE_CHECK |
|---|
| … | … | |
| 397 | 401 | MainInputManager::killInstance(); |
|---|
| 398 | 402 | |
|---|
| | 403 | /* Delete the application */ |
|---|
| 399 | 404 | delete app; |
|---|
| 400 | 405 | |
|---|
| | 406 | /* Save the path */ |
|---|
| 401 | 407 | config_PutPsz( p_intf, "qt-filedialog-path", p_intf->p_sys->psz_filepath ); |
|---|
| 402 | 408 | free( psz_path ); |
|---|
| … | … | |
| 487 | 493 | vlc_object_release (intf); |
|---|
| 488 | 494 | } |
|---|
| | 495 | |
|---|