800e5c921876a43a86a43905a4ee90cd2f4c58a2
[situare] / src / qmlui / Main.qml
1 import Qt 4.7
2
3 Rectangle {
4     SystemPalette { id: palette }
5
6     width: 800
7     height: 480 - 56
8     color: "black"
9     id: root
10
11     Map { id: map; x: 0; y: 0; width: panel.x + 1; height: parent.height }
12
13     Panel {
14         id: panel
15         x: panelSelectorButtonsBar.x
16         y: parent.y
17         width: (parent.width - profile.width ) / 2
18     }
19
20     Rectangle {
21         id: panelSelectorButtonsBar
22         color: "gray"
23         anchors { top: parent.top; bottom: parent.bottom; right: parent.right }
24         width: parent.height / 4 + panelSelectorButtons.anchors.leftMargin
25
26         Column {
27             id: panelSelectorButtons
28             anchors { fill: parent; leftMargin: 1 }
29             spacing: 2
30
31             PanelSelectorButton {
32                 id: profile
33                 image: "qrc:/res/user_info.png"
34                 text: "Profile"
35                 onButtonClicked: { panel.setView("qrc:/ProfileView.qml") }
36             }
37
38             PanelSelectorButton {
39                 id: friends
40                 image: "qrc:/res/friend_list.png"
41                 text: "Friends"
42                 onButtonClicked: { panel.setView("qrc:/FriendsView.qml") }
43             }
44
45             PanelSelectorButton {
46                 id: navigate
47                 image: "qrc:/res/routing.png"
48                 text: "Routing"
49                 onButtonClicked: { panel.setView("qrc:/RoutingView.qml") }
50             }
51
52             PanelSelectorButton {
53                 id: locations
54                 image: "qrc:/res/location_search.png"
55                 text: "Locations"
56                 onButtonClicked: { panel.setView("qrc:/LocationsView.qml") }
57             }
58         }
59     }
60
61     LoginWidget {
62         id: loginDialog
63     }
64 }