Add a settingspage for configuring the input widget
[quassel.git] / src / qtui / settingspages / appearancesettingspage.ui
index bc1e26b..2bc0409 100644 (file)
-<ui version="4.0" >
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
  <class>AppearanceSettingsPage</class>
- <widget class="QWidget" name="AppearanceSettingsPage" >
-  <property name="geometry" >
+ <widget class="QWidget" name="AppearanceSettingsPage">
+  <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>396</width>
-    <height>324</height>
+    <width>521</width>
+    <height>524</height>
    </rect>
   </property>
-  <property name="windowTitle" >
+  <property name="windowTitle">
    <string>Form</string>
   </property>
-  <layout class="QVBoxLayout" name="verticalLayout_2" >
+  <layout class="QVBoxLayout" name="verticalLayout_2">
    <item>
-    <widget class="QGroupBox" name="groupBox" >
-     <property name="title" >
-      <string>Client style:</string>
+    <widget class="QGroupBox" name="groupBox">
+     <property name="title">
+      <string>Client Style</string>
      </property>
-     <layout class="QVBoxLayout" >
+     <layout class="QVBoxLayout">
       <item>
-       <widget class="QComboBox" name="styleComboBox" />
+       <widget class="QComboBox" name="styleComboBox">
+        <property name="toolTip">
+         <string>Set application style</string>
+        </property>
+       </widget>
       </item>
      </layout>
     </widget>
    </item>
    <item>
-    <widget class="QGroupBox" name="groupBox_2" >
-     <property name="title" >
-      <string>Language:</string>
+    <widget class="QGroupBox" name="groupBox_2">
+     <property name="title">
+      <string>Language</string>
      </property>
-     <layout class="QVBoxLayout" name="verticalLayout" >
+     <layout class="QHBoxLayout" name="horizontalLayout">
       <item>
-       <widget class="QComboBox" name="languageComboBox" >
+       <widget class="QComboBox" name="languageComboBox">
+        <property name="toolTip">
+         <string>Set the application language. Requires restart!</string>
+        </property>
         <item>
-         <property name="text" >
-          <string>&lt;System Default></string>
+         <property name="text">
+          <string>&lt;System Default&gt;</string>
          </property>
         </item>
         <item>
-         <property name="text" >
-          <string>&lt;Original></string>
+         <property name="text">
+          <string>&lt;Original&gt;</string>
          </property>
         </item>
        </widget>
       </item>
-      <item>
-       <widget class="QLabel" name="label" >
-        <property name="text" >
-         <string>Note: needs client restart for full effect!</string>
-        </property>
-       </widget>
-      </item>
      </layout>
     </widget>
    </item>
    <item>
-    <widget class="QGroupBox" name="groupBox_3" >
-     <property name="title" >
-      <string>Misc:</string>
+    <widget class="QGroupBox" name="useCustomStyleSheet">
+     <property name="title">
+      <string>Use Custom Stylesheet</string>
      </property>
-     <layout class="QVBoxLayout" name="verticalLayout_3" >
-      <item>
-       <widget class="QCheckBox" name="showWebPreview" >
-        <property name="text" >
-         <string>Show Web Previews</string>
-        </property>
-        <property name="checked" >
-         <bool>true</bool>
-        </property>
-       </widget>
-      </item>
+     <property name="checkable">
+      <bool>true</bool>
+     </property>
+     <property name="checked">
+      <bool>false</bool>
+     </property>
+     <property name="settingsKey" stdset="0">
+      <string>/UiStyle/UseCustomStyleSheet</string>
+     </property>
+     <property name="defaultValue" stdset="0">
+      <bool>false</bool>
+     </property>
+     <layout class="QVBoxLayout" name="verticalLayout">
       <item>
-       <widget class="QCheckBox" name="showUserStateIcons" >
-        <property name="text" >
-         <string>Use Icons to represent away state of Users</string>
-        </property>
-        <property name="checked" >
-         <bool>true</bool>
-        </property>
-       </widget>
+       <layout class="QHBoxLayout" name="horizontalLayout_2">
+        <item>
+         <widget class="QLabel" name="label">
+          <property name="text">
+           <string>Path:</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QLineEdit" name="customStyleSheetPath">
+          <property name="sizePolicy">
+           <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+            <horstretch>0</horstretch>
+            <verstretch>0</verstretch>
+           </sizepolicy>
+          </property>
+          <property name="readOnly">
+           <bool>false</bool>
+          </property>
+          <property name="settingsKey" stdset="0">
+           <string>/UiStyle/CustomStyleSheetPath</string>
+          </property>
+          <property name="defaultValue" stdset="0">
+           <string/>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QToolButton" name="chooseStyleSheet">
+          <property name="text">
+           <string>...</string>
+          </property>
+         </widget>
+        </item>
+       </layout>
       </item>
      </layout>
     </widget>
    </item>
    <item>
-    <spacer name="verticalSpacer" >
-     <property name="orientation" >
+    <spacer name="verticalSpacer">
+     <property name="orientation">
       <enum>Qt::Vertical</enum>
      </property>
-     <property name="sizeHint" stdset="0" >
+     <property name="sizeHint" stdset="0">
       <size>
        <width>20</width>
        <height>40</height>