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
64 objectName: "overviewGridButtonImage"
70 verticalCenterOffset: -units.gu(1)
72 sourceSize.width: width
73 sourceSize.height: height
74 visible: labelIcon.text === ""
86 verticalCenterOffset: -units.gu(1)
98 leftMargin: units.gu(0.5)
99 rightMargin: units.gu(0.5)
100 bottomMargin: units.gu(1.5)
102 elide: Text.ElideRight
103 horizontalAlignment: Text.AlignHCenter
106 onClicked: overview.menuSelected(index)
119 spacing: grid.cellHeight
120 y: grid.cellHeight - units.dp(1)
122 model: grid.rowCount - 1
123 ListItems.ThinDivider {
124 anchors.margins: units.dp(1)
132 bottom: parent.bottom
134 spacing: grid.cellWidth - units.dp(1)
135 x: grid.cellWidth - units.dp(1)
137 model: grid.columnCount - 1
138 ListItems.VerticalThinDivider {
139 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