[kde-doc-english] playground/utils/synaptiks
Sebastian Wiesner
basti.wiesner at gmx.net
Sat Mar 6 17:16:11 CET 2010
SVN commit 1100038 by swiesner:
GUI: Turned QSpinBox for IdleTime setting into a KDoubleNumInput with slider, removed splitter
Use a much more reasonable maximum of 10s for IdleTime setting
M +104 -111 kcmodule/ui/autotouchpadcontrolpage.ui
M +1 -1 synaptiks.kcfg
--- trunk/playground/utils/synaptiks/kcmodule/ui/autotouchpadcontrolpage.ui #1100037:1100038
@@ -7,144 +7,137 @@
<rect>
<x>0</x>
<y>0</y>
- <width>450</width>
- <height>416</height>
+ <width>411</width>
+ <height>429</height>
</rect>
</property>
<property name="windowTitle">
<string comment="@title:window">Automatic touchpad control</string>
</property>
- <layout class="QVBoxLayout" name="verticalLayout_2">
+ <layout class="QVBoxLayout" name="verticalLayout_3">
<item>
- <widget class="QSplitter" name="splitter">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
+ <widget class="QGroupBox" name="kcfg_SwitchOffIfMouseIsPlugged">
+ <property name="whatsThis">
+ <string comment="@info:whatsthis">Automatically switch off touchpad, if a mouse is plugged in. If the mouse is unplugged, the touchpad is switched on again.</string>
</property>
- <widget class="QGroupBox" name="kcfg_SwitchOffIfMouseIsPlugged">
- <property name="whatsThis">
- <string comment="@info:whatsthis">Automatically switch off touchpad, if a mouse is plugged in. If the mouse is unplugged, the touchpad is switched on again.</string>
- </property>
- <property name="title">
- <string comment="@option:check">Automatically switch off touchpad, if a mouse is plugged</string>
- </property>
- <property name="checkable">
- <bool>true</bool>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout">
- <item>
- <widget class="QLabel" name="label">
- <property name="text">
- <string comment="@label">Ignore the following mouse devices</string>
- </property>
- <property name="buddy">
- <cstring>kcfg_IgnoredMouseDevices</cstring>
- </property>
- </widget>
- </item>
- <item>
- <widget class="synaptiks::MouseDevicesView" name="kcfg_IgnoredMouseDevices">
- <property name="whatsThis">
- <string comment="@info:whatsthis">All checked mouse devices are ignored. If such a mouse is plugged, the touchpad will remain on.</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- <widget class="QGroupBox" name="kcfg_SwitchOffOnKeyboardActivity">
- <property name="title">
- <string comment="@option:check">Automatically switch off touchpad on keyboard activity</string>
- </property>
- <property name="checkable">
- <bool>true</bool>
- </property>
- <layout class="QFormLayout" name="formLayout_2">
- <property name="fieldGrowthPolicy">
- <enum>QFormLayout::ExpandingFieldsGrow</enum>
- </property>
- <item row="0" column="0">
- <widget class="QLabel" name="label_2">
- <property name="text">
- <string comment="@label:listbox">Ignore these keys</string>
- </property>
- <property name="buddy">
- <cstring>kcfg_KeysToIgnore</cstring>
- </property>
- </widget>
- </item>
- <item row="0" column="1">
- <widget class="KComboBox" name="kcfg_KeysToIgnore">
- <property name="toolTip">
- <string comment="@info:tooltip"><para>These keys will be ignored when monitoring the keyboard:</para>
+ <property name="title">
+ <string comment="@option:check">Automatically switch off touchpad, if a mouse is plugged</string>
+ </property>
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item>
+ <widget class="QLabel" name="label">
+ <property name="text">
+ <string comment="@label">Ignore the following mouse devices</string>
+ </property>
+ <property name="buddy">
+ <cstring>kcfg_IgnoredMouseDevices</cstring>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="synaptiks::MouseDevicesView" name="kcfg_IgnoredMouseDevices">
+ <property name="whatsThis">
+ <string comment="@info:whatsthis">All checked mouse devices are ignored. If such a mouse is plugged, the touchpad will remain on.</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="kcfg_SwitchOffOnKeyboardActivity">
+ <property name="title">
+ <string comment="@option:check">Automatically switch off touchpad on keyboard activity</string>
+ </property>
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout_2">
+ <item>
+ <layout class="QFormLayout" name="formLayout">
+ <item row="0" column="0">
+ <widget class="QLabel" name="label_2">
+ <property name="text">
+ <string comment="@label:listbox">Ignore these keys</string>
+ </property>
+ <property name="buddy">
+ <cstring>kcfg_KeysToIgnore</cstring>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1">
+ <widget class="KComboBox" name="kcfg_KeysToIgnore">
+ <property name="toolTip">
+ <string comment="@info:tooltip"><para>These keys will be ignored when monitoring the keyboard:</para>
<para>
<list>
<item><interface>No keys</interface>: No keys are ignored. Every key causes the touchpad to be switched off.</item>
<item><interface>Modifier keys</interface>: Modifier keys (e.g. Shift, Ctrl) are ignored. Every other key causes the touchpad to be switched off, even when pressed in combination with a modifier key (e.g. Ctrl+S).</item>
<item><interface>Modifier combinations</interface>: Modifier keys and normal keys in combination with modifier keys are ignored. Every other key causes the touchpad to be switched off. Note, that even Shift-combinations for uppercase letters are ignored with this setting.</item>
</list></string>
- </property>
- <property name="whatsThis">
- <string comment="@info:whatsthis"><para>These keys will be ignored when monitoring the keyboard:</para>
+ </property>
+ <property name="whatsThis">
+ <string comment="@info:whatsthis"><para>These keys will be ignored when monitoring the keyboard:</para>
<para>
<list>
<item><interface>No keys</interface>: No keys are ignored. Every key causes the touchpad to be switched off.</item>
<item><interface>Modifier keys</interface>: Modifier keys (e.g. Shift, Ctrl) are ignored. Every other key causes the touchpad to be switched off, even when pressed in combination with a modifier key (e.g. Ctrl+S).</item>
<item><interface>Modifier combinations</interface>: Modifier keys and normal keys in combination with modifier keys are ignored. Every other key causes the touchpad to be switched off. Note, that even Shift-combinations for uppercase letters are ignored with this setting.</item>
</list></string>
- </property>
- <property name="frame">
- <bool>true</bool>
- </property>
- <item>
- <property name="text">
- <string comment="@item:inlistbox automatic touchpad control">No keys</string>
</property>
- </item>
- <item>
- <property name="text">
- <string comment="@item:inlistbox automatic touchpad control">Modifier keys</string>
+ <property name="frame">
+ <bool>true</bool>
</property>
- </item>
- <item>
- <property name="text">
- <string comment="@item:inlistbox automatic touchpad control">Modifier combinations</string>
- </property>
- </item>
- </widget>
- </item>
- <item row="1" column="0">
- <widget class="QLabel" name="idleTimeLabel">
- <property name="text">
- <string comment="@label:spinbox">Idle time</string>
- </property>
- <property name="buddy">
- <cstring>kcfg_IdleTime</cstring>
- </property>
- </widget>
- </item>
- <item row="1" column="1">
- <widget class="QDoubleSpinBox" name="kcfg_IdleTime">
- <property name="toolTip">
- <string comment="@info:tooltip">Time to wait after keyboard activity stopped, before switching the touchpad on again</string>
- </property>
- <property name="whatsThis">
- <string comment="@info:whatsthis">Time to wait after keyboard activity stopped, before switching the touchpad on again</string>
- </property>
- <property name="suffix">
- <string comment="@label:spinbox unit seconds"> s</string>
- </property>
- <property name="singleStep">
- <double>0.100000000000000</double>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
+ <item>
+ <property name="text">
+ <string comment="@item:inlistbox automatic touchpad control">No keys</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string comment="@item:inlistbox automatic touchpad control">Modifier keys</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string comment="@item:inlistbox automatic touchpad control">Modifier combinations</string>
+ </property>
+ </item>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <widget class="KDoubleNumInput" name="kcfg_IdleTime">
+ <property name="label">
+ <string comment="@label:spinbox">Time to wait before switching the keyboard on again</string>
+ </property>
+ <property name="maximum">
+ <double>10.000000000000000</double>
+ </property>
+ <property name="suffix">
+ <string comment="@label:spinbox"> s</string>
+ </property>
+ <property name="sliderEnabled">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
+ <class>KDoubleNumInput</class>
+ <extends>QWidget</extends>
+ <header>knuminput.h</header>
+ </customwidget>
+ <customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>kcombobox.h</header>
--- trunk/playground/utils/synaptiks/synaptiks.kcfg #1100037:1100038
@@ -32,7 +32,7 @@
typing stopped. Fractions of seconds are supported up to millisecond
precision.</label>
<min>0</min>
- <max>60</max>
+ <max>10</max>
<default>2.0</default>
</entry>
</group>
More information about the kde-doc-english
mailing list