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 Ubuntu.Components.Popups 0.1
34 // Fake greeter object
52 anchors.fill: scopeView
66 scope: scopes.loaded ? scopes.get(scopeSelector.selectedIndex) : undefined
80 anchors { fill: parent; margins: units.gu(1) }
89 anchors { left: parent.left; right: parent.right }
91 onTextChanged: scopeView.scope.searchQuery = text
94 target: scopeView.scope
95 onSearchQueryChanged: searchField.text = scopeView.scope.searchQuery
100 text: "Scope selection"
102 verticalAlignment: Text.AlignBottom
107 anchors { left: parent.left; right: parent.right }
110 delegate: OptionSelectorDelegate {
118 verticalAlignment: Text.AlignBottom
123 anchors { left: parent.left; right: parent.right }
124 model: scopeView.scope ? scopeView.scope.categories : null
126 property Item selectedItem
128 delegate: OptionSelectorDelegate {
131 property string categoryId: model.categoryId
132 property string template: JSON.stringify(JSON.parse(model.rawRendererTemplate), null, " ");
134 onSelectedChanged: if (selected) categorySelector.selectedItem = categoryDelegate
143 text: categorySelector.selectedItem && categorySelector.selectedItem.template
148 text: "Override category"
150 PopupUtils.open(categoryEditor)
161 title: "Editing category definition"
164 id: categoryEditorArea
166 wrapMode: Text.WordWrap
167 text: categoryJson.text
170 onCancelClicked: PopupUtils.close(sheet)
172 PopupUtils.close(sheet);
173 scopeView.scope.categories.overrideCategoryJson(categorySelector.selectedItem.categoryId, categoryEditorArea.text);
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