]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/open.hpp
Qt4 - use a docked playlist, remove dead code, don't reinvent the wheel, remove the...
[vlc] / modules / gui / qt4 / components / open.hpp
index 7cf2bb1f70d0b7e6b7eee90eae60eb7ed6fe4d5e..2618cf49c3f98587886d7e365e8a9fb3ead34b5e 100644 (file)
@@ -1,11 +1,14 @@
 /*****************************************************************************
  * open.hpp : Panels for the open dialogs
  ****************************************************************************
- * Copyright (C) 2006 the VideoLAN team
+ * Copyright (C) 2006-2007 the VideoLAN team
+ * Copyright (C) 2007 Société des arts technologiques
+ * Copyright (C) 2007 Savoir-faire Linux
  * $Id$
  *
  * Authors: Clément Stenac <zorglub@videolan.org>
  *          Jean-Baptiste Kempf <jb@videolan.org>
+ *          Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
 #define _OPENPANELS_H_
 
 #include <vlc/vlc.h>
-#include <QWidget>
-#include <QString>
+
 #include <QFileDialog>
+
 #include "ui/open_file.h"
 #include "ui/open_disk.h"
 #include "ui/open_net.h"
 #include "ui/open_capture.h"
 
+#ifdef HAVE_LIMITS_H
+#   include <limits.h>
+#endif
+
+#define setSpinBoxFreq( spinbox ){ spinbox->setRange ( 0, INT_MAX ); \
+    spinbox->setAccelerated( true ); }
+
+enum
+{
+    V4L_DEVICE,
+    V4L2_DEVICE,
+    PVR_DEVICE,
+    DVB_DEVICE,
+    BDA_DEVICE,
+    DSHOW_DEVICE,
+    SCREEN_DEVICE,
+    JACK_DEVICE
+};
+
+class QWidget;
 class QLineEdit;
+class QString;
 
 class OpenPanel: public QWidget
 {
@@ -103,17 +127,18 @@ private slots:
     void updateAddress();
 };
 
-class DiskOpenPanel: public OpenPanel
+class DiscOpenPanel: public OpenPanel
 {
     Q_OBJECT;
 public:
-    DiskOpenPanel( QWidget *, intf_thread_t * );
-    virtual ~DiskOpenPanel();
+    DiscOpenPanel( QWidget *, intf_thread_t * );
+    virtual ~DiscOpenPanel();
     virtual void clear() ;
 private:
     Ui::OpenDisk ui;
 public slots:
     virtual void updateMRL() ;
+    virtual void updateButtons() ;
 };
 
 
@@ -126,8 +151,25 @@ public:
     virtual void clear() ;
 private:
     Ui::OpenCapture ui;
+    QRadioButton *dvbs, *dvbt, *dvbc;
+    QRadioButton *bdas, *bdat, *bdac;
+    QSpinBox  *v4lFreq, *pvrFreq, *pvrBitr;
+    QLineEdit *v4lVideoDevice, *v4lAudioDevice;
+    QLineEdit *v4l2VideoDevice, *v4l2AudioDevice;
+    QLineEdit *pvrDevice, *pvrRadioDevice;
+    QComboBox *v4lNormBox, *v4l2StdBox, *pvrNormBox, *bdaBandBox;
+    QSpinBox *dvbCard, *dvbFreq, *dvbSrate;
+    QSpinBox *bdaCard, *bdaFreq, *bdaSrate;
+    QSpinBox *jackChannels, *jackCaching;
+    QCheckBox *jackPace, *jackConnect;
+    QLineEdit *jackPortsSelected;
+
+    QLabel *bdaSrateLabel, *bdaBandLabel;
+
 public slots:
     virtual void updateMRL();
+private slots:
+    void updateButtons();
 };
 
 #endif