X-Git-Url: https://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;p=vlc.git;a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Fdialogs%2Fopen.cpp;h=9ae4d5ecb60e516cea42aab1f10e0db758f430c3;hp=d0f3209a062eccc749cde5666ee32725547ee2de;hb=f49d815ad696220ebe2a97cdd8d2f09d129e0022;hpb=fd62f6b15e334e2e31b832786138d256ff01c4c7 diff --git a/modules/gui/qt4/dialogs/open.cpp b/modules/gui/qt4/dialogs/open.cpp index d0f3209a06..9ae4d5ecb6 100644 --- a/modules/gui/qt4/dialogs/open.cpp +++ b/modules/gui/qt4/dialogs/open.cpp @@ -47,10 +47,10 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal ) : netOpenPanel = new NetOpenPanel( this , p_intf ); captureOpenPanel = new CaptureOpenPanel( this, p_intf ); - ui.Tab->addTab( fileOpenPanel, qtr( "File" ) ); - ui.Tab->addTab( diskOpenPanel, qtr( "Disc" ) ); - ui.Tab->addTab( netOpenPanel, qtr( "Network" ) ); - ui.Tab->addTab( captureOpenPanel, qtr( "Capture" ) ); + ui.Tab->addTab( fileOpenPanel, qtr( "&File" ) ); + ui.Tab->addTab( diskOpenPanel, qtr( "&Disc" ) ); + ui.Tab->addTab( netOpenPanel, qtr( "&Network" ) ); + ui.Tab->addTab( captureOpenPanel, qtr( "Capture &Device" ) ); ui.advancedFrame->hide(); @@ -74,9 +74,9 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal ) : CONNECT( ui.slaveText, textChanged(QString), this, updateMRL()); CONNECT( ui.cacheSpinBox, valueChanged(int), this, updateMRL()); - BUTTONACT( ui.closeButton, playOrEnqueue()); + BUTTONACT( ui.closeButton, play()); BUTTONACT( ui.cancelButton, cancel()); - BUTTONACT( ui.enqueueButton, playOrEnqueue( true )); + BUTTONACT( ui.enqueueButton, enqueue()); BUTTONACT( ui.advancedCheckBox , toggleAdvancedPanel() ); /* Initialize caching */ @@ -111,7 +111,17 @@ void OpenDialog::cancel() reject(); } -void OpenDialog::playOrEnqueue(bool b_enqueue = false ) +void OpenDialog::play() +{ + playOrEnqueue( false ); +} + +void OpenDialog::enqueue() +{ + playOrEnqueue( true ); +} + +void OpenDialog::playOrEnqueue( bool b_enqueue = false ) { this->toggleVisible(); mrl = ui.advancedLineInput->text();