2 * Copyright (C) 2013 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/>.
18import "../../Components"
20import Ubuntu.Gestures 0.1
26 signal updateScreenshots
27 property alias enableHeightBehavior: heightBehaviour.enabled
28 property bool enableHeightBehaviorOnNextCreation: firstModel.count + secondModel.count == 0
32 onDashShownChanged: if (shell.dashShown && shell.stageScreenshotsReady) updateScreenshots();
33 onStageScreenshotsReadyChanged: if (shell.dashShown && shell.stageScreenshotsReady) updateScreenshots();
39 NumberAnimation { duration: 200; easing.type: Easing.InOutQuad }
43 target: root.firstModel
45 heightBehaviour.enabled = true;
49 target: root.secondModel
51 heightBehaviour.enabled = true;
55 property bool canEnableTerminationMode: true
57 onCanEnableTerminationModeChanged: {
58 if (!canEnableTerminationMode)
59 terminationModeEnabled = false
62 // when false, it means it's on activation mode
63 property bool terminationModeEnabled: false
65 maximumNumberOfColumns: 10
66 minimumHorizontalSpacing: units.gu(2)
67 referenceDelegateWidth: units.gu(11)
68 verticalSpacing: units.gu(2)
71 width: runningAppTile.width + root.horizontalSpacing
72 height: runningAppTile.height + root.verticalSpacing
74 RunningApplicationTile {
76 objectName: "runningAppTile " + model.name
79 horizontalCenter: parent.horizontalCenter
82 onRequestedActivationMode: { root.terminationModeEnabled = false }
83 onRequestedTerminationMode: {
84 if (canEnableTerminationMode)
85 root.terminationModeEnabled = true
87 onRequestedApplicationTermination: {
88 shell.applicationManager.stopApplication(model.appId)
90 onRequestedApplicationActivation: {
91 shell.activateApplication(model.appId)
94 terminationModeEnabled: root.terminationModeEnabled
96 Component.onCompleted: {
97 root.updateScreenshots.connect(updateScreenshotFromCache);
103 NumberAnimation { properties: "x,y"; duration: 400; easing.type: Easing.OutCubic }
108 z: -1 // behind all RunningApplicationTiles
109 enabled: root.terminationModeEnabled
110 onPressed: { root.terminationModeEnabled = false; }
113 PressedOutsideNotifier {
115 enabled: root.terminationModeEnabled
117 root.terminationModeEnabled = false;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list