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"
24 signal updateScreenshots
25 property alias enableHeightBehavior: heightBehaviour.enabled
26 property bool enableHeightBehaviorOnNextCreation: firstModel.count + secondModel.count == 0
30 onDashShownChanged: if (shell.dashShown && shell.stageScreenshotsReady) updateScreenshots();
31 onStageScreenshotsReadyChanged: if (shell.dashShown && shell.stageScreenshotsReady) updateScreenshots();
37 NumberAnimation { duration: 200; easing.type: Easing.InOutQuad }
41 target: root.firstModel
43 heightBehaviour.enabled = true;
47 target: root.secondModel
49 heightBehaviour.enabled = true;
53 property bool canEnableTerminationMode: true
55 onCanEnableTerminationModeChanged: {
56 if (!canEnableTerminationMode)
57 terminationModeEnabled = false
60 // when false, it means it's on activation mode
61 property bool terminationModeEnabled: false
63 maximumNumberOfColumns: 10
64 minimumHorizontalSpacing: units.gu(2)
65 referenceDelegateWidth: units.gu(11)
66 verticalSpacing: units.gu(2)
69 width: runningAppTile.width + root.horizontalSpacing
70 height: runningAppTile.height + root.verticalSpacing
72 RunningApplicationTile {
74 objectName: "runningAppTile " + model.name
77 horizontalCenter: parent.horizontalCenter
80 onRequestedActivationMode: { root.terminationModeEnabled = false }
81 onRequestedTerminationMode: {
82 if (canEnableTerminationMode)
83 root.terminationModeEnabled = true
85 onRequestedApplicationTermination: {
86 shell.applicationManager.stopApplication(model.appId)
88 onRequestedApplicationActivation: {
89 shell.activateApplication(model.appId)
92 terminationModeEnabled: root.terminationModeEnabled
94 Component.onCompleted: {
95 root.updateScreenshots.connect(updateScreenshotFromCache);
101 NumberAnimation { properties: "x,y"; duration: 400; easing.type: Easing.OutCubic }
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