setModal( modal );
ui.setupUi( this );
setWindowTitle( qtr("Open" ) );
- fileOpenPanel = new FileOpenPanel(this , p_intf );
- diskOpenPanel = new DiskOpenPanel(this , p_intf );
- netOpenPanel = new NetOpenPanel(this , p_intf );
- ui.Tab->addTab(fileOpenPanel, qtr("File"));
- ui.Tab->addTab(diskOpenPanel, qtr("Disc"));
- ui.Tab->addTab(netOpenPanel, qtr("Network"));
+ fileOpenPanel = new FileOpenPanel( this , p_intf );
+ diskOpenPanel = new DiskOpenPanel( this , p_intf );
+ 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.advancedFrame->hide();
CONNECT( fileOpenPanel, mrlUpdated( QString ), this, updateMRL(QString) );
CONNECT( netOpenPanel, mrlUpdated( QString ), this, updateMRL(QString) );
CONNECT( diskOpenPanel, mrlUpdated( QString ), this, updateMRL(QString) );
+ CONNECT( captureOpenPanel, mrlUpdated( QString ), this,
+ updateMRL(QString) );
+
CONNECT( fileOpenPanel, methodChanged( QString ),
this, newMethod(QString) );
PLAYLIST_APPEND | (i ? 0 : PLAYLIST_GO) |
( i ? PLAYLIST_PREPARSE : 0 ),
PLAYLIST_END, VLC_TRUE, VLC_FALSE );
- }
+ }
}
else
case INTF_DIALOG_NET:
openNetDialog(); break;
case INTF_DIALOG_CAPTURE:
- openDialog(); break;
+ openCaptureDialog(); break;
case INTF_DIALOG_PLAYLIST:
playlistDialog(); break;
case INTF_DIALOG_MESSAGES:
{
openDialog( 2 );
}
+void DialogsProvider::openCaptureDialog()
+{
+ openDialog( 3 );
+}
void DialogsProvider::openDialog( int i_tab )
{
OpenDialog::getInstance( p_intf->p_sys->p_mi , p_intf )->showTab( i_tab );
DP_SADD( qtr("Open &File..." ), "", "", openFileDialog() );
DP_SADD( qtr("Open &Disc..." ), "", "", openDiscDialog());
DP_SADD( qtr("Open &Network..." ), "", "", openNetDialog());
+ DP_SADD( qtr("Open &Network..." ), "", "", openCaptureDialog());
menu->addSeparator();
DP_SADD( qtr("Streaming..."), "", "", streamingDialog() );
menu->addSeparator();