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
20import "../../../Components/ListItems" as ListItems
25 height: childrenRect.height
38 objectName: "overviewGrid"
40 property int columnCount: 3
41 property int rowCount: Math.ceil(model.count / columnCount)
47 topMargin: units.gu(3)
48 leftMargin: units.gu(2)
49 rightMargin: units.gu(2)
51 height: cellWidth * rowCount
52 cellWidth: Math.floor((width) / columnCount)
54 model: overviewGrid.model
59 objectName: "overviewGridButton" + index
61 height: grid.cellHeight
69 anchors.centerIn: parent
70 anchors.verticalCenterOffset: -units.gu(1)
73 for(var pName in indicatorProperties) {
74 if (item.hasOwnProperty(pName)) {
75 item[pName] = indicatorProperties[pName]
89 leftMargin: units.gu(0.5)
90 rightMargin: units.gu(0.5)
91 bottomMargin: units.gu(1.5)
93 elide: Text.ElideRight
94 horizontalAlignment: Text.AlignHCenter
97 onClicked: overview.menuSelected(index)
110 spacing: grid.cellHeight
111 y: grid.cellHeight - units.dp(1)
113 model: grid.rowCount - 1
114 ListItems.ThinDivider {
115 anchors.margins: units.dp(1)
123 bottom: parent.bottom
125 spacing: grid.cellWidth - units.dp(1)
126 x: grid.cellWidth - units.dp(1)
128 model: grid.columnCount - 1
129 ListItems.VerticalThinDivider {
130 anchors.margins: units.dp(1)
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