Commit 3a9d24fa authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Menus modifications and additions. ( hide & playlist mainly )

parent de4f8d2c
......@@ -272,6 +272,9 @@ void DialogsProvider::simpleOpenDialog()
addFromSimple( true, true );
}
/****************
* Playlist *
****************/
void DialogsProvider::openPlaylist()
{
QStringList files = showSimpleOpen( qtr( "Open playlist file" ),
......@@ -466,6 +469,11 @@ void DialogsProvider::doInteraction( intf_dialog_args_t *p_arg )
}
}
void DialogsProvider::hideMenus()
{
/* TODO */
}
void DialogsProvider::switchToSkins()
{
var_SetString( p_intf, "intf-switch", "skins2" );
......
......@@ -154,6 +154,7 @@ public slots:
void PLAppendDir();
void MLAppendDir();
void quit();
void hideMenus();
void switchToSkins();
void gotoTimeDialog();
void helpDialog();
......
......@@ -105,6 +105,7 @@ private:
void customEvent( QEvent *);
public slots:
void undockPlaylist();
void playlist();
private slots:
void setNavigation( int );
void setStatus( int );
......@@ -115,7 +116,6 @@ private slots:
void stop();
void prev();
void next();
void playlist();
void visual();
void advanced();
void updateVolume( int sliderVolume );
......
......@@ -240,6 +240,7 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, MainInterface *mi,
DP_SADD( qtr(I_MENU_MSG), "", "", messagesDialog(), "Ctrl+M" );
DP_SADD( qtr(I_MENU_INFO) , "", "", mediaInfoDialog(), "Ctrl+J" );
DP_SADD( qtr(I_MENU_CODECINFO) , "", "", mediaCodecDialog(), "Ctrl+I" );
DP_SADD( qtr(I_MENU_GOTOTIME), "","",gotoTimeDialog(), "Ctrl+T" );
menu->addSeparator();
if( mi )
{
......@@ -253,9 +254,10 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, MainInterface *mi,
adv->setCheckable( true );
if( visual_selector_enabled ) adv->setChecked( true );
#endif
menu->addAction ( qtr( "Playlist"), mi, SLOT( playlist() ) );
}
DP_SADD( qtr(I_MENU_EXT), "","",extendedDialog(), "Ctrl+E" );
DP_SADD( qtr(I_MENU_GOTOTIME), "","",gotoTimeDialog(), "Ctrl+T" );
DP_SADD( qtr("Hide Menus..."), "","",hideMenus(), "Ctrl+H" );
menu->addSeparator();
DP_SADD( qtr("Preferences"), "", "", prefsDialog(), "Ctrl+P" );
return menu;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment