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>
18 * Nick Dedekind <nick.dedekind@canonical.com>
22 import Ubuntu.Components 1.3
27 property variant indicatorProperties
30 title: indicatorProperties && indicatorProperties.title ? indicatorProperties.title :
31 indicatorProperties && indicatorProperties.accessibleName ? indicatorProperties.accessibleName
38 color: theme.palette.highlighted.background
47 height: selectorLayout.height
48 onClicked: visualCheck.checked = !visualCheck.checked
52 title.text: "Enable Visual Representation"
57 SlotsLayout.position: SlotsLayout.Trailing
64 objectName: "pageLoader"
69 top: visualCheckItem.bottom
73 topMargin: units.gu(2)
74 bottomMargin: units.gu(2)
76 sourceComponent: visualCheck.checked ? page : tree
81 identifier: model.identifier
82 busName: indicatorProperties.busName
83 actionsObjectPath: indicatorProperties.actionsObjectPath
84 menuObjectPath: indicatorProperties.menuObjectPath
90 identifier: model.identifier
91 busName: indicatorProperties.busName
92 actionsObjectPath: indicatorProperties.actionsObjectPath
93 menuObjectPath: indicatorProperties.menuObjectPath
103 bottom: parent.bottom
106 height: childrenRect.height