init develop
[vietkaralist] / qml / vietkaralist / MenuBar.qml
diff --git a/qml/vietkaralist/MenuBar.qml b/qml/vietkaralist/MenuBar.qml
new file mode 100644 (file)
index 0000000..c1e51e4
--- /dev/null
@@ -0,0 +1,80 @@
+/*
+Copyright (C) 2011  by Cuong Le <metacuong@gmail.com>
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>
+*/
+
+import QtQuick 1.1
+
+Item {
+
+    id:mainMenuBar
+
+    signal changeToFavouritePage
+    signal changeToMainPage
+    signal option
+    signal about
+
+    anchors.fill: parent
+    Rectangle {
+        width: parent.width
+        height: 50
+        y:parent.height-50
+        color:"#2c84a6"
+        border.color: "grey"
+        radius: 0
+
+
+
+     MenuButton{
+        id:btn_favor
+        source: "imgs/f.png"
+        x:10
+
+        onClicked: changeToFavouritePage
+
+     }
+
+     MenuButton{
+        id:btn_songlist
+        source: "imgs/l.png"
+        x:60
+
+        onClicked:changeToMainPage
+
+     }
+
+     MenuButton{
+        id:btn_opts
+        source: "imgs/o.png"
+        x:110
+
+        onClicked: {
+
+        }
+     }
+
+
+     MenuButton{
+        id:btn_about
+        source: "imgs/ab.png"
+        x:parent.width-50
+
+        onClicked:mainMenuBar.about()
+
+     }
+
+
+    }
+}