diff --git a/LenaPi/MusicPlayer.qml b/LenaPi/MusicPlayer.qml index d254b17..656db32 100644 --- a/LenaPi/MusicPlayer.qml +++ b/LenaPi/MusicPlayer.qml @@ -47,18 +47,62 @@ Item{ color: "#99ffffff" height: 120 - RoundButton{ - id: startPause + // @todo: use rowLayout instead? + Row{ + spacing: 20 anchors.centerIn: parent - width: 80 - imageSource: "qrc:/icon_play" - onClicked:{ - musicModel.playPause(); - if(imageSource == "qrc:/icon_play") - imageSource = "qrc:/icon_pause" - else - imageSource = "qrc:/icon_play" + RoundButton{ + id: previous + anchors.verticalCenter: parent.verticalCenter + + width: 60 + imageSource: "qrc:/icon_previous" + + // visible: model.pHasPrevious + + onClicked:{ + //musicModel.playPrevious(); + } + } + RoundButton{ + id: playPause + anchors.verticalCenter: parent.verticalCenter + width: 80 + imageSource: "qrc:/icon_play" + + onClicked:{ + musicModel.playPause(); + if(imageSource == "qrc:/icon_play") + imageSource = "qrc:/icon_pause" + else + imageSource = "qrc:/icon_play" + } + } + RoundButton{ + id: stop + anchors.verticalCenter: parent.verticalCenter + + width: 60 + imageSource: "qrc:/icon_stop" + + onClicked:{ + //musicModel.stop(); + //playPause.imageSource = "qrc:/icon_play" + } + } + RoundButton{ + id: next + anchors.verticalCenter: parent.verticalCenter + + width: 60 + imageSource: "qrc:/icon_next" + + // visible: model.pHasNext + + onClicked:{ + //musicModel.playNext(); + } } } } diff --git a/LenaPi/lenapi.qrc b/LenaPi/lenapi.qrc index 6d29653..421d47d 100644 --- a/LenaPi/lenapi.qrc +++ b/LenaPi/lenapi.qrc @@ -5,5 +5,8 @@ resources/sky.jpg resources/pause.jpg resources/play.jpg + resources/next.jpg + resources/previous.jpg + resources/stop.jpg diff --git a/LenaPi/resources/next.jpg b/LenaPi/resources/next.jpg new file mode 100644 index 0000000..bb54db3 Binary files /dev/null and b/LenaPi/resources/next.jpg differ diff --git a/LenaPi/resources/previous.jpg b/LenaPi/resources/previous.jpg new file mode 100644 index 0000000..e6c22ac Binary files /dev/null and b/LenaPi/resources/previous.jpg differ diff --git a/LenaPi/resources/stop.jpg b/LenaPi/resources/stop.jpg new file mode 100644 index 0000000..08cb7c6 Binary files /dev/null and b/LenaPi/resources/stop.jpg differ diff --git a/pics/controlicons.png b/pics/controlicons.png new file mode 100644 index 0000000..4a13ffa Binary files /dev/null and b/pics/controlicons.png differ