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 Ubuntu.Components 0.1
19import LightDM 0.1 as LightDM
26 property bool ready: wallpaper.status == Image.Ready
27 property bool leftTeaserPressed: teasingMouseArea.pressed &&
28 teasingMouseArea.mouseX < teasingMouseArea.width / 2
29 property bool rightTeaserPressed: teasingMouseArea.pressed &&
30 teasingMouseArea.mouseX > teasingMouseArea.width / 2
32 signal selected(int uid)
33 signal unlocked(int uid)
38 source: shell.background
55 topMargin: units.gu(2)
56 horizontalCenter: parent.horizontalCenter
67 objectName: "loginLoader"
70 leftMargin: Math.min(parent.width * 0.16, units.gu(20))
71 verticalCenter: parent.verticalCenter
76 // TODO: Once we have a system API for determining which mode we are
77 // in, tablet/phone/desktop, that should be used instead of narrowMode.
78 source: greeter.narrowMode ? "" : "LoginList.qml"
81 item.currentIndex = greeterContentLoader.currentIndex;
82 selected(item.currentIndex);
83 item.resetAuthentication();
87 target: loginLoader.item
89 value: greeterContentLoader.model
93 target: loginLoader.item
103 onCurrentIndexChanged: {
104 if (greeterContentLoader.currentIndex !== loginLoader.item.currentIndex) {
105 greeterContentLoader.currentIndex = loginLoader.item.currentIndex;
113 height: narrowMode ? parent.height : 0.75 * parent.height
114 model: greeterContentLoader.infographicModel
116 Component.onCompleted: infographics.updateUsername(greeterContentLoader.currentIndex)
120 onSelected: infographics.updateUsername(uid)
123 function updateUsername(uid) {
124 greeterContentLoader.infographicModel.username = greeterContentLoader.model.data(uid, LightDM.UserRoles.NameRole)
125 greeterContentLoader.infographicModel.readyForDataChangeSlot();
129 verticalCenter: parent.verticalCenter
130 left: narrowMode ? root.left : loginLoader.right
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