1 |
import Qt 4.7
|
2 |
import "pagenavigation.js" as Navit
|
3 |
|
4 |
Rectangle {
|
5 |
id: page
|
6 |
|
7 |
width: gui.width; height: gui.height
|
8 |
border.width: 1
|
9 |
color: "Black"
|
10 |
opacity: 0
|
11 |
|
12 |
function pageOpen() {
|
13 |
page.opacity = 1;
|
14 |
}
|
15 |
|
16 |
Component.onCompleted: pageOpen();
|
17 |
|
18 |
Behavior on opacity {
|
19 |
NumberAnimation { id: opacityAnimation; duration: 300; alwaysRunToEnd: true }
|
20 |
}
|
21 |
|
22 |
Grid {
|
23 |
columns: 3;rows: 1
|
24 |
anchors.horizontalCenter: parent.horizontalCenter;
|
25 |
anchors.bottom: parent.verticalCenter; anchors.bottomMargin: gui.height/16;
|
26 |
spacing: gui.width/12
|
27 |
ButtonIcon {
|
28 |
id: btnDisplay; text: "Display"; icon: "gui_display.svg"; onClicked: Navit.load("PageSettingsDisplay.qml");
|
29 |
}
|
30 |
ButtonIcon {
|
31 |
id: btnMap; text: "Map"; icon: "gui_maps.svg"; onClicked: console.log("Implement me!");
|
32 |
}
|
33 |
ButtonIcon {
|
34 |
id: btnVehicle; text: "Vehicle"; icon: "gui_vehicle.svg"; onClicked: Navit.load("PageSettingsVehicle.qml");
|
35 |
}
|
36 |
}
|
37 |
Grid {
|
38 |
columns: 3;rows: 1
|
39 |
anchors.horizontalCenter: parent.horizontalCenter;
|
40 |
anchors.top: parent.verticalCenter; anchors.topMargin: gui.height/16;
|
41 |
spacing: gui.width/12
|
42 |
ButtonIcon {
|
43 |
id: btnRules; text: "Rules"; icon: "gui_rules.svg"; onClicked: Navit.load("PageSettingsRules.qml");
|
44 |
}
|
45 |
ButtonIcon {
|
46 |
id: btnTools; text: "Tools"; icon: "gui_tools.svg"; onClicked: Navit.load("PageSettingsTools.qml");
|
47 |
}
|
48 |
ButtonIcon {
|
49 |
id: btnAbout; text: "About"; icon: "gui_about.svg"; onClicked: Navit.load("PageAbout.qml");
|
50 |
}
|
51 |
}
|
52 |
|
53 |
Cellar {anchors.bottom: page.bottom; anchors.horizontalCenter: page.horizontalCenter; width: page.width }
|
54 |
}
|