- if( with_intf )
- {
- QMenu *intfmenu = InterfacesMenu( p_intf, menu );
- MenuFunc *f = new MenuFunc( intfmenu, 4 );
- CONNECT( intfmenu, aboutToShow(), THEDP->menusUpdateMapper, map() );
- THEDP->menusUpdateMapper->setMapping( intfmenu, f );
- menu->addSeparator();
- }
- if( mi )
+ QMenu *intfmenu = InterfacesMenu( p_intf, menu );
+ menu->addSeparator();
+
+ /* Minimal View */
+ action = menu->addAction( qtr( "Mi&nimal View" ) );
+ action->setShortcut( qtr( "Ctrl+H" ) );
+ action->setCheckable( true );
+ action->setChecked( (mi->getControlsVisibilityStatus() & CONTROLS_HIDDEN ) );
+
+ CONNECT( action, triggered( bool ), mi, toggleMinimalView( bool ) );
+ CONNECT( mi, minimalViewToggled( bool ), action, setChecked( bool ) );
+
+ /* FullScreen View */
+ action = menu->addAction( qtr( "&Fullscreen Interface" ), mi,
+ SLOT( toggleInterfaceFullScreen() ), QString( "F11" ) );
+ action->setCheckable( true );
+ action->setChecked( mi->isInterfaceFullScreen() );
+ CONNECT( mi, fullscreenInterfaceToggled( bool ),
+ action, setChecked( bool ) );
+
+ /* Advanced Controls */
+ action = menu->addAction( qtr( "&Advanced Controls" ), mi,
+ SLOT( toggleAdvancedButtons() ) );
+ action->setCheckable( true );
+ if( mi->getControlsVisibilityStatus() & CONTROLS_ADVANCED )
+ action->setChecked( true );
+
+ /* Docked Playlist */
+ action = menu->addAction( qtr( "Docked Playlist" ) );
+ action->setCheckable( true );
+ action->setChecked( mi->isPlDocked() );
+ CONNECT( action, triggered( bool ), mi, dockPlaylist( bool ) );
+
+ if( !current )
+ // I don't want to manage consistency between menus, so no popup-menu