]> git.sesse.net Git - vlc/commitdiff
Qt4 - Open Dialog: Capture tab. Last tab. Just the skeleton is present.
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 7 Mar 2007 22:52:11 +0000 (22:52 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 7 Mar 2007 22:52:11 +0000 (22:52 +0000)
modules/gui/qt4/Modules.am
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.hpp
modules/gui/qt4/ui/open_capture.ui [new file with mode: 0644]

index 3e96b936b047c623e69fda820f9768333e027b9d..2c0288fb66417ac1f7cd6b37d42eb791629b0551 100644 (file)
@@ -17,6 +17,7 @@ TOUI =        \
        ui/open_file \
        ui/open_disk \
        ui/open_net \
+       ui/open_capture \
        ui/open \
        ui/main_interface \
        ui/sprefs_audio \
@@ -174,6 +175,7 @@ EXTRA_DIST += \
        ui/open_file.ui \
        ui/open_disk.ui \
        ui/open_net.ui \
+       ui/open_capture.ui \
        ui/open.ui \
        ui/main_interface.ui \
        ui/sprefs_audio.ui \
index 154b0edf4f06a480e87788eaf161287b040b693e..d04798410bd68121bab4a3ad2e0ebd3fa8bd1393 100644 (file)
@@ -254,3 +254,16 @@ void NetOpenPanel::updateMRL() {
     }
     emit mrlUpdated(mrl);
 }
+
+/**************************************************************************
+ * Capture open
+ **************************************************************************/
+CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
+                                OpenPanel( _parent, _p_intf )
+{
+    ui.setupUi( this );
+}
+
+CaptureOpenPanel::~CaptureOpenPanel()
+{}
+
index 598d98eda37fa1ab13d2c4fd0c31fe31712b58e4..d3b6a127a77f34fd776b5389ea6af4c14c7cf9d0 100644 (file)
@@ -31,6 +31,7 @@
 #include "ui/open_file.h"
 #include "ui/open_disk.h"
 #include "ui/open_net.h"
+#include "ui/open_capture.h"
 
 class OpenPanel: public QWidget
 {
@@ -97,4 +98,18 @@ public slots:
     virtual void updateMRL() ;
 };
 
+
+class CaptureOpenPanel: public OpenPanel
+{
+    Q_OBJECT;
+public:
+    CaptureOpenPanel( QWidget *, intf_thread_t * );
+    virtual ~CaptureOpenPanel();
+    virtual void clear() ;
+private:
+    Ui::OpenCapture ui;
+public slots:
+    virtual void updateMRL();
+};
+
 #endif
diff --git a/modules/gui/qt4/ui/open_capture.ui b/modules/gui/qt4/ui/open_capture.ui
new file mode 100644 (file)
index 0000000..09f5b34
--- /dev/null
@@ -0,0 +1,88 @@
+<ui version="4.0" >
+ <author>Jean-Baptiste Kempf</author>
+ <class>OpenCapture</class>
+ <widget class="QWidget" name="OpenCapture" >
+  <property name="geometry" >
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>487</width>
+    <height>165</height>
+   </rect>
+  </property>
+  <property name="windowTitle" >
+   <string>Form</string>
+  </property>
+  <layout class="QGridLayout" >
+   <property name="margin" >
+    <number>9</number>
+   </property>
+   <property name="spacing" >
+    <number>6</number>
+   </property>
+   <item row="3" column="1" >
+    <spacer>
+     <property name="orientation" >
+      <enum>Qt::Vertical</enum>
+     </property>
+     <property name="sizeHint" >
+      <size>
+       <width>20</width>
+       <height>40</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item row="1" column="0" >
+    <widget class="QComboBox" name="protocolCombo" />
+   </item>
+   <item row="0" column="1" >
+    <widget class="QLabel" name="label_2" >
+     <property name="sizePolicy" >
+      <sizepolicy>
+       <hsizetype>5</hsizetype>
+       <vsizetype>0</vsizetype>
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="text" >
+      <string>Card Selection</string>
+     </property>
+    </widget>
+   </item>
+   <item row="0" column="0" >
+    <widget class="QLabel" name="label" >
+     <property name="text" >
+      <string>Capture Mode</string>
+     </property>
+    </widget>
+   </item>
+   <item row="2" column="0" colspan="3" >
+    <widget class="QGroupBox" name="groupBox_3" >
+     <property name="sizePolicy" >
+      <sizepolicy>
+       <hsizetype>5</hsizetype>
+       <vsizetype>0</vsizetype>
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="title" >
+      <string>Options</string>
+     </property>
+     <layout class="QHBoxLayout" >
+      <property name="margin" >
+       <number>9</number>
+      </property>
+      <property name="spacing" >
+       <number>6</number>
+      </property>
+     </layout>
+    </widget>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>