]> git.sesse.net Git - vlc/commitdiff
Bind simple prefs forms to corresponding simple prefs categories
authorAntoine Cellerier <dionoea@videolan.org>
Sun, 27 Aug 2006 16:07:10 +0000 (16:07 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sun, 27 Aug 2006 16:07:10 +0000 (16:07 +0000)
modules/gui/qt4/Modules.am
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/dialogs/prefs_dialog.cpp
modules/gui/qt4/ui/sprefs_audio.ui
modules/gui/qt4/ui/sprefs_playlist.ui
modules/gui/qt4/ui/sprefs_subtitles.ui
modules/gui/qt4/ui/sprefs_video.ui

index 84e464316535ebb2a43c10bc9d35bcd9cea297ac..6e48ab5ba7d94657a2bcd7c3ff3453378d237269 100644 (file)
@@ -12,7 +12,9 @@
 AUTOMAKE_OPTIONS = subdir-objects
 
 TOUI = ui/input_stats ui/main_interface ui/file_open \
-       ui/logindialog ui/inputdialog ui/progressdialog ui/sprefs_trivial
+       ui/logindialog ui/inputdialog ui/progressdialog ui/sprefs_trivial \
+       ui/sprefs_audio ui/sprefs_playlist ui/sprefs_subtitles \
+       ui/sprefs_video
 UIH = $(TOUI:%=%.h)
 
 TOMOC = main_interface \
@@ -138,10 +140,21 @@ EXTRA_DIST += \
        ui/inputdialog.ui \
        ui/progressdialog.ui \
        ui/sprefs_trivial.ui \
+       ui/sprefs_audio.ui \
+       ui/sprefs_video.ui \
+       ui/sprefs_playlist.ui \
+       ui/sprefs_subtitles.ui \
        pixmaps/advanced.xpm \
        pixmaps/audio.xpm \
        pixmaps/codec.xpm \
        pixmaps/intf.xpm \
        pixmaps/type_net.xpm \
        pixmaps/type_playlist.xpm \
-       pixmaps/video.xpm
+       pixmaps/video.xpm \
+       pixmaps/advanced_50x50.xpm \
+       pixmaps/audio_50x50.xpm \
+       pixmaps/input_and_codecs_50x50.xpm \
+       pixmaps/interface_50x50.xpm \
+       pixmaps/playlist_50x50.xpm \
+       pixmaps/subtitles_50x50.xpm \
+       pixmaps/video_50x50.xpm
index a651e66b25f56cf4677f4af5863d0bd84c688fb0..ef663b0d358c4a1a93c8a8ef8ac595c2a8d044ba 100644 (file)
 #include "pixmaps/video_50x50.xpm"
 
 #include "ui/sprefs_trivial.h"
+#include "ui/sprefs_audio.h"
+#include "ui/sprefs_video.h"
+#include "ui/sprefs_subtitles.h"
+#include "ui/sprefs_playlist.h"
 
 #define ITEM_HEIGHT 50
 
@@ -115,19 +119,15 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
     {
         case SPrefsVideo:
         {
-            Ui::SPrefsTrivial ui;
+            Ui::SPrefsVideo ui;
             ui.setupUi( this );
-            module_config_t *p_config =
-                            config_FindConfig( VLC_OBJECT(p_intf), "memcpy" );
-            ConfigControl *control =
-                            new ModuleConfigControl( VLC_OBJECT(p_intf),
-                            p_config, ui.memcpyLabel, ui.memcpyCombo, false );
-            controls.append( control );
             break;
         }
 
         case SPrefsAudio:
         {
+            Ui::SPrefsAudio ui;
+            ui.setupUi( this );
             break;
         }
 
@@ -138,6 +138,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
 
         case SPrefsPlaylist:
         {
+            Ui::SPrefsPlaylist ui;
+            ui.setupUi( this );
             break;
         }
 
@@ -148,11 +150,21 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
 
         case SPrefsSubtitles:
         {
+            Ui::SPrefsSubtitles ui;
+            ui.setupUi( this );
             break;
         }
 
         case SPrefsAdvanced:
         {
+            Ui::SPrefsTrivial ui;
+            ui.setupUi( this );
+            module_config_t *p_config =
+                            config_FindConfig( VLC_OBJECT(p_intf), "memcpy" );
+            ConfigControl *control =
+                            new ModuleConfigControl( VLC_OBJECT(p_intf),
+                            p_config, ui.memcpyLabel, ui.memcpyCombo, false );
+            controls.append( control );
             break;
         }
     }
index d5505c0a2e5b430f19fc44399d458ac2cc5d5cc8..373da3ad254d57a6fcf244537e39dae21be4a20a 100644 (file)
@@ -56,7 +56,7 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
      small = new QRadioButton( "Basic", types ); tl->addWidget( small );
      all = new QRadioButton( "All", types ); tl->addWidget( all );
      types->setLayout(tl);
-     all->setChecked( true );
+     small->setChecked( true );
 
      adv_chk = new QCheckBox("Advanced options");
 
index 283dd06a349dfdade3a79b46e1bc8635c50ca24b..5bcb49be69a75901231ef2b7f2e02d38bfdc60c4 100644 (file)
@@ -2,8 +2,8 @@
  <author></author>
  <comment></comment>
  <exportmacro></exportmacro>
- <class>Form</class>
- <widget class="QWidget" name="Form" >
+ <class>SPrefsAudio</class>
+ <widget class="QWidget" name="SPrefsAudio" >
   <property name="geometry" >
    <rect>
     <x>0</x>
@@ -22,7 +22,7 @@
    <property name="spacing" >
     <number>6</number>
    </property>
-   <item row="9" column="0" colspan="3" >
+   <item row="9" column="0" colspan="2" >
     <widget class="QGroupBox" name="groupBox" >
      <property name="title" >
       <string>Filters</string>
       <property name="spacing" >
        <number>6</number>
       </property>
+      <item row="1" column="0" colspan="2" >
+       <widget class="QCheckBox" name="headphoneEffect" >
+        <property name="text" >
+         <string>Headphone effect</string>
+        </property>
+       </widget>
+      </item>
       <item row="0" column="2" >
-       <widget class="QComboBox" name="comboBox_5" />
+       <widget class="QComboBox" name="equalizerPreset" />
       </item>
       <item row="0" column="1" >
        <widget class="QLabel" name="label_6" >
+        <property name="layoutDirection" >
+         <enum>Qt::RightToLeft</enum>
+        </property>
         <property name="text" >
          <string>Preset</string>
         </property>
        </widget>
       </item>
-      <item row="3" column="0" >
-       <widget class="QCheckBox" name="checkBox_5" >
+      <item row="0" column="0" >
+       <widget class="QCheckBox" name="equalizer" >
         <property name="text" >
-         <string>Parametric equalizer</string>
+         <string>Equalizer</string>
         </property>
        </widget>
       </item>
-      <item row="2" column="0" >
-       <widget class="QCheckBox" name="checkBox_4" >
+      <item row="2" column="0" colspan="2" >
+       <widget class="QCheckBox" name="volumeNormalizer" >
         <property name="text" >
          <string>Volume normalizer</string>
         </property>
        </widget>
       </item>
-      <item row="1" column="0" >
-       <widget class="QCheckBox" name="checkBox_3" >
+      <item row="3" column="0" colspan="2" >
+       <widget class="QCheckBox" name="parametricEqualizer" >
         <property name="text" >
-         <string>Headphone effect</string>
-        </property>
-       </widget>
-      </item>
-      <item row="0" column="0" >
-       <widget class="QCheckBox" name="checkBox_2" >
-        <property name="text" >
-         <string>Equalizer</string>
+         <string>Parametric equalizer</string>
         </property>
        </widget>
       </item>
      </layout>
     </widget>
    </item>
-   <item row="8" column="0" >
-    <widget class="QLabel" name="label_5" >
+   <item row="0" column="0" >
+    <widget class="QCheckBox" name="enableAudio" >
      <property name="text" >
-      <string>Visualisation</string>
+      <string>Enable audio</string>
      </property>
-    </widget>
-   </item>
-   <item row="8" column="2" >
-    <widget class="QComboBox" name="comboBox_4" />
-   </item>
-   <item row="7" column="0" colspan="3" >
-    <widget class="Line" name="line_3" >
-     <property name="orientation" >
-      <enum>Qt::Horizontal</enum>
+     <property name="checked" >
+      <bool>true</bool>
      </property>
     </widget>
    </item>
-   <item row="4" column="0" colspan="3" >
-    <widget class="Line" name="line_2" >
+   <item row="1" column="0" colspan="2" >
+    <widget class="Line" name="line" >
      <property name="orientation" >
       <enum>Qt::Horizontal</enum>
      </property>
     </widget>
    </item>
-   <item row="6" column="2" >
-    <widget class="QComboBox" name="comboBox_3" />
-   </item>
-   <item row="6" column="0" >
-    <widget class="QLabel" name="label_4" >
+   <item row="2" column="0" >
+    <widget class="QLabel" name="label" >
      <property name="text" >
-      <string>Output device</string>
+      <string>Prefered audio language</string>
      </property>
     </widget>
    </item>
-   <item row="5" column="2" >
-    <widget class="QComboBox" name="comboBox_2" />
+   <item row="2" column="1" >
+    <widget class="QComboBox" name="preferedAudioLanguage" />
    </item>
-   <item row="5" column="0" colspan="2" >
-    <widget class="QLabel" name="label_3" >
+   <item row="3" column="0" >
+    <widget class="QLabel" name="label_2" >
      <property name="text" >
-      <string>Output module</string>
+      <string>Default volume</string>
      </property>
     </widget>
    </item>
-   <item row="3" column="2" >
-    <widget class="QSlider" name="horizontalSlider" >
+   <item row="3" column="1" >
+    <widget class="QSlider" name="defaultVolume" >
      <property name="orientation" >
       <enum>Qt::Horizontal</enum>
      </property>
     </widget>
    </item>
-   <item row="3" column="0" >
-    <widget class="QLabel" name="label_2" >
+   <item row="5" column="0" >
+    <widget class="QLabel" name="label_3" >
      <property name="text" >
-      <string>Default volume</string>
+      <string>Output module</string>
      </property>
     </widget>
    </item>
-   <item row="2" column="2" >
-    <widget class="QComboBox" name="comboBox" />
+   <item row="5" column="1" >
+    <widget class="QComboBox" name="outputModule" />
    </item>
-   <item row="2" column="0" colspan="2" >
-    <widget class="QLabel" name="label" >
+   <item row="6" column="0" >
+    <widget class="QLabel" name="label_4" >
      <property name="text" >
-      <string>Prefered audio language</string>
+      <string>Output device</string>
      </property>
     </widget>
    </item>
-   <item row="1" column="0" colspan="3" >
-    <widget class="Line" name="line" >
+   <item row="6" column="1" >
+    <widget class="QComboBox" name="outputDevice" />
+   </item>
+   <item row="4" column="0" colspan="2" >
+    <widget class="Line" name="line_2" >
      <property name="orientation" >
       <enum>Qt::Horizontal</enum>
      </property>
     </widget>
    </item>
-   <item row="0" column="0" >
-    <widget class="QCheckBox" name="checkBox" >
-     <property name="text" >
-      <string>Enable audio</string>
+   <item row="7" column="0" colspan="2" >
+    <widget class="Line" name="line_3" >
+     <property name="orientation" >
+      <enum>Qt::Horizontal</enum>
      </property>
-     <property name="checked" >
-      <bool>true</bool>
+    </widget>
+   </item>
+   <item row="8" column="1" >
+    <widget class="QComboBox" name="visualisation" />
+   </item>
+   <item row="8" column="0" >
+    <widget class="QLabel" name="label_5" >
+     <property name="text" >
+      <string>Visualisation</string>
      </property>
     </widget>
    </item>
index 544293693585b332e8eace8ad23cc53447c885b0..b96b077c7c5a99da9d6be2079e45c9a993bb2be2 100644 (file)
@@ -2,8 +2,8 @@
  <author></author>
  <comment></comment>
  <exportmacro></exportmacro>
- <class>Form</class>
- <widget class="QWidget" name="Form" >
+ <class>SPrefsPlaylist</class>
+ <widget class="QWidget" name="SPrefsPlaylist" >
   <property name="geometry" >
    <rect>
     <x>0</x>
@@ -35,7 +35,7 @@
        <number>6</number>
       </property>
       <item>
-       <widget class="QCheckBox" name="checkBox" >
+       <widget class="QCheckBox" name="playFilesRandomlyForEver" >
         <property name="toolTip" >
          <string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:Sans Serif; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;/p>&lt;/body>&lt;/html></string>
         </property>
        </widget>
       </item>
       <item>
-       <widget class="QCheckBox" name="checkBox_2" >
+       <widget class="QCheckBox" name="repeatAll" >
         <property name="text" >
          <string>Repeat all</string>
         </property>
        </widget>
       </item>
       <item>
-       <widget class="QCheckBox" name="checkBox_3" >
+       <widget class="QCheckBox" name="repeatCurrentItem" >
         <property name="text" >
          <string>Repeat current item</string>
         </property>
        </widget>
       </item>
       <item>
-       <widget class="QCheckBox" name="checkBox_4" >
+       <widget class="QCheckBox" name="playAndStop" >
         <property name="text" >
          <string>Play and stop</string>
         </property>
        </widget>
       </item>
       <item row="1" column="1" >
-       <widget class="QLineEdit" name="lineEdit" >
+       <widget class="QLineEdit" name="defaultPlaylist" >
         <property name="enabled" >
          <bool>false</bool>
         </property>
        </widget>
       </item>
       <item row="1" column="2" >
-       <widget class="QPushButton" name="pushButton" >
+       <widget class="QPushButton" name="defaultPlaylistBrowse" >
         <property name="enabled" >
          <bool>false</bool>
         </property>
        </widget>
       </item>
       <item row="0" column="0" colspan="2" >
-       <widget class="QCheckBox" name="checkBox_5" >
+       <widget class="QCheckBox" name="rememberPlaylist" >
         <property name="text" >
          <string>Remember playlist</string>
         </property>
index 9fad1dcfb43fc231c8aa43835e769bd9ef8f91b8..625ad484a1848fadc67cdad14fbf0e33e260a32b 100644 (file)
@@ -2,8 +2,8 @@
  <author></author>
  <comment></comment>
  <exportmacro></exportmacro>
- <class>Form</class>
- <widget class="QWidget" name="Form" >
+ <class>SPrefsSubtitles</class>
+ <widget class="QWidget" name="SPrefsSubtitles" >
   <property name="geometry" >
    <rect>
     <x>0</x>
        <number>6</number>
       </property>
       <item row="0" column="1" >
-       <widget class="QLineEdit" name="lineEdit" />
+       <widget class="QLineEdit" name="font" />
       </item>
       <item row="1" column="1" colspan="2" >
-       <widget class="QComboBox" name="comboBox_3" />
+       <widget class="QComboBox" name="fontSize" />
       </item>
       <item row="0" column="2" >
-       <widget class="QPushButton" name="pushButton" >
+       <widget class="QPushButton" name="fontBrowse" >
         <property name="text" >
          <string>Browse</string>
         </property>
        </widget>
       </item>
       <item row="2" column="1" colspan="2" >
-       <widget class="QComboBox" name="comboBox_4" />
+       <widget class="QComboBox" name="fontColor" />
       </item>
       <item row="2" column="0" >
        <widget class="QLabel" name="label_4" >
     </widget>
    </item>
    <item row="0" column="1" >
-    <widget class="QComboBox" name="comboBox" />
+    <widget class="QComboBox" name="preferedLanguage" />
    </item>
    <item row="1" column="1" >
-    <widget class="QComboBox" name="comboBox_2" />
+    <widget class="QComboBox" name="encoding" />
    </item>
    <item row="3" column="0" colspan="2" >
     <spacer>
index f267206e75e725356d0b81b0e28809f7b5132f9d..609e07021f1806d1a0028fcf3d4bd2cd1b94d7d3 100644 (file)
@@ -2,8 +2,8 @@
  <author></author>
  <comment></comment>
  <exportmacro></exportmacro>
- <class>Form</class>
- <widget class="QWidget" name="Form" >
+ <class>SPrefsVideo</class>
+ <widget class="QWidget" name="SPrefsVideo" >
   <property name="geometry" >
    <rect>
     <x>0</x>
        <number>6</number>
       </property>
       <item row="0" column="1" colspan="2" >
-       <widget class="QLineEdit" name="lineEdit" />
+       <widget class="QLineEdit" name="snapshotsDirectory" />
       </item>
       <item row="0" column="3" >
-       <widget class="QPushButton" name="pushButton" >
+       <widget class="QPushButton" name="snapshotsDirectoryBrowse" >
         <property name="text" >
          <string>Browse</string>
         </property>
@@ -59,7 +59,7 @@
        </widget>
       </item>
       <item row="1" column="1" >
-       <widget class="QLineEdit" name="lineEdit_2" />
+       <widget class="QLineEdit" name="snapshotsPrefix" />
       </item>
       <item row="2" column="0" >
        <widget class="QLabel" name="label_3" >
        </widget>
       </item>
       <item row="2" column="1" colspan="3" >
-       <widget class="QComboBox" name="comboBox" />
+       <widget class="QComboBox" name="snapshotsFormat" />
       </item>
       <item row="1" column="2" colspan="2" >
-       <widget class="QCheckBox" name="checkBox_5" >
+       <widget class="QCheckBox" name="snapshotsSequentialNumbering" >
         <property name="text" >
          <string>Sequential numbering</string>
         </property>
@@ -95,7 +95,7 @@
        <number>6</number>
       </property>
       <item row="2" column="1" colspan="2" >
-       <widget class="QComboBox" name="comboBox_2" />
+       <widget class="QComboBox" name="outputModule" />
       </item>
       <item row="2" column="0" >
        <widget class="QLabel" name="label_4" >
        </widget>
       </item>
       <item row="0" column="0" colspan="2" >
-       <widget class="QCheckBox" name="checkBox_2" >
+       <widget class="QCheckBox" name="fullscreen" >
         <property name="text" >
          <string>Fullscreen</string>
         </property>
        </widget>
       </item>
       <item row="1" column="2" >
-       <widget class="QCheckBox" name="checkBox_6" >
+       <widget class="QCheckBox" name="windowDecorations" >
         <property name="text" >
          <string>Window decorations</string>
         </property>
        </widget>
       </item>
       <item row="1" column="0" colspan="2" >
-       <widget class="QCheckBox" name="checkBox_4" >
+       <widget class="QCheckBox" name="alwaysOnTop" >
         <property name="text" >
          <string>Always on top</string>
         </property>
        </widget>
       </item>
       <item row="0" column="2" >
-       <widget class="QCheckBox" name="checkBox_3" >
+       <widget class="QCheckBox" name="overlay" >
         <property name="text" >
          <string>Overlay video output</string>
         </property>
     </widget>
    </item>
    <item row="0" column="0" >
-    <widget class="QCheckBox" name="checkBox" >
+    <widget class="QCheckBox" name="enableVideo" >
      <property name="text" >
       <string>Enable video</string>
      </property>