Qt: SPrefs, add a record path configuration option.
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 1 May 2009 15:20:16 +0000 (17:20 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 1 May 2009 15:20:41 +0000 (17:20 +0200)
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/ui/sprefs_input.ui

index 21f63e6..4a3b369 100644 (file)
@@ -386,6 +386,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
                 free( psz_dvddiscpath );
                 free( psz_vcddiscpath );
             }
+            CONFIG_GENERIC_FILE( "input-record-path", Directory, ui.recordLabel,
+                                 ui.recordPath, ui.recordBrowse );
 
             CONFIG_GENERIC_NO_BOOL( "server-port", Integer, ui.portLabel,
                                     UDPPort );
index a48c85c..c266392 100644 (file)
@@ -7,8 +7,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>616</width>
-    <height>480</height>
+    <width>622</width>
+    <height>514</height>
    </rect>
   </property>
   <property name="windowTitle">
         </property>
        </widget>
       </item>
+      <item row="1" column="0">
+       <widget class="QLabel" name="recordLabel">
+        <property name="text">
+         <string>Record directory or filename</string>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="1">
+       <widget class="QLineEdit" name="recordPath"/>
+      </item>
+      <item row="1" column="2">
+       <widget class="QPushButton" name="recordBrowse">
+        <property name="text">
+         <string>Browse...</string>
+        </property>
+       </widget>
+      </item>
      </layout>
     </widget>
    </item>