vlc_linux/vlc-3.0.16/modules/gui/qt/dialogs/open.cpp
/* Finish the dialog and decide if you open another one after */
Finish the dialog and decide if you open another one after
Finish the dialog and decide if you open another one after
void OpenDialog::setMenuAction()
{
    if( i_action_flag == SELECT )
    {
        playButton->hide();
        selectButton->show();
        selectButton->setDefault( true );
    }
    else
    {
        switch ( i_action_flag )
        {
        case OPEN_AND_STREAM:
            playButton->setText( qtr( "&Stream" ) );
            break;
        case OPEN_AND_SAVE:
            playButton->setText( qtr( "C&onvert / Save" ) );
            break;
        case OPEN_AND_ENQUEUE:
            playButton->setText( qtr( "&Enqueue" ) );
            break;
        case OPEN_AND_PLAY:
        default:
            playButton->setText( qtr( "&Play" ) );
        }
        playButton->show();
        selectButton->hide();
    }
}
void OpenDialog :: setMenuAction ( ) { if ( i_action_flag == SELECT ) { playButton -> hide ( ) ; selectButton -> show ( ) ; selectButton -> setDefault ( true ) ; } else { switch ( i_action_flag ) { case OPEN_AND_STREAM : playButton -> setText ( qtr ( " " ) ) ; break ; case OPEN_AND_SAVE : playButton -> setText ( qtr ( " " ) ) ; break ; case OPEN_AND_ENQUEUE : playButton -> setText ( qtr ( " " ) ) ; break ; case OPEN_AND_PLAY : default : playButton -> setText ( qtr ( " " ) ) ; } playButton -> show ( ) ; selectButton -> hide ( ) ; } }
Finish the dialog and decide if you open another one after
Finish the dialog and decide if you open another one after