init develop
[vietkaralist] / qml / vietkaralist / MenuBar.qml
1 /*
2 Copyright (C) 2011  by Cuong Le <metacuong@gmail.com>
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program.  If not, see <http://www.gnu.org/licenses/>
16 */
17
18 import QtQuick 1.1
19
20 Item {
21
22     id:mainMenuBar
23
24     signal changeToFavouritePage
25     signal changeToMainPage
26     signal option
27     signal about
28
29     anchors.fill: parent
30     Rectangle {
31         width: parent.width
32         height: 50
33         y:parent.height-50
34         color:"#2c84a6"
35         border.color: "grey"
36         radius: 0
37
38
39
40      MenuButton{
41         id:btn_favor
42         source: "imgs/f.png"
43         x:10
44
45         onClicked: changeToFavouritePage
46
47      }
48
49      MenuButton{
50         id:btn_songlist
51         source: "imgs/l.png"
52         x:60
53
54         onClicked:changeToMainPage
55
56      }
57
58      MenuButton{
59         id:btn_opts
60         source: "imgs/o.png"
61         x:110
62
63         onClicked: {
64
65         }
66      }
67
68
69      MenuButton{
70         id:btn_about
71         source: "imgs/ab.png"
72         x:parent.width-50
73
74         onClicked:mainMenuBar.about()
75
76      }
77
78
79     }
80 }