]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs_provider.hpp
Qt4 - Codec Information direct access from menu.
[vlc] / modules / gui / qt4 / dialogs_provider.hpp
index ef00415445dc859509a55b918db4dde28becaec2..8f6d2b8d52bf557cb228f7cfa8b3bc3c7bcfe580 100644 (file)
 #include <vlc/vlc.h>
 #include <vlc_interface.h>
 
+#define ADD_FILTER_MEDIA( string )   \
+    string += _("Media Files");      \
+    string += " ( ";                 \
+    string += EXTENSIONS_MEDIA;      \
+    string += ");;";
+#define ADD_FILTER_VIDEO( string )   \
+    string += _("Video Files");      \
+    string += " ( ";                 \
+    string += EXTENSIONS_VIDEO;      \
+    string += ");;";
+#define ADD_FILTER_AUDIO( string )   \
+    string += _("Audio Files");      \
+    string += " ( ";                 \
+    string += EXTENSIONS_AUDIO;      \
+    string += ");;";
+#define ADD_FILTER_PLAYLIST( string )\
+    string += _("Playlist Files");   \
+    string += " ( ";                 \
+    string += EXTENSIONS_PLAYLIST;   \
+    string += ");;";
+#define ADD_FILTER_ALL( string )     \
+    string += _("All Files");        \
+    string += " (*.*)";
+
+
 class QEvent;
 class QSignalMapper;
 class QVLCMenu;
@@ -59,6 +84,10 @@ public:
     }
     virtual ~DialogsProvider();
     QTimer *fixed_timer;
+
+    QStringList showSimpleOpen( QString help = QString(), bool all = true,
+                                bool video = true, bool audio = true,
+                                bool subs = true, bool pls = true );
 protected:
     friend class QVLCMenu;
     QSignalMapper *menusMapper;
@@ -69,13 +98,13 @@ private:
     DialogsProvider( intf_thread_t *);
     intf_thread_t *p_intf;
     static DialogsProvider *instance;
-    QStringList showSimpleOpen();
     void addFromSimple( bool, bool );
 
 public slots:
     void playlistDialog();
     void bookmarksDialog();
     void mediaInfoDialog();
+    void mediaCodecDialog();
     void prefsDialog();
     void extendedDialog();
     void messagesDialog();
@@ -83,9 +112,13 @@ public slots:
     void simpleMLAppendDialog();
     void simpleOpenDialog();
     void openDialog();
+    void openDialog(int );
+    void openFileDialog();
+    void openNetDialog();
+    void openCaptureDialog();
+    void openDiscDialog();
     void PLAppendDialog();
     void MLAppendDialog();
-    void openDialog( int );
     void popupMenu( int );
     void doInteraction( intf_dialog_args_t * );
     void menuAction( QObject *);