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 QtQuick.Layouts 1.1
20import "../../../qml/Panel"
21import Ubuntu.Components 1.3
22import Unity.Test 0.1 as UT
23import Unity.Indicators 0.1 as Indicators
29 property alias indicatorsModel: __indicatorsModel
30 property alias originalModelData: __indicatorsModel.originalModelData
32 Indicators.IndicatorsModel {
34 Component.onCompleted: load();
37 function insertIndicator(index) {
41 for (i = index; !done && i >= 1; i--) {
43 var lookFor = __indicatorsModel.originalModelData[i-1]["identifier"]
46 for (j = __indicatorsModel.modelData.length-1; !done && j >= 0; j--) {
47 if (__indicatorsModel.modelData[j]["identifier"] === lookFor) {
53 __indicatorsModel.insert(insertIndex, __indicatorsModel.originalModelData[index]);
56 function removeIndicator(index) {
58 for (i = 0; i < __indicatorsModel.modelData.length; i++) {
59 if (__indicatorsModel.modelData[i]["identifier"] === __indicatorsModel.originalModelData[index]["identifier"]) {
60 __indicatorsModel.remove(i);
66 function setIndicatorVisible(index, visible) {
67 var identifier = __indicatorsModel.originalModelData[index]["identifier"];
68 __indicatorsModel.setIndicatorVisible(identifier, visible);
71 function resetData() {
72 __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