Changeset 44


Ignore:
Timestamp:
01/07/08 18:09:08 (4 years ago)
Author:
sander
Message:

Made dialogs consistent and improved layout

Location:
gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gui/about_dialog.ui

    r40 r44  
    77    <x>0</x> 
    88    <y>0</y> 
    9     <width>538</width> 
    10     <height>506</height> 
     9    <width>510</width> 
     10    <height>540</height> 
    1111   </rect> 
    1212  </property> 
     
    5252       </property> 
    5353       <property name="text" > 
    54         <string>QtMPC 0.1</string> 
    55        </property> 
    56        <property name="pixmap" > 
    57         <pixmap/> 
     54        <string>QtMPC 0.2</string> 
    5855       </property> 
    5956      </widget> 
     
    7067       <string>About</string> 
    7168      </attribute> 
    72       <widget class="QLabel" name="label_2" > 
    73        <property name="geometry" > 
    74         <rect> 
    75          <x>20</x> 
    76          <y>20</y> 
    77          <width>57</width> 
    78          <height>31</height> 
    79         </rect> 
    80        </property> 
    81        <property name="text" > 
    82         <string>Authors:</string> 
    83        </property> 
    84       </widget> 
    85       <widget class="QLabel" name="label_3" > 
    86        <property name="geometry" > 
    87         <rect> 
    88          <x>180</x> 
    89          <y>30</y> 
    90          <width>101</width> 
    91          <height>18</height> 
    92         </rect> 
    93        </property> 
    94        <property name="text" > 
    95         <string>Sander Knopper</string> 
    96        </property> 
    97       </widget> 
    98       <widget class="QLabel" name="label_4" > 
    99        <property name="geometry" > 
    100         <rect> 
    101          <x>180</x> 
    102          <y>60</y> 
    103          <width>111</width> 
    104          <height>18</height> 
    105         </rect> 
    106        </property> 
    107        <property name="text" > 
    108         <string>Roeland Douma</string> 
    109        </property> 
    110       </widget> 
     69      <layout class="QVBoxLayout" > 
     70       <item> 
     71        <layout class="QGridLayout" > 
     72         <item row="0" column="0" > 
     73          <widget class="QLabel" name="label_2" > 
     74           <property name="text" > 
     75            <string>Authors:</string> 
     76           </property> 
     77          </widget> 
     78         </item> 
     79         <item row="0" column="1" > 
     80          <widget class="QLabel" name="label_3" > 
     81           <property name="text" > 
     82            <string>Sander Knopper</string> 
     83           </property> 
     84          </widget> 
     85         </item> 
     86         <item row="1" column="1" > 
     87          <widget class="QLabel" name="label_4" > 
     88           <property name="text" > 
     89            <string>Roeland Douma</string> 
     90           </property> 
     91          </widget> 
     92         </item> 
     93         <item row="2" column="0" > 
     94          <widget class="QLabel" name="label_6" > 
     95           <property name="text" > 
     96            <string>Website:</string> 
     97           </property> 
     98          </widget> 
     99         </item> 
     100         <item row="2" column="1" > 
     101          <widget class="QLabel" name="label_7" > 
     102           <property name="text" > 
     103            <string>&lt;a href="http://qtmpc.lowblog.nl/">http://qtmpc.lowblog.nl&lt;/a></string> 
     104           </property> 
     105           <property name="openExternalLinks" > 
     106            <bool>true</bool> 
     107           </property> 
     108          </widget> 
     109         </item> 
     110        </layout> 
     111       </item> 
     112       <item> 
     113        <spacer> 
     114         <property name="orientation" > 
     115          <enum>Qt::Vertical</enum> 
     116         </property> 
     117         <property name="sizeHint" > 
     118          <size> 
     119           <width>20</width> 
     120           <height>131</height> 
     121          </size> 
     122         </property> 
     123        </spacer> 
     124       </item> 
     125      </layout> 
    111126     </widget> 
    112127     <widget class="QWidget" name="tab_2" > 
  • gui/preferences_dialog.ui

    r42 r44  
    66    <x>0</x> 
    77    <y>0</y> 
    8     <width>451</width> 
    9     <height>283</height> 
     8    <width>500</width> 
     9    <height>400</height> 
    1010   </rect> 
    1111  </property> 
     
    1313   <string>QtMPC Preferences</string> 
    1414  </property> 
    15   <widget class="QDialogButtonBox" name="buttonBox" > 
    16    <property name="geometry" > 
    17     <rect> 
    18      <x>9</x> 
    19      <y>247</y> 
    20      <width>433</width> 
    21      <height>27</height> 
    22     </rect> 
    23    </property> 
    24    <property name="orientation" > 
    25     <enum>Qt::Horizontal</enum> 
    26    </property> 
    27    <property name="standardButtons" > 
    28     <set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set> 
    29    </property> 
    30   </widget> 
    31   <widget class="QWidget" name="" > 
    32    <property name="geometry" > 
    33     <rect> 
    34      <x>9</x> 
    35      <y>9</y> 
    36      <width>431</width> 
    37      <height>221</height> 
    38     </rect> 
    39    </property> 
    40    <layout class="QVBoxLayout" > 
    41     <item> 
    42      <layout class="QHBoxLayout" > 
    43       <item> 
    44        <widget class="QLabel" name="label" > 
    45         <property name="text" > 
    46          <string>MPD host:</string> 
    47         </property> 
    48        </widget> 
    49       </item> 
    50       <item> 
    51        <widget class="QLineEdit" name="hostLineEdit" /> 
    52       </item> 
    53      </layout> 
    54     </item> 
    55     <item> 
    56      <layout class="QHBoxLayout" > 
    57       <item> 
    58        <widget class="QLabel" name="label_2" > 
    59         <property name="text" > 
    60          <string>MPD port:</string> 
    61         </property> 
    62        </widget> 
    63       </item> 
    64       <item> 
    65        <widget class="QSpinBox" name="portSpinBox" > 
    66         <property name="minimum" > 
    67          <number>1</number> 
    68         </property> 
    69         <property name="maximum" > 
    70          <number>60000</number> 
    71         </property> 
    72         <property name="value" > 
    73          <number>6600</number> 
    74         </property> 
    75        </widget> 
    76       </item> 
    77      </layout> 
    78     </item> 
    79     <item> 
    80      <layout class="QHBoxLayout" > 
    81       <item> 
    82        <widget class="QLabel" name="label_3" > 
    83         <property name="text" > 
    84          <string>Password:</string> 
    85         </property> 
    86        </widget> 
    87       </item> 
    88       <item> 
    89        <widget class="QLineEdit" name="passwordLineEdit" /> 
    90       </item> 
    91      </layout> 
    92     </item> 
    93     <item> 
    94      <layout class="QHBoxLayout" > 
    95       <item> 
    96        <spacer> 
    97         <property name="orientation" > 
    98          <enum>Qt::Horizontal</enum> 
    99         </property> 
    100         <property name="sizeHint" > 
    101          <size> 
    102           <width>30</width> 
    103           <height>20</height> 
    104          </size> 
    105         </property> 
    106        </spacer> 
    107       </item> 
    108       <item> 
    109        <widget class="QCheckBox" name="connectCheckBox" > 
    110         <property name="enabled" > 
    111          <bool>false</bool> 
    112         </property> 
    113         <property name="text" > 
    114          <string>Connect on Startup</string> 
    115         </property> 
    116        </widget> 
    117       </item> 
    118      </layout> 
    119     </item> 
    120     <item> 
    121      <layout class="QHBoxLayout" > 
    122       <item> 
    123        <spacer> 
    124         <property name="orientation" > 
    125          <enum>Qt::Horizontal</enum> 
    126         </property> 
    127         <property name="sizeHint" > 
    128          <size> 
    129           <width>30</width> 
    130           <height>20</height> 
    131          </size> 
    132         </property> 
    133        </spacer> 
    134       </item> 
    135       <item> 
    136        <widget class="QCheckBox" name="systemTrayCheckBox" > 
    137         <property name="enabled" > 
    138          <bool>true</bool> 
    139         </property> 
    140         <property name="text" > 
    141          <string>Show in System tray</string> 
    142         </property> 
    143        </widget> 
    144       </item> 
    145      </layout> 
    146     </item> 
    147     <item> 
    148      <layout class="QHBoxLayout" > 
    149       <item> 
    150        <spacer> 
    151         <property name="orientation" > 
    152          <enum>Qt::Horizontal</enum> 
    153         </property> 
    154         <property name="sizeHint" > 
    155          <size> 
    156           <width>171</width> 
    157           <height>35</height> 
    158          </size> 
    159         </property> 
    160        </spacer> 
    161       </item> 
    162       <item> 
    163        <widget class="QCheckBox" name="systemTrayPopup" > 
    164         <property name="text" > 
    165          <string>Show Popup message</string> 
    166         </property> 
    167        </widget> 
    168       </item> 
    169      </layout> 
    170     </item> 
    171    </layout> 
    172   </widget> 
     15  <layout class="QVBoxLayout" > 
     16   <item> 
     17    <layout class="QHBoxLayout" > 
     18     <property name="bottomMargin" > 
     19      <number>18</number> 
     20     </property> 
     21     <item> 
     22      <widget class="QLabel" name="label_4" > 
     23       <property name="sizePolicy" > 
     24        <sizepolicy vsizetype="Maximum" hsizetype="Preferred" > 
     25         <horstretch>1</horstretch> 
     26         <verstretch>0</verstretch> 
     27        </sizepolicy> 
     28       </property> 
     29       <property name="pixmap" > 
     30        <pixmap resource="../QtMPC.qrc" >:/images/icon.svg</pixmap> 
     31       </property> 
     32      </widget> 
     33     </item> 
     34     <item> 
     35      <widget class="QLabel" name="label_5" > 
     36       <property name="sizePolicy" > 
     37        <sizepolicy vsizetype="Maximum" hsizetype="Preferred" > 
     38         <horstretch>2</horstretch> 
     39         <verstretch>0</verstretch> 
     40        </sizepolicy> 
     41       </property> 
     42       <property name="font" > 
     43        <font> 
     44         <pointsize>16</pointsize> 
     45         <weight>75</weight> 
     46         <bold>true</bold> 
     47        </font> 
     48       </property> 
     49       <property name="text" > 
     50        <string>QtMPC Configuration</string> 
     51       </property> 
     52      </widget> 
     53     </item> 
     54    </layout> 
     55   </item> 
     56   <item> 
     57    <layout class="QGridLayout" > 
     58     <item row="0" column="0" > 
     59      <widget class="QLabel" name="label" > 
     60       <property name="text" > 
     61        <string>MPD host:</string> 
     62       </property> 
     63      </widget> 
     64     </item> 
     65     <item row="0" column="1" colspan="3" > 
     66      <widget class="QLineEdit" name="hostLineEdit" /> 
     67     </item> 
     68     <item row="1" column="0" colspan="2" > 
     69      <widget class="QLabel" name="label_2" > 
     70       <property name="text" > 
     71        <string>MPD port:</string> 
     72       </property> 
     73      </widget> 
     74     </item> 
     75     <item row="1" column="2" colspan="2" > 
     76      <widget class="QSpinBox" name="portSpinBox" > 
     77       <property name="minimum" > 
     78        <number>1</number> 
     79       </property> 
     80       <property name="maximum" > 
     81        <number>60000</number> 
     82       </property> 
     83       <property name="value" > 
     84        <number>6600</number> 
     85       </property> 
     86      </widget> 
     87     </item> 
     88     <item row="2" column="0" > 
     89      <widget class="QLabel" name="label_3" > 
     90       <property name="text" > 
     91        <string>Password:</string> 
     92       </property> 
     93      </widget> 
     94     </item> 
     95     <item row="2" column="1" colspan="3" > 
     96      <widget class="QLineEdit" name="passwordLineEdit" /> 
     97     </item> 
     98     <item row="3" column="0" colspan="3" > 
     99      <spacer> 
     100       <property name="orientation" > 
     101        <enum>Qt::Horizontal</enum> 
     102       </property> 
     103       <property name="sizeHint" > 
     104        <size> 
     105         <width>271</width> 
     106         <height>24</height> 
     107        </size> 
     108       </property> 
     109      </spacer> 
     110     </item> 
     111     <item row="3" column="3" > 
     112      <widget class="QCheckBox" name="connectCheckBox" > 
     113       <property name="enabled" > 
     114        <bool>false</bool> 
     115       </property> 
     116       <property name="text" > 
     117        <string>Connect on Startup</string> 
     118       </property> 
     119      </widget> 
     120     </item> 
     121     <item row="4" column="0" colspan="3" > 
     122      <spacer> 
     123       <property name="orientation" > 
     124        <enum>Qt::Horizontal</enum> 
     125       </property> 
     126       <property name="sizeHint" > 
     127        <size> 
     128         <width>271</width> 
     129         <height>24</height> 
     130        </size> 
     131       </property> 
     132      </spacer> 
     133     </item> 
     134     <item row="4" column="3" > 
     135      <widget class="QCheckBox" name="systemTrayCheckBox" > 
     136       <property name="enabled" > 
     137        <bool>true</bool> 
     138       </property> 
     139       <property name="text" > 
     140        <string>Show in System tray</string> 
     141       </property> 
     142      </widget> 
     143     </item> 
     144     <item row="5" column="0" colspan="3" > 
     145      <spacer> 
     146       <property name="orientation" > 
     147        <enum>Qt::Horizontal</enum> 
     148       </property> 
     149       <property name="sizeHint" > 
     150        <size> 
     151         <width>271</width> 
     152         <height>24</height> 
     153        </size> 
     154       </property> 
     155      </spacer> 
     156     </item> 
     157     <item row="5" column="3" > 
     158      <widget class="QCheckBox" name="systemTrayPopup" > 
     159       <property name="text" > 
     160        <string>Show Popup message</string> 
     161       </property> 
     162      </widget> 
     163     </item> 
     164    </layout> 
     165   </item> 
     166   <item> 
     167    <spacer> 
     168     <property name="orientation" > 
     169      <enum>Qt::Vertical</enum> 
     170     </property> 
     171     <property name="sizeHint" > 
     172      <size> 
     173       <width>482</width> 
     174       <height>16</height> 
     175      </size> 
     176     </property> 
     177    </spacer> 
     178   </item> 
     179   <item> 
     180    <widget class="QDialogButtonBox" name="buttonBox" > 
     181     <property name="orientation" > 
     182      <enum>Qt::Horizontal</enum> 
     183     </property> 
     184     <property name="standardButtons" > 
     185      <set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set> 
     186     </property> 
     187    </widget> 
     188   </item> 
     189  </layout> 
    173190 </widget> 
    174191 <resources/> 
Note: See TracChangeset for help on using the changeset viewer.