summaryrefslogtreecommitdiff
path: root/navit/gui/qml/skins/navit/Cellar.qml
blob: de4d3c146c981c70f2c7a76b7bb71790a18e96c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import Qt 4.7
import "pagenavigation.js" as Navit

Rectangle {

    function onStartup(currentPage) {    
	btnBack.opacity=0;
	btnQuit.opacity=0;
       	if ( gui.lengthPage() > 1  ) {
		btnBack.opacity=1;
	}
	if ( gui.lengthPage() == 1 && currentPage == "PageMain.qml" ) {
		btnQuit.opacity=1;		
	}
    }


    ButtonIcon {
        id: btnMap; icon: "gui_map.svg"; text:"Map"; onClicked: gui.backToMap();
        anchors.left: parent.left; anchors.leftMargin: 3
        anchors.bottom: parent.bottom; anchors.bottomMargin: 3
    }

    ButtonIcon {
        id: btnBack; icon: "gui_arrow_left.svg"; text: "Back"; onClicked: Navit.back();
        anchors.right: parent.right; anchors.leftMargin: 3
        anchors.bottom: parent.bottom; anchors.bottomMargin: 3
	opacity: 0;
    }

    ButtonIcon {
        id: btnQuit; icon: "gui_quit.svg"; text: "Quit"; onClicked: navit.quit()
        anchors.right: parent.right; anchors.leftMargin: 3
        anchors.bottom: parent.bottom; anchors.bottomMargin: 3
	opacity: 0;
    }

}