innitial commit
[xbmc-qml-remote:xbmc-qml-remote.git] / Control.qml
1 import Qt 4.7
2 import "script.js" as Script
3 import "playlist.js" as Playlist
4
5 Rectangle {
6         width: parent.width
7         height: 80
8         id: controlComponent
9         z: 99
10
11         gradient: Gradient {
12                 GradientStop { position: 0.0; color: "#000" }
13                 GradientStop { position: 1.0; color: "#333" }
14         }
15
16         Button {
17                 x:0
18                 y: 0
19                 source: "img/media-skip-backward.png"
20                 function clicked() {
21                         Script.playerCmd("SkipPrevious");
22                 }
23         }
24
25         /*Button {
26                 x:2
27                 y: 2
28                 source: "img/media-seek-backward.png"
29                 function clicked() {
30                         controlComponent.back();
31                 }
32         }*/
33
34         Button {
35                 x:80
36                 y: 0
37                 source: "img/media-playback-start.png"
38                 function clicked() {
39                         Script.playerCmd("PlayPause");
40                 }
41         }
42         Button {
43                 x:160
44                 y: 0
45                 source: "img/media-playback-stop.png"
46                 function clicked() {
47                         Script.playerCmd("Stop");
48                 }
49         }
50
51         /*Button {
52                 x:2
53                 y: 2
54                 source: "img/media-seek-forward.png"
55                 function clicked() {
56                         controlComponent.back();
57                 }
58         }*/
59
60         Button {
61                 x:240
62                 y: 0
63                 source: "img/media-skip-forward.png"
64                 function clicked() {
65                         Script.playerCmd("SkipNext");
66                 }
67         }
68
69         /*Button {
70                 x:650
71                 y: 0
72                 source: "img/player-volume-muted.png"
73                 function clicked() {
74                         controlComponent.back();
75                 }
76         }*/
77         Button {
78                 x:640
79                 y: 0
80                 source: "img/edit-clear-list.png"
81                 function clicked() {
82                         Playlist.playlistCmd("Clear");
83                 }
84         }
85
86         Button {
87                 x: 720
88                 y: 2
89                 source: "img/arrow-left-double.png"
90                 function clicked() {
91                         controlComponent.back();
92                 }
93         }
94 }