2
import Ubuntu.Components 0.1
3
import Ubuntu.Components.ListItems 0.1
4
import Ubuntu.Components.Popups 0.1
7
objectName: i18n.tr("Music Player")
16
// First tab begins here
20
title: i18n.tr("Playing")
22
// Tab content begins here
25
tools: ToolbarActions {
31
iconSource: Qt.resolvedUrl("images/share-app.png")
32
text: i18n.tr("Share")
35
label.text = i18n.tr("Share pressed")
43
iconSource: Qt.resolvedUrl("prev.png")
44
text: i18n.tr("Previous")
47
label.text = i18n.tr("Prev track pressed")
55
iconSource: Qt.resolvedUrl("prev.png")
59
label.text = i18n.tr("Play pressed")
60
// should also change button to pause icon
68
iconSource: Qt.resolvedUrl("next.png")
72
label.text = i18n.tr("Next track pressed")
78
objectName: "settings"
80
iconSource: Qt.resolvedUrl("settings.png")
81
text: i18n.tr("Settings")
84
label.text = i18n.tr("Settings pressed")
94
topMargin: title.height
109
source: "images/music.png"
110
fillMode: Image.PreserveAspectCrop
111
horizontalAlignment: Image.AlignHCenter
112
verticalAlignment: Image.AlignVCenter
120
// Second tab begins here
122
objectName: "Artists Tab"
124
title: i18n.tr("Artists")
126
anchors.margins: units.gu(2)
128
tools: ToolbarActions {
132
iconSource: Qt.resolvedUrl("avatar.png")
133
text: i18n.tr("Tap me!")
136
label.text = i18n.tr("Toolbar tapped")
142
anchors.centerIn: parent
145
objectName: "Artist Toolbar"
147
text: i18n.tr("List all artists on device here.")
153
// Third tab begins here
155
objectName: "Albums Tab"
157
title: i18n.tr("Albums")
159
anchors.margins: units.gu(2)
161
tools: ToolbarActions {
165
iconSource: Qt.resolvedUrl("avatar.png")
166
text: i18n.tr("Tap me!")
169
label.text = i18n.tr("Toolbar tapped")
175
anchors.centerIn: parent
178
objectName: "Album Toolbar"
180
text: i18n.tr("List all albums on device here.")
186
// Fourth tab begins here
188
objectName: "Tracks Tab"
190
title: i18n.tr("Tracks")
192
anchors.margins: units.gu(2)
194
tools: ToolbarActions {
198
iconSource: Qt.resolvedUrl("avatar.png")
199
text: i18n.tr("Tap me!")
202
label.text = i18n.tr("Toolbar tapped")
208
anchors.centerIn: parent
211
objectName: "Track Toolbar"
213
text: i18n.tr("List all tracks here.")