2 * Copyright 2014 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
22 color: theme.palette.normal.background
23 Component.onCompleted: theme.name = "Ubuntu.Components.Themes.SuruDark"
25 property alias indicatorsModel: __indicatorsModel
26 property alias originalModelData: __indicatorsModel.originalModelData
28 Indicators.IndicatorsModel {
30 Component.onCompleted: load();
33 function insertIndicator(index) {
37 for (i = index; !done && i >= 1; i--) {
39 var lookFor = __indicatorsModel.originalModelData[i-1]["identifier"]
42 for (j = __indicatorsModel.modelData.length-1; !done && j >= 0; j--) {
43 if (__indicatorsModel.modelData[j]["identifier"] === lookFor) {
49 __indicatorsModel.insert(insertIndex, __indicatorsModel.originalModelData[index]);
52 function removeIndicator(index) {
54 for (i = 0; i < __indicatorsModel.modelData.length; i++) {
55 if (__indicatorsModel.modelData[i]["identifier"] === __indicatorsModel.originalModelData[index]["identifier"]) {
56 __indicatorsModel.remove(i);
62 function setIndicatorVisible(index, visible) {
63 var identifier = __indicatorsModel.originalModelData[index]["identifier"];
64 __indicatorsModel.setIndicatorVisible(identifier, visible);
67 function resetData() {
68 __indicatorsModel.load();
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