@@ -0,0 +1,334 @@
2+ * Copyright (C) 2016 Canonical, Ltd.
4+ * This program is free software; you can redistribute it and/or modify
5+ * it under the terms of the GNU General Public License as published by
6+ * the Free Software Foundation; version 3.
8+ * This program is distributed in the hope that it will be useful,
9+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
10+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+ * GNU General Public License for more details.
13+ * You should have received a copy of the GNU General Public License
14+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
18+import QtQuick.Layouts 1.1
19+import Ubuntu.Components 1.3
23+ width: topLayout.childrenRect.width + topLayout.anchors.leftMargin + topLayout.anchors.rightMargin
24+ height: topLayout.childrenRect.height + topLayout.anchors.topMargin + topLayout.anchors.bottomMargin
25+ color: theme.palette.normal.background
28+ readonly property int maxTextSize: (root.parent.width / 4) - padding
29+ readonly property int padding: units.gu(4)
31+ Item { // dummy container to break binding loops *and* keep the margins in topLayout working
35+ anchors.margins: padding
37+ columnSpacing: padding
41+ text: i18n.tr("Keyboard Shortcuts")
43+ font.weight: Font.Light
49+ columnSpacing: units.gu(4)
50+ Layout.alignment: Qt.AlignTop
55+ text: i18n.tr("Unity 8")
56+ font.weight: Font.Light
57+ color: theme.palette.normal.baseText
62+ text: i18n.tr("PrtScr")
64+ font.weight: Font.Medium
67+ text: i18n.tr("Takes a screenshot.")
69+ font.weight: Font.Light
71+ Layout.maximumWidth: maxTextSize
75+ text: i18n.tr("Alt + PrtScr")
77+ font.weight: Font.Medium
80+ text: i18n.tr("Takes a screenshot of a window.")
82+ font.weight: Font.Light
84+ Layout.maximumWidth: maxTextSize
88+ text: i18n.tr("Super + Space")
90+ font.weight: Font.Medium
93+ text: i18n.tr("Switches to next keyboard layout.")
95+ font.weight: Font.Light
97+ Layout.maximumWidth: maxTextSize
101+ text: i18n.tr("Super + Shift + Space")
103+ font.weight: Font.Medium
106+ text: i18n.tr("Switches to previous keyboard layout.")
108+ font.weight: Font.Light
110+ Layout.maximumWidth: maxTextSize
115+ Item { Layout.columnSpan: 2; height: units.gu(2) }
117+ Layout.columnSpan: 2
118+ text: i18n.tr("Launcher")
119+ font.weight: Font.Light
120+ color: theme.palette.normal.baseText
125+ text: i18n.tr("Super (Hold)")
127+ font.weight: Font.Medium
130+ text: i18n.tr("Opens the launcher, displays shortcuts.")
132+ font.weight: Font.Light
134+ Layout.maximumWidth: maxTextSize
138+ text: i18n.tr("Alt + F1")
140+ font.weight: Font.Medium
143+ text: i18n.tr("Opens launcher keyboard navigation mode.")
145+ font.weight: Font.Light
147+ Layout.maximumWidth: maxTextSize
151+ text: i18n.tr("Super + Tab")
153+ font.weight: Font.Medium
156+ text: i18n.tr("Switches applications via the launcher.")
158+ font.weight: Font.Light
160+ Layout.maximumWidth: maxTextSize
164+ text: i18n.tr("Super + 0 to 9")
166+ font.weight: Font.Medium
169+ text: i18n.tr("Same as clicking on a launcher icon.")
171+ font.weight: Font.Light
173+ Layout.maximumWidth: maxTextSize
178+ Item { Layout.columnSpan: 2; height: units.gu(2) }
180+ Layout.columnSpan: 2
181+ text: i18n.tr("Scopes")
182+ font.weight: Font.Light
183+ color: theme.palette.normal.baseText
188+ text: i18n.tr("Super (Tap)")
190+ font.weight: Font.Medium
193+ text: i18n.tr("Opens the Scopes home.")
195+ font.weight: Font.Light
197+ Layout.maximumWidth: maxTextSize
203+ columnSpacing: padding
204+ Layout.alignment: Qt.AlignTop
206+ // Switching section
208+ Layout.columnSpan: 2
209+ text: i18n.tr("Switching")
210+ font.weight: Font.Light
211+ color: theme.palette.normal.baseText
216+ text: i18n.tr("Alt + Tab")
218+ font.weight: Font.Medium
221+ text: i18n.tr("Switches between applications.")
223+ font.weight: Font.Light
225+ Layout.maximumWidth: maxTextSize
229+ text: i18n.tr("Super + W")
231+ font.weight: Font.Medium
234+ text: i18n.tr("Opens the desktop spread.")
236+ font.weight: Font.Light
238+ Layout.maximumWidth: maxTextSize
242+ text: i18n.tr("Cursor Left or Right")
244+ font.weight: Font.Medium
247+ text: i18n.tr("Moves the focus.")
249+ font.weight: Font.Light
251+ Layout.maximumWidth: maxTextSize
256+ Item { Layout.columnSpan: 2; height: units.gu(2) }
258+ Layout.columnSpan: 2
259+ text: i18n.tr("Windows")
260+ font.weight: Font.Light
261+ color: theme.palette.normal.baseText
266+ text: i18n.tr("Ctrl + Super + D")
268+ font.weight: Font.Medium
271+ text: i18n.tr("Minimizes all windows.")
273+ font.weight: Font.Light
275+ Layout.maximumWidth: maxTextSize
279+ text: i18n.tr("Ctrl + Super + Up")
281+ font.weight: Font.Medium
284+ text: i18n.tr("Maximizes the current window.")
286+ font.weight: Font.Light
288+ Layout.maximumWidth: maxTextSize
292+ text: i18n.tr("Ctrl + Super + Down")
294+ font.weight: Font.Medium
297+ text: i18n.tr("Minimizes or restores the current window.")
299+ font.weight: Font.Light
301+ Layout.maximumWidth: maxTextSize
305+ text: i18n.tr("Ctrl + Super + Left or Right")
307+ font.weight: Font.Medium
310+ text: i18n.tr("Semi-maximizes the current window.")
312+ font.weight: Font.Light
314+ Layout.maximumWidth: maxTextSize
318+ text: i18n.tr("Alt + F4")
320+ font.weight: Font.Medium
323+ text: i18n.tr("Closes the current window.")
325+ font.weight: Font.Light
327+ Layout.maximumWidth: maxTextSize
331+ Item { Layout.fillHeight: true; Layout.columnSpan: 2 } // spacer