Qt4: add options for later choice of columns in playlist.
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 1 Aug 2007 11:11:29 +0000 (11:11 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 1 Aug 2007 11:11:29 +0000 (11:11 +0000)
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.hpp

index 86c80b6..1ccd773 100644 (file)
@@ -69,6 +69,9 @@ static void ShowDialog   ( intf_thread_t *, int, int, intf_dialog_args_t * );
 #define ADVANCED_OPTIONS_LONGTEXT N_("Activate by default all the" \
                                      "Advanced options for geeks")
 
+#define SHOWFLAGS_TEXT N_("Define what titles to show in playlist window")
+#define SHOWFLAGS_LONGTEXT N_(" ")
+
 vlc_module_begin();
     set_shortname( (char *)"Qt" );
     set_description( (char*)_("Qt interface") );
@@ -99,6 +102,11 @@ vlc_module_begin();
             change_internal();
         add_bool( "qt-adv-options", VLC_FALSE, NULL, ADVANCED_OPTIONS_TEXT,
                   ADVANCED_OPTIONS_LONGTEXT, VLC_TRUE );
+        add_integer( "qt-pl-showflags",
+                VLC_META_ENGINE_ARTIST|VLC_META_ENGINE_TITLE|
+                VLC_META_ENGINE_DURATION|VLC_META_ENGINE_COLLECTION,
+                NULL, SHOWFLAGS_TEXT,
+                SHOWFLAGS_LONGTEXT, VLC_TRUE );
         set_callbacks( OpenDialogs, Close );
 vlc_module_end();
 
index 12f1e2c..a3947ee 100644 (file)
 
 #include <QEvent>
 
+/* Add define for duration, VLC_META_ENGINE doesn't include it */
+#define VLC_META_ENGINE_DURATION   0x00000002
+#define VLC_META_DURATION          N_("Duration")
+
+
 class QApplication;
 class QMenu;
 class MainInterface;