Changeset 06970296ddc77ca6e23e1e669e6d110672f21d74

Show
Ignore:
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
  • modules/gui/qt4/qt4.cpp

    r39cbef1 r0697029  
    9292#define OPACITY_TEXT N_( "Windows opacity between 0.1 and 1." ) 
    9393#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."
    9595                             " This option only works with Windows and " \ 
    9696                             "X11 with composite extensions." ) 
     
    229229#endif 
    230230 
     231    /* Allocations */ 
    231232    p_intf->p_sys = (intf_sys_t *)malloc( sizeof( intf_sys_t ) ); 
    232233    if( !p_intf->p_sys ) 
     
    236237    p_intf->pf_run = Run; 
    237238 
     239    /* Access to the playlist */ 
    238240    p_intf->p_sys->p_playlist = pl_Yield( p_intf ); 
     241    /* Listen to the messages */ 
    239242    p_intf->p_sys->p_sub = msg_Subscribe( p_intf ); 
    240243 
     
    310313    /* Start the QApplication here */ 
    311314    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 ? */ 
    312319    if( QDate::currentDate().dayOfYear() >= 354 ) 
    313320        app->setWindowIcon( QIcon( QPixmap(vlc_christmas_xpm) ) ); 
    314321    else 
    315322        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 */ 
    319325    DialogsProvider::getInstance( p_intf ); 
    320326 
    321     // Create the normal interface 
     327    /* Create the normal interface in non-DP mode */ 
    322328    if( !p_intf->pf_show_dialog ) 
    323329    { 
    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 ); 
    326331        /* We don't show it because it is done in the MainInterface constructor 
    327332        p_mi->show(); */ 
     
    334339    } 
    335340 
     341    /* Explain to the core how to show a dialog :D */ 
     342    p_intf->pf_show_dialog = ShowDialog; 
    336343 
    337344#ifdef ENABLE_NLS 
     
    354361#endif  //ENABLE_NLS 
    355362 
    356     /* Explain to the core how to show a dialog :D */ 
    357     p_intf->pf_show_dialog = ShowDialog; 
    358  
    359363    /* Last settings */ 
    360364    app->setQuitOnLastWindowClosed( false ); 
    361365 
    362     /*        retrieve last known path used in file browsing */ 
     366    /* Retrieve last known path used in file browsing */ 
    363367    char *psz_path = config_GetPsz( p_intf, "qt-filedialog-path" ); 
    364368    p_intf->p_sys->psz_filepath = EMPTY_STR( psz_path ) ? psz_path 
    365                            : config_GetHomeDir(); 
     369                                                        : config_GetHomeDir(); 
    366370 
    367371#ifdef UPDATE_CHECK 
     
    397401    MainInputManager::killInstance(); 
    398402 
     403    /* Delete the application */ 
    399404    delete app; 
    400405 
     406    /* Save the path */ 
    401407    config_PutPsz( p_intf, "qt-filedialog-path", p_intf->p_sys->psz_filepath ); 
    402408    free( psz_path ); 
     
    487493    vlc_object_release (intf); 
    488494} 
     495