@@ -1,117 +0,0 @@
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− * Nick Dedekind <nick.dedekind@canonical.com>
21−import Ubuntu.Components 0.1
26− property int iconSize: units.gu(2)
27− property alias leftLabel: itemLeftLabel.text
28− property alias rightLabel: itemRightLabel.text
29− property var icons: undefined
34− // FIXME: For now we will enable led indicator support only for messaging indicator
35− // in the future we should export a led API insted of doing that,
38− // only load source Component if the icons contains the new message icon
39− source: (indicatorWidget.icons && (String(indicatorWidget.icons).indexOf("indicator-messages-new") != -1)) ? Qt.resolvedUrl("IndicatorsLight.qml") : ""
44− objectName: "itemRow"
47− bottom: parent.bottom
48− horizontalCenter: parent.horizontalCenter
53− width: contentWidth + units.gu(1)
54− objectName: "leftLabel"
55− color: Theme.palette.selected.backgroundText
57− font.family: "Ubuntu"
59− anchors.verticalCenter: parent.verticalCenter
61− horizontalAlignment: Text.AlignHCenter
68− bottom: parent.bottom
72− model: indicatorWidget.icons
75− width: itemImage.width + units.gu(1)
76− height: iconRow.height
80− height: indicatorWidget.iconSize
81− anchors.centerIn: parent
91− width: contentWidth + units.gu(1)
92− objectName: "rightLabel"
93− color: Theme.palette.selected.backgroundText
95− font.family: "Ubuntu"
97− anchors.verticalCenter: parent.verticalCenter
99− horizontalAlignment: Text.AlignHCenter
103− onRootActionStateChanged: {
104− if (rootActionState == undefined) {
112− leftLabel = rootActionState.leftLabel ? rootActionState.leftLabel : "";
113− rightLabel = rootActionState.rightLabel ? rootActionState.rightLabel : "";
114− icons = rootActionState.icons;
115− enabled = rootActionState.visible;