Qt4 - Remove the enqueue button and regroup it under the play button, since it is...
[vlc.git] / modules / gui / qt4 / dialogs / open.hpp
index 0c23a47..fded8fb 100644 (file)
 #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);
+    void showTab( int );
 
-    QString MRL;
+    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;
@@ -61,12 +63,21 @@ private:
     FileOpenPanel *fileOpenPanel;
     NetOpenPanel *netOpenPanel;
     DiskOpenPanel *diskOpenPanel;
-public slots:
+    CaptureOpenPanel *captureOpenPanel;
+
+    QString storedMethod;
+    int advHeight, mainHeight;
+
+    void playOrEnqueue( bool );
+    QStringList SeparateEntries( QString );
+private slots:
     void cancel();
-    void ok();
-    void changedTab();
+    void enqueue();
     void toggleAdvancedPanel();
-    void updateMRL(QString);
+    void updateMRL( QString );
+    void updateMRL();
+    void newMethod(QString);
+    void signalCurrent();
 };
 
 #endif