]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/open_panels.hpp
Fix most of the issues of the Equalizer.
[vlc] / modules / gui / qt4 / components / open_panels.hpp
index 3c23a034df42d578de56633ebdd0234da55a745b..e2de731df174e39a114afbb996f9e62fd608fec6 100644 (file)
 #ifndef _OPENPANELS_H_
 #define _OPENPANELS_H_
 
-#include <vlc/vlc.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <vlc_common.h>
 
 #include <QFileDialog>
 
 #include "ui/open_net.h"
 #include "ui/open_capture.h"
 
-#ifdef HAVE_LIMITS_H
-#   include <limits.h>
-#endif
+#include "components/preferences_widgets.hpp"
+
+#include <limits.h>
 
 #define setSpinBoxFreq( spinbox ){ spinbox->setRange ( 0, INT_MAX ); \
     spinbox->setAccelerated( true ); }
 
+enum
+{
+    NO_PROTO,
+    HTTP_PROTO,
+    HTTPS_PROTO,
+    MMS_PROTO,
+    FTP_PROTO,
+    RTSP_PROTO,
+    RTP_PROTO,
+    UDP_PROTO,
+    RTMP_PROTO
+};
+
+
 enum
 {
     V4L_DEVICE,
@@ -56,6 +74,10 @@ enum
     JACK_DEVICE
 };
 
+static const char *psz_devModule[] = { "v4l", "v4l2", "pvr", "dvb", "bda",
+                                       "dshow", "screen", "jack" };
+
+
 class QWidget;
 class QLineEdit;
 class QString;
@@ -143,6 +165,7 @@ public slots:
 private slots:
     void browseDevice();
     void updateButtons() ;
+    void eject();
 };
 
 
@@ -155,11 +178,15 @@ public:
     virtual void clear() ;
 private:
     Ui::OpenCapture ui;
+    QString advMRL;
+    QDialog *adv;
 #ifdef WIN32
     QRadioButton *bdas, *bdat, *bdac;
     QSpinBox *bdaCard, *bdaFreq, *bdaSrate;
     QLabel *bdaSrateLabel, *bdaBandLabel;
     QComboBox *bdaBandBox;
+    StringListConfigControl *vdevDshowW, *adevDshowW;
+    QLineEdit *dshowVSizeLine;
 #else
     QRadioButton *dvbs, *dvbt, *dvbc;
     QSpinBox  *v4lFreq, *pvrFreq, *pvrBitr;
@@ -177,6 +204,7 @@ public slots:
     virtual void updateMRL();
 private slots:
     void updateButtons();
+    void advancedDialog();
 };
 
 #endif