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();
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 */
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();
QString storedMethod;
int advHeight, mainHeight;
+
+ void playOrEnqueue( bool );
private slots:
void cancel();
- void playOrEnqueue(bool);
+ void play();
+ void enqueue();
void toggleAdvancedPanel();
- void updateMRL(QString);
+ void updateMRL( QString );
void updateMRL();
void newMethod(QString);
void signalCurrent();
DP_SADD( qtr("Open &File..." ), "", "", openFileDialog() );
DP_SADD( qtr("Open &Disc..." ), "", "", openDiscDialog());
DP_SADD( qtr("Open &Network..." ), "", "", openNetDialog());
- DP_SADD( qtr("Open &Network..." ), "", "", openCaptureDialog());
+ DP_SADD( qtr("Open &Capture Device..." ), "", "", openCaptureDialog());
menu->addSeparator();
- DP_SADD( qtr("Streaming..."), "", "", streamingDialog() );
+ DP_SADD( qtr("&Streaming..."), "", "", streamingDialog() );
menu->addSeparator();
DP_SADD( qtr("&Quit") , "", "", quit() );
return menu;
<item>
<widget class="QCheckBox" name="advancedCheckBox" >
<property name="text" >
- <string>Show more options</string>
+ <string>&Show more options</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cancelButton" >
<property name="text" >
- <string>Cancel</string>
+ <string>&Cancel</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="enqueueButton" >
<property name="text" >
- <string>Enqueue</string>
+ <string>&Enqueue</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="closeButton" >
<property name="text" >
- <string>Play</string>
+ <string>&Play</string>
</property>
<property name="default" >
<bool>true</bool>