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() ...@@ -272,6 +272,9 @@ void DialogsProvider::simpleOpenDialog()
addFromSimple( true, true ); addFromSimple( true, true );
} }
/****************
* Playlist *
****************/
void DialogsProvider::openPlaylist() void DialogsProvider::openPlaylist()
{ {
QStringList files = showSimpleOpen( qtr( "Open playlist file" ), QStringList files = showSimpleOpen( qtr( "Open playlist file" ),
...@@ -466,6 +469,11 @@ void DialogsProvider::doInteraction( intf_dialog_args_t *p_arg ) ...@@ -466,6 +469,11 @@ void DialogsProvider::doInteraction( intf_dialog_args_t *p_arg )
} }
} }
void DialogsProvider::hideMenus()
{
/* TODO */
}
void DialogsProvider::switchToSkins() void DialogsProvider::switchToSkins()
{ {
var_SetString( p_intf, "intf-switch", "skins2" ); var_SetString( p_intf, "intf-switch", "skins2" );
......
...@@ -154,6 +154,7 @@ public slots: ...@@ -154,6 +154,7 @@ public slots:
void PLAppendDir(); void PLAppendDir();
void MLAppendDir(); void MLAppendDir();
void quit(); void quit();
void hideMenus();
void switchToSkins(); void switchToSkins();
void gotoTimeDialog(); void gotoTimeDialog();
void helpDialog(); void helpDialog();
......
...@@ -105,6 +105,7 @@ private: ...@@ -105,6 +105,7 @@ private:
void customEvent( QEvent *); void customEvent( QEvent *);
public slots: public slots:
void undockPlaylist(); void undockPlaylist();
void playlist();
private slots: private slots:
void setNavigation( int ); void setNavigation( int );
void setStatus( int ); void setStatus( int );
...@@ -115,7 +116,6 @@ private slots: ...@@ -115,7 +116,6 @@ private slots:
void stop(); void stop();
void prev(); void prev();
void next(); void next();
void playlist();
void visual(); void visual();
void advanced(); void advanced();
void updateVolume( int sliderVolume ); void updateVolume( int sliderVolume );
......
...@@ -240,6 +240,7 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, MainInterface *mi, ...@@ -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_MSG), "", "", messagesDialog(), "Ctrl+M" );
DP_SADD( qtr(I_MENU_INFO) , "", "", mediaInfoDialog(), "Ctrl+J" ); DP_SADD( qtr(I_MENU_INFO) , "", "", mediaInfoDialog(), "Ctrl+J" );
DP_SADD( qtr(I_MENU_CODECINFO) , "", "", mediaCodecDialog(), "Ctrl+I" ); DP_SADD( qtr(I_MENU_CODECINFO) , "", "", mediaCodecDialog(), "Ctrl+I" );
DP_SADD( qtr(I_MENU_GOTOTIME), "","",gotoTimeDialog(), "Ctrl+T" );
menu->addSeparator(); menu->addSeparator();
if( mi ) if( mi )
{ {
...@@ -253,9 +254,10 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, MainInterface *mi, ...@@ -253,9 +254,10 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, MainInterface *mi,
adv->setCheckable( true ); adv->setCheckable( true );
if( visual_selector_enabled ) adv->setChecked( true ); if( visual_selector_enabled ) adv->setChecked( true );
#endif #endif
menu->addAction ( qtr( "Playlist"), mi, SLOT( playlist() ) );
} }
DP_SADD( qtr(I_MENU_EXT), "","",extendedDialog(), "Ctrl+E" ); 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(); menu->addSeparator();
DP_SADD( qtr("Preferences"), "", "", prefsDialog(), "Ctrl+P" ); DP_SADD( qtr("Preferences"), "", "", prefsDialog(), "Ctrl+P" );
return menu; 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