2
* Copyright 2015 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/>.
18
import Ubuntu.Components 1.3
21
objectName: "actionBarTemplate"
23
property list<Action> actionList: [
25
iconName: "alarm-clock"
29
iconName: "appointment"
33
iconName: "attachment"
50
property list<Action> shortActionList: [
61
head.actions: actionList
65
className: "ActionBar"
68
title: i18n.tr("Short list")
69
titleWidth: units.gu(15)
72
// no numberOfSlots specified. Using default value.
74
actions: shortActionList
79
title: i18n.tr("Number of slots")
80
titleWidth: units.gu(15)
83
id: numberOfActionsSlider
92
title: i18n.tr("Long list")
93
titleWidth: units.gu(15)
96
numberOfSlots: numberOfActionsSlider.value.toFixed(0)
102
title: i18n.tr("Disabled")
103
titleWidth: units.gu(15)
107
numberOfSlots: numberOfActionsSlider.value.toFixed(0)