]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs_provider.hpp
Qt4 - Open Dialog/ Net. Cosmetics.
[vlc] / modules / gui / qt4 / dialogs_provider.hpp
index 2aef00bec0fe000f1f5840bbee4300503928750f..6afbefff97cafefc4b9180bf956e292b7843ec16 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,12 +98,12 @@ 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 mediaInfoDialog();
     void prefsDialog();
     void extendedDialog();
     void messagesDialog();
@@ -82,9 +111,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 *);
@@ -92,10 +125,13 @@ public slots:
     void SDMenuAction( QString );
     void streamingDialog();
     void openPlaylist();
-    void openDirectory();
-    void openMLDirectory();
+    void savePlaylist();
+    void PLAppendDir();
+    void MLAppendDir();
     void quit();
     void switchToSkins();
+    void helpDialog();
+    void aboutDialog();
 };
 
 #endif