]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/open.hpp
Forgotten method for Input Slave Selection.
[vlc] / modules / gui / qt4 / dialogs / open.hpp
index fa9e46f06eb36d5680b55f18418e1fc60de78d89..ea287b8b34e4c312973b182fb5856ee6a3353843 100644 (file)
 #ifndef _OPEN_DIALOG_H_
 #define _OPEN_DIALOG_H_
 
-#include <vlc/vlc.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <vlc_common.h>
 
 #include "util/qvlcframe.hpp"
 #include "dialogs_provider.hpp"
 #include "ui/open.h"
 #include "components/open_panels.hpp"
 
+enum {
+    OPEN_FILE_TAB,
+    OPEN_DISC_TAB,
+    OPEN_NETWORK_TAB,
+    OPEN_CAPTURE_TAB,
+    OPEN_TAB_MAX
+};
+
+enum {
+    OPEN_AND_PLAY,
+    OPEN_AND_ENQUEUE,
+    OPEN_AND_STREAM,
+    OPEN_AND_SAVE,
+    SELECT              /* Special mode to select a MRL (for VLM or similar */
+};
+
+
 class QString;
-class QToolButton;
 class QTabWidget;
 
 class OpenDialog : public QVLCDialog
@@ -40,7 +60,7 @@ class OpenDialog : public QVLCDialog
     Q_OBJECT;
 public:
     static OpenDialog * getInstance( QWidget *parent, intf_thread_t *p_intf,
-                                     int _action_flag = 0, bool modal = false  );
+                                     bool b_rawInstance = false, int _action_flag = 0, bool b_selectMode = false  );
 
     static void killInstance()
     {
@@ -49,7 +69,7 @@ public:
     }
     virtual ~OpenDialog();
 
-    void showTab( int );
+    void showTab( int = OPEN_FILE_TAB );
     QString getMRL(){ return mrl; }
 
 public slots:
@@ -60,7 +80,7 @@ public slots:
     void transcode();
 
 private:
-    OpenDialog( QWidget *parent, intf_thread_t *, bool modal,
+    OpenDialog( QWidget *parent, intf_thread_t *, bool b_selectMode,
                 int _action_flag = 0 );
 
     static OpenDialog *instance;
@@ -80,7 +100,7 @@ private:
     QStringList SeparateEntries( QString );
 
     QPushButton *cancelButton, *selectButton;
-    QToolButton *playButton;
+    QPushButton *playButton;
 
     void finish( bool );
 
@@ -93,6 +113,7 @@ private slots:
     void updateMRL();
     void newCachingMethod( QString );
     void signalCurrent();
+    void browseInputSlave();
 };
 
 #endif