128eb13c09
Summary: Following D27862 port KWinScreenEdges to KConfigXT, handle isSaveNeeded and isDefault KCModule state. Reviewers: #kwin, ervin, bport, meven, zzag Reviewed By: #kwin, ervin, zzag Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D28475
331 lines
9 KiB
XML
331 lines
9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>KWinScreenEdgesConfigUI</class>
|
|
<widget class="QWidget" name="KWinScreenEdgesConfigUI">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>500</width>
|
|
<height>525</height>
|
|
</rect>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>500</width>
|
|
<height>525</height>
|
|
</size>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<widget class="QLabel" name="infoLabel">
|
|
<property name="text">
|
|
<string>You can trigger an action by pushing the mouse cursor against the corresponding screen edge or corner.</string>
|
|
</property>
|
|
<property name="wordWrap">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="verticalSpacer_2">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeType">
|
|
<enum>QSizePolicy::Minimum</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="KWin::Monitor" name="monitor" native="true">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>200</width>
|
|
<height>200</height>
|
|
</size>
|
|
</property>
|
|
<property name="focusPolicy">
|
|
<enum>Qt::StrongFocus</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QFormLayout" name="formLayout">
|
|
<property name="formAlignment">
|
|
<set>Qt::AlignHCenter|Qt::AlignTop</set>
|
|
</property>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="quickMaximizeLabel">
|
|
<property name="text">
|
|
<string>&Maximize:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>kcfg_ElectricBorderMaximize</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QCheckBox" name="kcfg_ElectricBorderMaximize">
|
|
<property name="text">
|
|
<string>Windows dragged to top edge</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="quickTileLabel">
|
|
<property name="text">
|
|
<string>&Tile:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>quickTileBox</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QCheckBox" name="kcfg_ElectricBorderTiling">
|
|
<property name="text">
|
|
<string>Windows dragged to left or right edge</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="electricBorderCornerRatioLabel">
|
|
<property name="text">
|
|
<string>Trigger &quarter tiling in:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>electricBorderCornerRatioSpin</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<item>
|
|
<widget class="QSpinBox" name="electricBorderCornerRatioSpin">
|
|
<property name="enabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="suffix">
|
|
<string>%</string>
|
|
</property>
|
|
<property name="prefix">
|
|
<string>Outer </string>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>49</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="label_1">
|
|
<property name="enabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="text">
|
|
<string>of the screen</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="4" column="0">
|
|
<widget class="QLabel" name="desktopSwitchLabel">
|
|
<property name="toolTip">
|
|
<string>Change desktop when the mouse cursor is pushed against the edge of the screen</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>&Switch desktop on edge:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>kcfg_ElectricBorders</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="1">
|
|
<widget class="KComboBox" name="kcfg_ElectricBorders">
|
|
<item>
|
|
<property name="text">
|
|
<string comment="Switch desktop on edge">Disabled</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Only When Moving Windows</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Always Enabled</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="0">
|
|
<widget class="QLabel" name="activationDelayLabel">
|
|
<property name="toolTip">
|
|
<string>Amount of time required for the mouse cursor to be pushed against the edge of the screen before the action is triggered</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Activation &delay:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>kcfg_ElectricBorderDelay</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="1">
|
|
<widget class="QSpinBox" name="kcfg_ElectricBorderDelay">
|
|
<property name="suffix">
|
|
<string> ms</string>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>1000</number>
|
|
</property>
|
|
<property name="singleStep">
|
|
<number>50</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>0</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="0">
|
|
<widget class="QLabel" name="triggerCooldownLabel">
|
|
<property name="enabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Amount of time required after triggering an action until the next trigger can occur</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>&Reactivation delay:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>kcfg_ElectricBorderCooldown</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="1">
|
|
<widget class="QSpinBox" name="kcfg_ElectricBorderCooldown">
|
|
<property name="enabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="suffix">
|
|
<string> ms</string>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>1000</number>
|
|
</property>
|
|
<property name="singleStep">
|
|
<number>50</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>0</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1">
|
|
<spacer name="verticalSpacer_1">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeType">
|
|
<enum>QSizePolicy::Fixed</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>4</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<spacer name="verticalSpacer_3">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeType">
|
|
<enum>QSizePolicy::Expanding</enum>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>KComboBox</class>
|
|
<extends>QComboBox</extends>
|
|
<header>kcombobox.h</header>
|
|
</customwidget>
|
|
<customwidget>
|
|
<class>KWin::Monitor</class>
|
|
<extends>QWidget</extends>
|
|
<header>monitor.h</header>
|
|
<container>1</container>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<resources/>
|
|
<connections>
|
|
<connection>
|
|
<sender>kcfg_ElectricBorderTiling</sender>
|
|
<signal>toggled(bool)</signal>
|
|
<receiver>label_1</receiver>
|
|
<slot>setEnabled(bool)</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>20</x>
|
|
<y>20</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>20</x>
|
|
<y>20</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>kcfg_ElectricBorderTiling</sender>
|
|
<signal>toggled(bool)</signal>
|
|
<receiver>electricBorderCornerRatioSpin</receiver>
|
|
<slot>setEnabled(bool)</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>20</x>
|
|
<y>20</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>20</x>
|
|
<y>20</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>kcfg_ElectricBorderTiling</sender>
|
|
<signal>toggled(bool)</signal>
|
|
<receiver>electricBorderCornerRatioLabel</receiver>
|
|
<slot>setEnabled(bool)</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>20</x>
|
|
<y>20</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>20</x>
|
|
<y>20</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
</ui>
|