Qt: sprefs, put replay-gain in the audio part.
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 15 Feb 2009 17:15:17 +0000 (18:15 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 15 Feb 2009 17:15:17 +0000 (18:15 +0100)
Close #2521

modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/ui/sprefs_audio.ui

index 1a55c68..f8e4a17 100644 (file)
@@ -295,6 +295,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
 
             CONFIG_GENERIC_NO_BOOL( "norm-max-level" , Float, NULL,
                                     volNormSpin );
 
             CONFIG_GENERIC_NO_BOOL( "norm-max-level" , Float, NULL,
                                     volNormSpin );
+            CONFIG_GENERIC( "audio-replay-gain-mode", StringList, ui.replayLabel,
+                            replayCombo );
             CONFIG_GENERIC( "audio-visual" , Module , ui.visuLabel,
                             visualisation);
 
             CONFIG_GENERIC( "audio-visual" , Module , ui.visuLabel,
                             visualisation);
 
index 7af760a..8ff3012 100644 (file)
@@ -6,14 +6,14 @@
    <rect>
     <x>0</x>
     <y>0</y>
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>559</width>
-    <height>609</height>
+    <width>643</width>
+    <height>605</height>
    </rect>
   </property>
   <property name="windowTitle" >
    <string>Form</string>
   </property>
    </rect>
   </property>
   <property name="windowTitle" >
    <string>Form</string>
   </property>
-  <layout class="QVBoxLayout" >
+  <layout class="QVBoxLayout" name="verticalLayout" >
    <item>
     <widget class="QCheckBox" name="enableAudio" >
      <property name="text" >
    <item>
     <widget class="QCheckBox" name="enableAudio" >
      <property name="text" >
       <string>_("Effects")</string>
      </property>
      <layout class="QGridLayout" >
       <string>_("Effects")</string>
      </property>
      <layout class="QGridLayout" >
-      <item row="2" column="1" >
+      <item row="2" column="1" colspan="2" >
        <widget class="QComboBox" name="visualisation" />
       </item>
       <item row="0" column="0" >
        <widget class="QComboBox" name="visualisation" />
       </item>
       <item row="0" column="0" >
         </property>
        </widget>
       </item>
         </property>
        </widget>
       </item>
-      <item row="1" column="1" >
+      <item row="0" column="1" >
+       <widget class="QLabel" name="replayLabel" >
+        <property name="text" >
+         <string>_("Replay gain mode")</string>
+        </property>
+        <property name="alignment" >
+         <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="2" >
+       <widget class="QComboBox" name="replayCombo" />
+      </item>
+      <item row="1" column="2" >
        <widget class="QDoubleSpinBox" name="volNormSpin" >
         <property name="alignment" >
          <set>Qt::AlignRight</set>
        <widget class="QDoubleSpinBox" name="volNormSpin" >
         <property name="alignment" >
          <set>Qt::AlignRight</set>
      <property name="title" >
       <string>_("last.fm")</string>
      </property>
      <property name="title" >
       <string>_("last.fm")</string>
      </property>
-     <layout class="QGridLayout" >
+     <layout class="QGridLayout" name="gridLayout" >
       <item row="0" column="0" colspan="2" >
        <widget class="QCheckBox" name="lastfm" >
         <property name="text" >
       <item row="0" column="0" colspan="2" >
        <widget class="QCheckBox" name="lastfm" >
         <property name="text" >
         </property>
        </widget>
       </item>
         </property>
        </widget>
       </item>
-      <item row="1" column="1" colspan="2" >
-       <widget class="QLineEdit" name="lastfm_user_edit" />
-      </item>
       <item row="1" column="0" >
        <widget class="QLabel" name="lastfm_user_label" >
         <property name="text" >
       <item row="1" column="0" >
        <widget class="QLabel" name="lastfm_user_label" >
         <property name="text" >
         </property>
        </widget>
       </item>
         </property>
        </widget>
       </item>
+      <item row="1" column="1" >
+       <widget class="QLineEdit" name="lastfm_user_edit" />
+      </item>
       <item row="2" column="0" >
        <widget class="QLabel" name="lastfm_pass_label" >
         <property name="text" >
       <item row="2" column="0" >
        <widget class="QLabel" name="lastfm_pass_label" >
         <property name="text" >
         </property>
        </widget>
       </item>
         </property>
        </widget>
       </item>
-      <item row="2" column="1" colspan="2" >
+      <item row="2" column="1" >
        <widget class="QLineEdit" name="lastfm_pass_edit" >
         <property name="echoMode" >
          <enum>QLineEdit::Password</enum>
        <widget class="QLineEdit" name="lastfm_pass_edit" >
         <property name="echoMode" >
          <enum>QLineEdit::Password</enum>