]> git.sesse.net Git - vlc/commitdiff
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 1a55c6812264a4a72f4ff97680e688033592e2e4..f8e4a1704daff4830b87df2f233da3aab54bb98c 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( "audio-replay-gain-mode", StringList, ui.replayLabel,
+                            replayCombo );
             CONFIG_GENERIC( "audio-visual" , Module , ui.visuLabel,
                             visualisation);
 
index 7af760a13d7931f969d606172505c6a70ba23788..8ff3012bfcdabeaa3c86e6cf99863555448848f4 100644 (file)
@@ -6,14 +6,14 @@
    <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>
-  <layout class="QVBoxLayout" >
+  <layout class="QVBoxLayout" name="verticalLayout" >
    <item>
     <widget class="QCheckBox" name="enableAudio" >
      <property name="text" >
       <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" >
         </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>
      <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" >
         </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" >
         </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" >
         </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>