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 Unity.Indicators 0.1 as Indicators
20Indicators.FakeIndicatorsModel {
23 Component.onCompleted: {
24 Indicators.UnityMenuModelCache.setCachedModelData("com.canonical.indicators.fake1",
25 "/com/canonical/indicators/fake1",
26 "/com/canonical/indicators/fake1",
27 getUnityMenuModelData("fake-indicator-bluetooth",
30 [ "image://theme/bluetooth-active" ]));
31 Indicators.UnityMenuModelCache.setCachedModelData("com.canonical.indicators.fake2",
32 "/com/canonical/indicators/fake2",
33 "/com/canonical/indicators/fake2",
34 getUnityMenuModelData("fake-indicator-network",
37 [ "image://theme/simcard-error", "image://theme/wifi-high" ]));
38 Indicators.UnityMenuModelCache.setCachedModelData("com.canonical.indicators.fake3",
39 "/com/canonical/indicators/fake3",
40 "/com/canonical/indicators/fake3",
41 getUnityMenuModelData("fake-indicator-sound",
44 [ "image://theme/messages-new" ]));
45 Indicators.UnityMenuModelCache.setCachedModelData("com.canonical.indicators.fake4",
46 "/com/canonical/indicators/fake4",
47 "/com/canonical/indicators/fake4",
48 getUnityMenuModelData("fake-indicator-power",
51 [ "image://theme/audio-volume-high" ]));
52 Indicators.UnityMenuModelCache.setCachedModelData("com.canonical.indicators.fake5",
53 "/com/canonical/indicators/fake5",
54 "/com/canonical/indicators/fake5",
55 getUnityMenuModelData("fake-indicator-power",
58 [ "image://theme/battery-020" ]));
59 Indicators.UnityMenuModelCache.setCachedModelData("com.canonical.indicators.fake6",
60 "/com/canonical/indicators/fake6",
61 "/com/canonical/indicators/fake6",
62 getUnityMenuModelData("fake-indicator-datetime",
63 "Upcoming Events (F)",
68 function getUnityMenuModelData(identifier, title, label, icons) {
75 "type": "com.canonical.indicator.root",
91 for (var i = 0; i < 8; i++) {
106 submenus.push(submenu);
108 root[0]["submenu"] = submenus;
113 property var originalModelData: [
115 "identifier": "fake-indicator-bluetooth",
116 "indicatorProperties": {
118 "busName": "com.canonical.indicators.fake1",
119 "menuObjectPath": "/com/canonical/indicators/fake1",
120 "actionsObjectPath": "/com/canonical/indicators/fake1"
124 "identifier": "fake-indicator-network",
125 "indicatorProperties": {
127 "busName": "com.canonical.indicators.fake2",
128 "menuObjectPath": "/com/canonical/indicators/fake2",
129 "actionsObjectPath": "/com/canonical/indicators/fake2"
133 "identifier": "fake-indicator-messages",
134 "indicatorProperties": {
136 "busName": "com.canonical.indicators.fake3",
137 "menuObjectPath": "/com/canonical/indicators/fake3",
138 "actionsObjectPath": "/com/canonical/indicators/fake3"
142 "identifier": "fake-indicator-sound",
143 "indicatorProperties": {
145 "busName": "com.canonical.indicators.fake4",
146 "menuObjectPath": "/com/canonical/indicators/fake4",
147 "actionsObjectPath": "/com/canonical/indicators/fake4"
151 "identifier": "fake-indicator-power",
152 "indicatorProperties": {
154 "busName": "com.canonical.indicators.fake5",
155 "menuObjectPath": "/com/canonical/indicators/fake5",
156 "actionsObjectPath": "/com/canonical/indicators/fake5"
160 "identifier": "fake-indicator-datetime",
161 "indicatorProperties": {
163 "busName": "com.canonical.indicators.fake6",
164 "menuObjectPath": "/com/canonical/indicators/fake6",
165 "actionsObjectPath": "/com/canonical/indicators/fake6"
170 function load(profile) {
172 root.modelData = originalModelData;
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