Changeset View
Changeset View
Standalone View
Standalone View
src/qml/NavigationActionBar.qml
Show All 27 Lines | 24 | ColumnLayout { | |||
---|---|---|---|---|---|
28 | 28 | | |||
29 | anchors.topMargin: elisaTheme.layoutVerticalMargin | 29 | anchors.topMargin: elisaTheme.layoutVerticalMargin | ||
30 | anchors.bottomMargin: elisaTheme.layoutVerticalMargin | 30 | anchors.bottomMargin: elisaTheme.layoutVerticalMargin | ||
31 | 31 | | |||
32 | property string mainTitle | 32 | property string mainTitle | ||
33 | property string secondaryTitle | 33 | property string secondaryTitle | ||
34 | property url image | 34 | property url image | ||
35 | property bool allowArtistNavigation: false | 35 | property bool allowArtistNavigation: false | ||
36 | property bool showEnqueueButton: true | ||||
37 | property bool showCreateRadioButton: false | ||||
36 | 38 | | |||
37 | property string labelText | 39 | property string labelText | ||
38 | property bool showRating: true | 40 | property bool showRating: true | ||
39 | property alias filterText: filterTextInput.text | 41 | property alias filterText: filterTextInput.text | ||
40 | property alias filterRating: ratingFilter.starRating | 42 | property alias filterRating: ratingFilter.starRating | ||
41 | property bool enableGoBack: true | 43 | property bool enableGoBack: true | ||
42 | property bool expandedFilterView: persistentSettings.expandedFilterView | 44 | property bool expandedFilterView: persistentSettings.expandedFilterView | ||
43 | property bool enableSorting: true | 45 | property bool enableSorting: true | ||
44 | property bool sortOrder | 46 | property bool sortOrder | ||
45 | property var findAction: elisa.action("edit_find") | 47 | property var findAction: elisa.action("edit_find") | ||
46 | 48 | | |||
47 | signal enqueue(); | 49 | signal enqueue(); | ||
48 | signal replaceAndPlay(); | 50 | signal replaceAndPlay(); | ||
51 | signal createRadio(); | ||||
49 | signal goBack(); | 52 | signal goBack(); | ||
50 | signal showArtist(); | 53 | signal showArtist(); | ||
51 | signal sort(var order); | 54 | signal sort(var order); | ||
52 | 55 | | |||
53 | Controls1.Action { | 56 | Controls1.Action { | ||
54 | id: goPreviousAction | 57 | id: goPreviousAction | ||
55 | text: i18nc("navigate back in the views stack", "Back") | 58 | text: i18nc("navigate back in the views stack", "Back") | ||
56 | iconName: (Qt.application.layoutDirection == Qt.RightToLeft) ? "go-next" : "go-previous" | 59 | iconName: (Qt.application.layoutDirection == Qt.RightToLeft) ? "go-next" : "go-previous" | ||
▲ Show 20 Lines • Show All 131 Lines • ▼ Show 20 Line(s) | 186 | Controls1.Button { | |||
188 | activeFocusOnTab: true | 191 | activeFocusOnTab: true | ||
189 | focus: true | 192 | focus: true | ||
190 | 193 | | |||
191 | onClicked: enqueue() | 194 | onClicked: enqueue() | ||
192 | Keys.onReturnPressed: enqueue() | 195 | Keys.onReturnPressed: enqueue() | ||
193 | 196 | | |||
194 | Layout.leftMargin: 0 | 197 | Layout.leftMargin: 0 | ||
195 | Layout.rightMargin: 0 | 198 | Layout.rightMargin: 0 | ||
199 | | ||||
200 | visible: navigationBar.showEnqueueButton | ||||
196 | } | 201 | } | ||
197 | 202 | | |||
198 | Controls1.Button { | 203 | Controls1.Button { | ||
199 | objectName: 'replaceAndPlayButton' | 204 | objectName: 'replaceAndPlayButton' | ||
200 | text: i18nc("Clear playlist and play", "Replace and Play") | 205 | text: i18nc("Clear playlist and play", "Replace and Play") | ||
201 | tooltip: i18nc("Clear playlist and add current list to it", "Replace PlayList and Play Now") | 206 | tooltip: i18nc("Clear playlist and add current list to it", "Replace PlayList and Play Now") | ||
202 | iconName: "media-playback-start" | 207 | iconName: "media-playback-start" | ||
203 | 208 | | |||
204 | activeFocusOnTab: true | 209 | activeFocusOnTab: true | ||
205 | 210 | | |||
206 | onClicked: replaceAndPlay() | 211 | onClicked: replaceAndPlay() | ||
207 | Keys.onReturnPressed: replaceAndPlay() | 212 | Keys.onReturnPressed: replaceAndPlay() | ||
208 | 213 | | |||
209 | Layout.leftMargin: !LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | 214 | Layout.leftMargin: !LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | ||
210 | Layout.rightMargin: LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | 215 | Layout.rightMargin: LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | ||
216 | | ||||
217 | visible: navigationBar.showEnqueueButton | ||||
218 | } | ||||
219 | | ||||
220 | Controls1.Button { | ||||
221 | objectName: 'createRadioButton' | ||||
222 | text: i18nc("Create a new radio", "Create a radio") | ||||
223 | tooltip: i18nc("Create a new radio", "Create a new radio") | ||||
224 | iconName: "media-track-add-amarok" | ||||
225 | | ||||
226 | activeFocusOnTab: true | ||||
227 | | ||||
228 | onClicked: createRadio() | ||||
229 | Keys.onReturnPressed: createRadio() | ||||
230 | | ||||
231 | Layout.leftMargin: !LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | ||||
232 | Layout.rightMargin: LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | ||||
233 | | ||||
234 | visible: navigationBar.showCreateRadioButton | ||||
211 | } | 235 | } | ||
212 | 236 | | |||
213 | Controls1.Button { | 237 | Controls1.Button { | ||
214 | objectName: 'showArtistButton' | 238 | objectName: 'showArtistButton' | ||
215 | id: showArtistButton | 239 | id: showArtistButton | ||
216 | 240 | | |||
217 | visible: allowArtistNavigation | 241 | visible: allowArtistNavigation | ||
218 | text: i18nc("Button to navigate to the artist of the album", "Display Artist") | 242 | text: i18nc("Button to navigate to the artist of the album", "Display Artist") | ||
▲ Show 20 Lines • Show All 195 Lines • Show Last 20 Lines |