Changeset 014b14a3a365bbfeb88e983b1608f5a57b592d45

Show
Ignore:
Timestamp:
02/08/07 02:21:35 (2 years ago)
Author:
Jean-Baptiste Kempf <jb@videolan.org>
git-committer:
Jean-Baptiste Kempf <jb@videolan.org> 1170897695 +0000
git-parent:

[2c97594876f6e790dfcd0d19d9f9ccb0f9eb299a]

git-author:
Jean-Baptiste Kempf <jb@videolan.org> 1170897695 +0000
Message:

Qt4: One Day / One Simples Pref UI.
The Input Ui needs to be reviewed since I added a few buttons that weren't specified in the wiki.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/qt4/Modules.am

    re0d590f r014b14a  
    2121    ui/main_interface \ 
    2222    ui/sprefs_audio \ 
     23    ui/sprefs_input \ 
    2324    ui/sprefs_interface \ 
    2425    ui/sprefs_playlist \ 
     
    176177    ui/main_interface.ui \ 
    177178    ui/sprefs_audio.ui \ 
     179    ui/sprefs_input.ui \ 
    178180    ui/sprefs_interface.ui \ 
    179181    ui/sprefs_playlist.ui \ 
  • modules/gui/qt4/components/simple_preferences.cpp

    rfa417ad r014b14a  
    4444 
    4545#include "ui/sprefs_audio.h" 
     46#include "ui/sprefs_input.h" 
    4647#include "ui/sprefs_video.h" 
    4748#include "ui/sprefs_subtitles.h" 
  • modules/gui/qt4/ui/sprefs_audio.ui

    rda7bbf9 r014b14a  
    11<ui version="4.0" > 
     2 <author>Jean-Baptiste Kempf</author> 
    23 <class>SPrefsAudio</class> 
    34 <widget class="QWidget" name="SPrefsAudio" > 
     
    67    <x>0</x> 
    78    <y>0</y> 
    8     <width>475</width> 
     9    <width>418</width> 
    910    <height>597</height> 
    1011   </rect> 
     
    3132   </item> 
    3233   <item> 
     34    <spacer> 
     35     <property name="orientation" > 
     36      <enum>Qt::Vertical</enum> 
     37     </property> 
     38     <property name="sizeType" > 
     39      <enum>QSizePolicy::Fixed</enum> 
     40     </property> 
     41     <property name="sizeHint" > 
     42      <size> 
     43       <width>20</width> 
     44       <height>10</height> 
     45      </size> 
     46     </property> 
     47    </spacer> 
     48   </item> 
     49   <item> 
    3350    <widget class="QGroupBox" name="groupBox_3" > 
    3451     <property name="title" > 
    3552      <string>General Audio</string> 
    3653     </property> 
    37      <widget class="QSlider" name="defaultVolume" > 
    38       <property name="geometry" > 
    39        <rect> 
    40         <x>250</x> 
    41         <y>60</y> 
    42         <width>200</width> 
    43         <height>16</height> 
    44        </rect> 
    45       </property> 
    46       <property name="sizePolicy" > 
    47        <sizepolicy> 
    48         <hsizetype>1</hsizetype> 
    49         <vsizetype>0</vsizetype> 
    50         <horstretch>0</horstretch> 
    51         <verstretch>0</verstretch> 
    52        </sizepolicy> 
    53       </property> 
    54       <property name="maximumSize" > 
    55        <size> 
    56         <width>200</width> 
    57         <height>16777215</height> 
    58        </size> 
    59       </property> 
    60       <property name="orientation" > 
    61        <enum>Qt::Horizontal</enum> 
    62       </property> 
    63      </widget> 
    64      <widget class="QLabel" name="label_2" > 
    65       <property name="geometry" > 
    66        <rect> 
    67         <x>10</x> 
    68         <y>50</y> 
    69         <width>249</width> 
    70         <height>17</height> 
    71        </rect> 
    72       </property> 
    73       <property name="text" > 
    74        <string>Default volume</string> 
    75       </property> 
    76      </widget> 
    77      <widget class="QCheckBox" name="checkBox" > 
    78       <property name="geometry" > 
    79        <rect> 
    80         <x>10</x> 
    81         <y>90</y> 
    82         <width>231</width> 
    83         <height>23</height> 
    84        </rect> 
    85       </property> 
    86       <property name="text" > 
    87        <string>Use S/PDIF when available</string> 
    88       </property> 
    89      </widget> 
    90      <widget class="QComboBox" name="preferredAudioLanguage" > 
    91       <property name="geometry" > 
    92        <rect> 
    93         <x>250</x> 
    94         <y>20</y> 
    95         <width>200</width> 
    96         <height>26</height> 
    97        </rect> 
    98       </property> 
    99       <property name="sizePolicy" > 
    100        <sizepolicy> 
    101         <hsizetype>1</hsizetype> 
    102         <vsizetype>0</vsizetype> 
    103         <horstretch>0</horstretch> 
    104         <verstretch>0</verstretch> 
    105        </sizepolicy> 
    106       </property> 
    107       <property name="maximumSize" > 
    108        <size> 
    109         <width>300</width> 
    110         <height>16777215</height> 
    111        </size> 
    112       </property> 
    113      </widget> 
    114      <widget class="QLabel" name="label_8" > 
    115       <property name="geometry" > 
    116        <rect> 
    117         <x>10</x> 
    118         <y>120</y> 
    119         <width>249</width> 
    120         <height>26</height> 
    121        </rect> 
    122       </property> 
    123       <property name="text" > 
    124        <string>Force detection of Dolby Surround</string> 
    125       </property> 
    126      </widget> 
    127      <widget class="QComboBox" name="preferredAudioLanguage_2" > 
    128       <property name="geometry" > 
    129        <rect> 
    130         <x>250</x> 
    131         <y>120</y> 
    132         <width>200</width> 
    133         <height>26</height> 
    134        </rect> 
    135       </property> 
    136       <property name="sizePolicy" > 
    137        <sizepolicy> 
    138         <hsizetype>1</hsizetype> 
    139         <vsizetype>0</vsizetype> 
    140         <horstretch>0</horstretch> 
    141         <verstretch>0</verstretch> 
    142        </sizepolicy> 
    143       </property> 
    144       <property name="maximumSize" > 
    145        <size> 
    146         <width>300</width> 
    147         <height>16777215</height> 
    148        </size> 
    149       </property> 
    150       <property name="currentIndex" > 
    151        <number>-1</number> 
    152       </property> 
    153      </widget> 
    154      <widget class="QLabel" name="label" > 
    155       <property name="geometry" > 
    156        <rect> 
    157         <x>10</x> 
    158         <y>20</y> 
    159         <width>249</width> 
    160         <height>26</height> 
    161        </rect> 
    162       </property> 
    163       <property name="text" > 
    164        <string>Preferred audio language</string> 
    165       </property> 
    166      </widget> 
     54     <layout class="QGridLayout" > 
     55      <property name="margin" > 
     56       <number>9</number> 
     57      </property> 
     58      <property name="spacing" > 
     59       <number>6</number> 
     60      </property> 
     61      <item row="2" column="0" colspan="2" > 
     62       <widget class="QLabel" name="label_8" > 
     63        <property name="text" > 
     64         <string>Force detection of Dolby Surround</string> 
     65        </property> 
     66       </widget> 
     67      </item> 
     68      <item row="2" column="2" > 
     69       <widget class="QComboBox" name="preferredAudioLanguage_2" > 
     70        <property name="sizePolicy" > 
     71         <sizepolicy> 
     72          <hsizetype>3</hsizetype> 
     73          <vsizetype>0</vsizetype> 
     74          <horstretch>0</horstretch> 
     75          <verstretch>0</verstretch> 
     76         </sizepolicy> 
     77        </property> 
     78        <property name="maximumSize" > 
     79         <size> 
     80          <width>300</width> 
     81          <height>16777215</height> 
     82         </size> 
     83        </property> 
     84        <property name="currentIndex" > 
     85         <number>-1</number> 
     86        </property> 
     87       </widget> 
     88      </item> 
     89      <item row="1" column="0" colspan="3" > 
     90       <widget class="QCheckBox" name="checkBox" > 
     91        <property name="text" > 
     92         <string>Use S/PDIF when available</string> 
     93        </property> 
     94       </widget> 
     95      </item> 
     96      <item row="3" column="2" > 
     97       <widget class="QComboBox" name="preferredAudioLanguage" > 
     98        <property name="sizePolicy" > 
     99         <sizepolicy> 
     100          <hsizetype>1</hsizetype> 
     101          <vsizetype>0</vsizetype> 
     102          <horstretch>0</horstretch> 
     103          <verstretch>0</verstretch> 
     104         </sizepolicy> 
     105        </property> 
     106        <property name="maximumSize" > 
     107         <size> 
     108          <width>300</width> 
     109          <height>16777215</height> 
     110         </size> 
     111        </property> 
     112       </widget> 
     113      </item> 
     114      <item row="3" column="0" colspan="2" > 
     115       <widget class="QLabel" name="label" > 
     116        <property name="text" > 
     117         <string>Preferred audio language</string> 
     118        </property> 
     119       </widget> 
     120      </item> 
     121      <item row="0" column="2" > 
     122       <widget class="QSlider" name="defaultVolume" > 
     123        <property name="sizePolicy" > 
     124         <sizepolicy> 
     125          <hsizetype>1</hsizetype> 
     126          <vsizetype>0</vsizetype> 
     127          <horstretch>0</horstretch> 
     128          <verstretch>0</verstretch> 
     129         </sizepolicy> 
     130        </property> 
     131        <property name="maximumSize" > 
     132         <size> 
     133          <width>200</width> 
     134          <height>16777215</height> 
     135         </size> 
     136        </property> 
     137        <property name="orientation" > 
     138         <enum>Qt::Horizontal</enum> 
     139        </property> 
     140       </widget> 
     141      </item> 
     142      <item row="0" column="0" colspan="2" > 
     143       <widget class="QLabel" name="label_2" > 
     144        <property name="text" > 
     145         <string>Default volume</string> 
     146        </property> 
     147       </widget> 
     148      </item> 
     149     </layout> 
    167150    </widget> 
    168151   </item> 
     
    179162       <number>6</number> 
    180163      </property> 
    181       <item row="3" column="2" > 
    182        <widget class="QPushButton" name="fileBrowseButton" > 
    183         <property name="text" > 
    184          <string>Browse</string> 
    185         </property> 
    186        </widget> 
     164      <item row="4" column="1" > 
     165       <widget class="QLineEdit" name="FileName" /> 
    187166      </item> 
    188167      <item row="4" column="2" > 
     
    193172       </widget> 
    194173      </item> 
    195       <item row="4" column="1" > 
    196        <widget class="QLineEdit" name="lineEdit" /> 
     174      <item row="4" column="0" > 
     175       <widget class="QLabel" name="label_7" > 
     176        <property name="text" > 
     177         <string>File</string> 
     178        </property> 
     179       </widget> 
     180      </item> 
     181      <item row="3" column="2" > 
     182       <widget class="QPushButton" name="OSSBrowse" > 
     183        <property name="text" > 
     184         <string>Browse</string> 
     185        </property> 
     186       </widget> 
    197187      </item> 
    198188      <item row="3" column="1" > 
    199        <widget class="QLineEdit" name="lineEdit_2" /> 
     189       <widget class="QLineEdit" name="OSSDevice" /> 
     190      </item> 
     191      <item row="3" column="0" > 
     192       <widget class="QLabel" name="OSSLabel" > 
     193        <property name="text" > 
     194         <string>OSS Device</string> 
     195        </property> 
     196       </widget> 
     197      </item> 
     198      <item row="2" column="0" > 
     199       <widget class="QLabel" name="DirectXLabel" > 
     200        <property name="text" > 
     201         <string>DirectX Device</string> 
     202        </property> 
     203       </widget> 
    200204      </item> 
    201205      <item row="2" column="1" colspan="2" > 
    202        <widget class="QComboBox" name="alsaDevice_2" /> 
     206       <widget class="QComboBox" name="DirectXDevice" /> 
     207      </item> 
     208      <item row="1" column="0" > 
     209       <widget class="QLabel" name="alsaLabel" > 
     210        <property name="text" > 
     211         <string>Alsa Device</string> 
     212        </property> 
     213       </widget> 
    203214      </item> 
    204215      <item row="1" column="1" colspan="2" > 
     
    208219       <widget class="QComboBox" name="outputModule" /> 
    209220      </item> 
    210       <item row="2" column="0" > 
    211        <widget class="QLabel" name="label_6" > 
    212         <property name="text" > 
    213          <string>DirectX Device</string> 
    214         </property> 
    215        </widget> 
    216       </item> 
    217       <item row="1" column="0" > 
    218        <widget class="QLabel" name="label_4" > 
    219         <property name="text" > 
    220          <string>Alsa Device</string> 
    221         </property> 
    222        </widget> 
    223       </item> 
    224221      <item row="0" column="0" > 
    225222       <widget class="QLabel" name="label_3" > 
    226223        <property name="text" > 
    227224         <string>Type</string> 
    228         </property> 
    229        </widget> 
    230       </item> 
    231       <item row="3" column="0" > 
    232        <widget class="QLabel" name="label_9" > 
    233         <property name="text" > 
    234          <string>OSS Device</string> 
    235         </property> 
    236        </widget> 
    237       </item> 
    238       <item row="4" column="0" > 
    239        <widget class="QLabel" name="label_7" > 
    240         <property name="text" > 
    241          <string>File</string> 
    242225        </property> 
    243226       </widget> 
     
    300283  </layout> 
    301284 </widget> 
     285 <includes/> 
    302286 <resources/> 
    303287 <connections/> 
  • modules/gui/qt4/ui/sprefs_video.ui

    rac972be r014b14a  
    11<ui version="4.0" > 
     2 <author>Jean-Baptiste Kempf</author> 
    23 <class>SPrefsVideo</class> 
    34 <widget class="QWidget" name="SPrefsVideo" > 
     
    218219  </layout> 
    219220 </widget> 
     221 <includes/> 
    220222 <resources/> 
    221223 <connections/>