3 @author: Sudheer K. <scifi1947 at gmail.com>
4 @license: GNU General Public License
11 property bool updatePending: false
13 signal reloadButtonClicked
14 signal downButtonClicked
15 signal upButtonClicked
16 signal newsButtonClicked
18 BorderImage { source: "images/toolbar.sci"; width: parent.width; height: parent.height + 14; y: -7 }
24 anchors.left: parent.left
29 source: "images/reload.png"
31 anchors.centerIn: parent
33 NumberAnimation on rotation {
34 from: 0; to: 360; running: toolbar.updatePending == true; loops: Animation.Infinite; duration: 900
39 id: reloadButtonMouseArea
42 toolbar.updatePending = true;
43 toolbar.reloadButtonClicked();
48 name: "pressed"; when: reloadButtonMouseArea.pressed
49 PropertyChanges { target: reloadButtonArea; color: "#9a9a9a"}
57 anchors.right: parent.horizontalCenter; anchors.horizontalCenterOffset: -60;
62 source: "images/down.png"
64 anchors.verticalCenter: parent.verticalCenter
65 anchors.right: parent.right
66 anchors.rightMargin: 5
70 id: downButtonMouseArea
72 onClicked: toolbar.downButtonClicked()
76 name: "pressed"; when: downButtonMouseArea.pressed
77 PropertyChanges { target: downButtonArea; color: "#9a9a9a"}
86 anchors.left: parent.horizontalCenter; anchors.horizontalCenterOffset: 60;
91 source: "images/up.png"
93 anchors.verticalCenter: parent.verticalCenter
94 anchors.left: parent.left
101 onClicked: toolbar.upButtonClicked()
105 name: "pressed"; when: upButtonMouseArea.pressed
106 PropertyChanges { target: upButtonArea; color: "#9a9a9a"}
113 height: parent.height
114 anchors.right: parent.right
119 source: "images/news.png"
120 width: 32; height: 32
121 anchors.centerIn: parent
125 id: newsButtonMouseArea
127 onClicked: toolbar.newsButtonClicked()
131 name: "pressed"; when: newsButtonMouseArea.pressed
132 PropertyChanges { target: newsButtonArea; color: "#9a9a9a"}