Qt4 - Remove the enqueue button and regroup it under the play button, since it is...
[vlc.git] / modules / gui / qt4 / dialogs / open.hpp
index 58c59e8..fded8fb 100644 (file)
 
 #include <QTabWidget>
 #include <QBoxLayout>
+#include <QString>
 
-class InfoTab;
-
-class OpenDialog : public QVLCFrame
+class OpenDialog : public QVLCDialog
 {
     Q_OBJECT;
 public:
-    static OpenDialog * getInstance( intf_thread_t *p_intf )
+    static OpenDialog * getInstance( QWidget *parent, intf_thread_t *p_intf )
     {
         if( !instance)
-            instance = new OpenDialog( p_intf);
+            instance = new OpenDialog( parent, p_intf, false );
         return instance;
     }
+    OpenDialog( QWidget *parent, intf_thread_t *, bool modal );
     virtual ~OpenDialog();
+
+    void showTab( int );
+
+    QString mrl;
+    QString mainMRL;
+public slots:
+    void play();
+    void stream();
 private:
-    OpenDialog( intf_thread_t * );
     static OpenDialog *instance;
     input_thread_t *p_input;
+    QString mrlSub;
+
     Ui::Open ui;
     FileOpenPanel *fileOpenPanel;
-public slots:
+    NetOpenPanel *netOpenPanel;
+    DiskOpenPanel *diskOpenPanel;
+    CaptureOpenPanel *captureOpenPanel;
+
+    QString storedMethod;
+    int advHeight, mainHeight;
+
+    void playOrEnqueue( bool );
+    QStringList SeparateEntries( QString );
+private slots:
     void cancel();
-    void ok();
+    void enqueue();
+    void toggleAdvancedPanel();
+    void updateMRL( QString );
+    void updateMRL();
+    void newMethod(QString);
+    void signalCurrent();
 };
 
 #endif