]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/qt4.cpp
Qt4 - Add an advanced option for whiners to have by default the open dialog extended.
[vlc] / modules / gui / qt4 / qt4.cpp
index ee50b94441c35296d7eba17574eae8c9666afeb6..832a5505dd7dbf24fed5b18ecd4a132708731c31 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * qt4.cpp : QT4 interface
  ****************************************************************************
- * Copyright (C) 2006 the VideoLAN team
+ * Copyright (C) 2006-2007 the VideoLAN team
  * $Id$
  *
  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
@@ -18,7 +18,8 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 
+ *****************************************************************************/
 
 #include <QApplication>
 
@@ -42,6 +43,32 @@ static void ShowDialog   ( intf_thread_t *, int, int, intf_dialog_args_t * );
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
+#define ADVANCED_PREFS_TEXT N_("Show advanced prefs over simple")
+#define ADVANCED_PREFS_LONGTEXT N_("Show advanced preferences and not simple" \
+                                   "preferences when opening the preferences " \
+                                   "dialog.")
+
+#define SYSTRAY_TEXT N_("Show a systray icon to control VLC")
+#define SYSTRAY_LONGTEXT N_("Show in the taskbar, a systray icon" \
+                            "in order to control VLC media player" \
+                            "for basic actions")
+
+#define MINIMIZED_TEXT N_("Start VLC only with a systray icon")
+#define MINIMIZED_LONGTEXT N_("When you launch VLC with that option" \
+                            "VLC will start just with an icon in" \
+                            "your taskbar")
+
+#define TITLE_TEXT N_("Show playing item name in window title")
+#define TITLE_LONGTEXT N_("Show the name of the song or video in the " \
+                          "controler window title")
+
+#define FILEDIALOG_PATH_TEXT N_("path to use in file dialog")
+#define FILEDIALOG_PATH_LONGTEXT N_("path to use in file dialog")
+
+#define ADVANCED_OPTIONS_TEXT N_("Advanced options")
+#define ADVANCED_OPTIONS_LONGTEXT N_("Activate by default all the" \
+                                     "Advanced options for geeks")
+
 vlc_module_begin();
     set_shortname( (char *)"Qt" );
     set_description( (char*)_("Qt interface") );
@@ -56,7 +83,22 @@ vlc_module_begin();
     add_submodule();
         set_description( "Dialogs provider" );
         set_capability( "dialogs provider", 51 );
-        add_bool( "qt-always-video", VLC_FALSE, NULL, "FIXME", "FIXME", VLC_TRUE );
+        add_bool( "qt-always-video", VLC_FALSE, NULL, "FIXME", "FIXME",
+                VLC_TRUE );
+        add_bool( "qt-advanced-pref", VLC_FALSE, NULL, ADVANCED_PREFS_TEXT,
+                ADVANCED_PREFS_LONGTEXT, VLC_FALSE );
+        add_bool( "qt-system-tray", VLC_TRUE, NULL, SYSTRAY_TEXT,
+                SYSTRAY_LONGTEXT, VLC_FALSE);
+        add_bool( "qt-start-mininimized", VLC_FALSE, NULL, MINIMIZED_TEXT,
+                MINIMIZED_LONGTEXT, VLC_TRUE);
+        add_bool( "qt-name-in-title", VLC_TRUE, NULL, TITLE_TEXT, 
+                  TITLE_LONGTEXT, VLC_FALSE );
+        add_string( "qt-filedialog-path", NULL, NULL, FILEDIALOG_PATH_TEXT,
+                FILEDIALOG_PATH_LONGTEXT, VLC_TRUE);
+            change_autosave();
+            change_internal();
+        add_bool( "qt-adv-options", VLC_FALSE, NULL, ADVANCED_OPTIONS_TEXT,
+                  ADVANCED_OPTIONS_LONGTEXT, VLC_TRUE );
         set_callbacks( OpenDialogs, Close );
 vlc_module_end();