QT4: Add a menu item to switch to WxWidgets if available.
authorPavlov Konstantin <thresh@videolan.org>
Mon, 21 Jan 2008 23:45:22 +0000 (23:45 +0000)
committerPavlov Konstantin <thresh@videolan.org>
Mon, 21 Jan 2008 23:45:22 +0000 (23:45 +0000)
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.hpp
modules/gui/qt4/menus.cpp

index 5de8158..67831d5 100644 (file)
@@ -509,3 +509,8 @@ void DialogsProvider::switchToSkins()
 {
     var_SetString( p_intf, "intf-switch", "skins2" );
 }
+
+void DialogsProvider::switchToWx()
+{
+    var_SetString( p_intf, "intf-switch", "wxwidgets" );
+}
index 4776b00..3c90b8b 100644 (file)
@@ -183,6 +183,7 @@ public slots:
     void saveAPlaylist();
 
     void switchToSkins();
+    void switchToWx();
     void quit();
 };
 
index 14e05bc..c664283 100644 (file)
@@ -332,6 +332,11 @@ QMenu *QVLCMenu::InterfacesMenu( intf_thread_t *p_intf, QMenu *current )
         menu->addSeparator();
         menu->addAction( qtr( "Switch to skins" ), THEDP, SLOT( switchToSkins() ),
                 QString( "Ctrl+Z" ) );
+        if( module_Exists( VLC_OBJECT( p_intf ), "wxwidgets" ) )
+        {
+            menu->addAction( qtr( "Switch to WxWidgets" ), THEDP,
+                    SLOT( switchToWx() ) );
+        }
     }
 
     CONNECT( menu, aboutToShow(), THEDP->menusUpdateMapper, map() );