}
}
-void DialogsProvider::hideMenus()
-{
- /* TODO
- * Simplify the main Interface
- */
-}
-
void DialogsProvider::switchToSkins()
{
var_SetString( p_intf, "intf-switch", "skins2" );
void openPlaylist();
void savePlaylist();
- void hideMenus();
void switchToSkins();
void quit();
};
}
}
+void MainInterface::toggleMenus()
+{
+ if( menuBar()->isVisible() ) menuBar()->hide();
+ else menuBar()->show();
+ msg_Dbg( p_intf, "I was there: \\_o<~~ coin coin" );
+}
+
void MainInterface::customEvent( QEvent *event )
{
if( event->type() == PLDockEvent_Type )
void customEvent( QEvent *);
public slots:
void undockPlaylist();
+ void toggleMenus();
void playlist();
void toggleUpdateSystrayMenu();
private slots:
adv->setCheckable( true );
if( adv_controls_enabled ) adv->setChecked( true );
- DP_SADD( menu, qtr( "Hide Menus..." ), "","",hideMenus(), "Ctrl+H" );
+ menu->addAction( qtr( "Hide Menus..." ), mi, SLOT( toggleMenus() ),
+ qtr( "Ctrl+H") );
menu->addSeparator();
#if 0 /* For Visualisations. Not yet working */