qt4: add the hability to put the *interface* in fullscreen (hotkey: F11)
authorRafaël Carré <funman@videolan.org>
Sun, 20 Jan 2008 21:26:07 +0000 (21:26 +0000)
committerRafaël Carré <funman@videolan.org>
Sun, 20 Jan 2008 21:26:07 +0000 (21:26 +0000)
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/menus.cpp

index 0c8022d..3c5943f 100644 (file)
@@ -1135,6 +1135,14 @@ void MainInterface::closeEvent( QCloseEvent *e )
     THEDP->quit();
 }
 
+void MainInterface::toggleFullScreen( void )
+{
+    if( isFullScreen() )
+        showNormal();
+    else
+        showFullScreen();
+}
+
 /*****************************************************************************
  * Callbacks
  *****************************************************************************/
index 85911e1..4253fb7 100644 (file)
@@ -143,6 +143,7 @@ public slots:
     void togglePlaylist();
     void toggleUpdateSystrayMenu();
     void toggleAdvanced();
+    void toggleFullScreen();
 
     /* Manage the Video Functions from the vout threads */
     void releaseVideoSlot( void * );
index 1857c91..14e05bc 100644 (file)
@@ -274,6 +274,10 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf,
         if( mi->getControlsVisibilityStatus() & CONTROLS_VISIBLE )
             action->setChecked( true );
 
+        /* FullScreen View */
+        action = menu->addAction( qtr( "Toggle Fullscreen Interface" ), mi,
+                SLOT( toggleFullScreen() ), qtr( "F11" ) );
+
         /* Advanced Controls */
         action = menu->addAction( qtr( "Advanced controls" ), mi,
                 SLOT( toggleAdvanced() ) );