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",
28 "title": "Bluetooth (F)",
29 "icons": [ "image://theme/bluetooth-active" ],
31 getUnityMenuModelData("fake-indicator-bluetooth"));
32 Indicators.UnityMenuModelCache.setCachedModelData("com.canonical.indicators.fake2",
33 "/com/canonical/indicators/fake2",
34 "/com/canonical/indicators/fake2",
36 "title": "Network (F)",
37 "icons": [ "image://theme/simcard-error", "image://theme/wifi-high" ],
39 getUnityMenuModelData("fake-indicator-network"));
40 Indicators.UnityMenuModelCache.setCachedModelData("com.canonical.indicators.fake3",
41 "/com/canonical/indicators/fake3",
42 "/com/canonical/indicators/fake3",
44 "title": "Messages (F)",
45 "icons": [ "image://theme/messages-new" ],
47 getUnityMenuModelData("fake-indicator-sound"));
48 Indicators.UnityMenuModelCache.setCachedModelData("com.canonical.indicators.fake4",
49 "/com/canonical/indicators/fake4",
50 "/com/canonical/indicators/fake4",
53 "icons": [ "image://theme/audio-volume-high" ],
55 getUnityMenuModelData("fake-indicator-power"));
56 Indicators.UnityMenuModelCache.setCachedModelData("com.canonical.indicators.fake5",
57 "/com/canonical/indicators/fake5",
58 "/com/canonical/indicators/fake5",
60 "title": "Battery (F)",
61 "icons": [ "image://theme/battery-020" ],
63 getUnityMenuModelData("fake-indicator-bluetooth"));
64 Indicators.UnityMenuModelCache.setCachedModelData("com.canonical.indicators.fake6",
65 "/com/canonical/indicators/fake6",
66 "/com/canonical/indicators/fake6",
68 "title": "Upcoming Events (F)",
71 getUnityMenuModelData("fake-indicator-datetime"));
74 function getUnityMenuModelData(identifier) {
81 "type": "com.canonical.indicator.root",
93 for (var i = 0; i < 8; i++) {
108 submenus.push(submenu);
110 root[0]["submenu"] = submenus;
115 property var originalModelData: [
117 "identifier": "fake-indicator-bluetooth",
118 "indicatorProperties": {
120 "busName": "com.canonical.indicators.fake1",
121 "menuObjectPath": "/com/canonical/indicators/fake1",
122 "actionsObjectPath": "/com/canonical/indicators/fake1"
126 "identifier": "fake-indicator-network",
127 "indicatorProperties": {
129 "busName": "com.canonical.indicators.fake2",
130 "menuObjectPath": "/com/canonical/indicators/fake2",
131 "actionsObjectPath": "/com/canonical/indicators/fake2"
135 "identifier": "fake-indicator-messages",
136 "indicatorProperties": {
138 "busName": "com.canonical.indicators.fake3",
139 "menuObjectPath": "/com/canonical/indicators/fake3",
140 "actionsObjectPath": "/com/canonical/indicators/fake3"
144 "identifier": "fake-indicator-sound",
145 "indicatorProperties": {
147 "busName": "com.canonical.indicators.fake4",
148 "menuObjectPath": "/com/canonical/indicators/fake4",
149 "actionsObjectPath": "/com/canonical/indicators/fake4"
153 "identifier": "fake-indicator-power",
154 "indicatorProperties": {
156 "busName": "com.canonical.indicators.fake5",
157 "menuObjectPath": "/com/canonical/indicators/fake5",
158 "actionsObjectPath": "/com/canonical/indicators/fake5"
162 "identifier": "fake-indicator-datetime",
163 "indicatorProperties": {
165 "busName": "com.canonical.indicators.fake6",
166 "menuObjectPath": "/com/canonical/indicators/fake6",
167 "actionsObjectPath": "/com/canonical/indicators/fake6"
172 function load(profile) {
174 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