blob: f7efcacd5ec1cb891f79da7f4f4f6c2c4e96cdc2 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
import Qt 4.7
import "pagenavigation.js" as Navit
Rectangle {
id: page
width: gui.width; height: gui.height
border.width: 1
color: "Black"
opacity: 0
function pageOpen() {
page.opacity = 1;
}
Component.onCompleted: pageOpen();
Behavior on opacity {
NumberAnimation { id: opacityAnimation; duration: 300; alwaysRunToEnd: true }
}
Grid {
columns: 3;rows: 1
anchors.horizontalCenter: parent.horizontalCenter;
anchors.bottom: parent.verticalCenter; anchors.bottomMargin: gui.height/16;
spacing: gui.width/12
ButtonIcon {
id: btnDisplay; text: "Display"; icon: "gui_display.svg"; onClicked: Navit.load("PageSettingsDisplay.qml");
}
ButtonIcon {
id: btnMap; text: "Map"; icon: "gui_maps.svg"; onClicked: console.log("Implement me!");
}
ButtonIcon {
id: btnVehicle; text: "Vehicle"; icon: "gui_vehicle.svg"; onClicked: Navit.load("PageSettingsVehicle.qml");
}
}
Grid {
columns: 3;rows: 1
anchors.horizontalCenter: parent.horizontalCenter;
anchors.top: parent.verticalCenter; anchors.topMargin: gui.height/16;
spacing: gui.width/12
ButtonIcon {
id: btnRules; text: "Rules"; icon: "gui_rules.svg"; onClicked: Navit.load("PageSettingsRules.qml");
}
ButtonIcon {
id: btnTools; text: "Tools"; icon: "gui_tools.svg"; onClicked: Navit.load("PageSettingsTools.qml");
}
ButtonIcon {
id: btnAbout; text: "About"; icon: "gui_about.svg"; onClicked: Navit.load("PageAbout.qml");
}
}
Cellar {anchors.bottom: page.bottom; anchors.horizontalCenter: page.horizontalCenter; width: page.width }
}
|