/*****************************************************************************
* main_inteface.cpp : Main interface
*****************************************************************************
- * Copyright (C) 2006 the VideoLAN team
+ * Copyright (C) 2006-2007 the VideoLAN team
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
+ * Jean-Baptiste Kempf <jb@videolan.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
bookmarksDialog(); break;
case INTF_DIALOG_EXTENDED:
extendedDialog(); break;
+ /* We might want to make it better with custom functions */
case INTF_DIALOG_POPUPMENU:
+ QVLCMenu::PopupMenu( p_intf, (de->i_arg != 0) ); break;
case INTF_DIALOG_AUDIOPOPUPMENU:
+ QVLCMenu::AudioPopupMenu( p_intf ); break;
case INTF_DIALOG_VIDEOPOPUPMENU:
+ QVLCMenu::VideoPopupMenu( p_intf ); break;
case INTF_DIALOG_MISCPOPUPMENU:
- popupMenu( de->i_dialog ); break;
+ QVLCMenu::MiscPopupMenu( p_intf ); break;
case INTF_DIALOG_INTERACTION:
doInteraction( de->p_arg ); break;
case INTF_DIALOG_VLM:
void DialogsProvider::openDialog()
{
- openDialog( 0 );
+ openDialog( OPEN_FILE_TAB );
}
void DialogsProvider::openFileDialog()
{
- openDialog( 0 );
+ openDialog( OPEN_FILE_TAB );
}
void DialogsProvider::openDiscDialog()
{
- openDialog( 1 );
+ openDialog( OPEN_DISC_TAB );
}
void DialogsProvider::openNetDialog()
{
- openDialog( 2 );
+ openDialog( OPEN_NETWORK_TAB );
}
void DialogsProvider::openCaptureDialog()
{
- openDialog( 3 );
+ openDialog( OPEN_CAPTURE_TAB );
}
void DialogsProvider::openDialog( int i_tab )
{
* Sout emulation
****************************************************************************/
-void DialogsProvider::streamingDialog( QString mrl)
+void DialogsProvider::streamingDialog( QString mrl, bool b_transcode_only )
{
- SoutDialog *s = new SoutDialog( p_intf->p_sys->p_mi, p_intf );
+ SoutDialog *s = new SoutDialog( p_intf->p_sys->p_mi, p_intf,
+ b_transcode_only );
if( s->exec() == QDialog::Accepted )
{
msg_Err(p_intf, "mrl %s\n", qta(s->mrl));
void DialogsProvider::openThenStreamingDialogs()
{
- OpenDialog::getInstance( p_intf->p_sys->p_mi , p_intf, true )->showTab( 0 );
+ OpenDialog::getInstance( p_intf->p_sys->p_mi , p_intf, OPEN_AND_STREAM )
+ ->showTab( 0 );
+}
+
+void DialogsProvider::openThenTranscodingDialogs()
+{
+ OpenDialog::getInstance( p_intf->p_sys->p_mi , p_intf, OPEN_AND_SAVE )
+ ->showTab( 0 );
}
/*
void DialogsProvider::streamingDialog()
{
var_SetString( p_intf, "intf-switch", "skins2" );
}
-
-void DialogsProvider::popupMenu( int i_dialog )
-{
-}