vlc_linux/vlc-3.0.16/modules/gui/qt/dialogs/open.cpp
/* Enqueue Action, called from selectSlots or enqueue Menu */
Enqueue Action, called from selectSlots or enqueue Menu
Enqueue Action called from selectSlots or enqueue Menu
void OpenDialog::enqueue( bool b_enqueue )
{
    toggleVisible();
    if( i_action_flag == SELECT )
    {
        accept();
        return;
    }
    for( int i = 0; i < OPEN_TAB_MAX; i++ )
        qobject_cast<OpenPanel*>( ui.Tab->widget( i ) )->onAccept();
    itemsMRL.sort();
    for( int i = 0; i < itemsMRL.count(); i++ )
    {
        bool b_start = !i && !b_enqueue;
        QStringList optionsList = getOptions().split( " :" );
        Open::openMRLwithOptions( p_intf, itemsMRL[i], &optionsList, b_start, b_pl );
    }
}
void OpenDialog :: enqueue ( bool b_enqueue ) { toggleVisible ( ) ; if ( i_action_flag == SELECT ) { accept ( ) ; return ; } for ( int i = 0 ; i < OPEN_TAB_MAX ; i ++ ) qobject_cast < OpenPanel * > ( ui . Tab -> widget ( i ) ) -> onAccept ( ) ; itemsMRL . sort ( ) ; for ( int i = 0 ; i < itemsMRL . count ( ) ; i ++ ) { bool b_start = ! i && ! b_enqueue ; QStringList optionsList = getOptions ( ) . split ( " " ) ; Open :: openMRLwithOptions ( p_intf , itemsMRL [ i ] , & optionsList , b_start , b_pl ) ; } }
Enqueue Action, called from selectSlots or enqueue Menu
Enqueue Action called from selectSlots or enqueue Menu
/* Sort alphabetically */ /* Go through the item list */ /* Take options from the UI, not from what we stored */ /* Switch between enqueuing and starting the item */