2 * Copyright 2013 Canonical Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser 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 Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 * Renato Araujo Oliveira Filho <renato@canonical.com>
21import Ubuntu.Components 0.1
22import Ubuntu.Components.ListItems 0.1 as ListItem
23import Unity.Indicators 0.1 as Indicators
25Indicators.FramedMenuItem {
28 property bool checked: false
29 property bool secure: false
30 property bool adHoc: false
31 property int signalStrength: 0
36 // Can't rely on binding. Checked is assigned on click.
37 checkBoxActive.checked = checked;
41 var imageName = "nm-signal-100"
44 imageName = "nm-adhoc";
45 } else if (signalStrength == 0) {
46 imageName = "nm-signal-00";
47 } else if (signalStrength <= 25) {
48 imageName = "nm-signal-25";
49 } else if (signalStrength <= 50) {
50 imageName = "nm-signal-50";
51 } else if (signalStrength <= 75) {
52 imageName = "nm-signal-75";
56 imageName += "-secure";
58 return "image://gicon/" + imageName;
66 anchors.centerIn: parent
69 accessPoint.activate();
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