2014-08-19 13:49:08 +00:00
|
|
|
import QtQuick 2.2
|
|
|
|
import Paysages 1.0
|
|
|
|
|
2014-08-19 15:01:42 +00:00
|
|
|
OpenGLView {
|
2014-08-27 15:23:59 +00:00
|
|
|
id: main_ui
|
|
|
|
state: "Init"
|
2014-08-19 13:49:08 +00:00
|
|
|
|
2014-08-27 15:23:59 +00:00
|
|
|
width: 800
|
|
|
|
height: 600
|
2014-08-19 13:49:08 +00:00
|
|
|
|
2014-08-27 15:23:59 +00:00
|
|
|
Tooltip {
|
|
|
|
id: tooltip_widget
|
2014-08-19 15:01:42 +00:00
|
|
|
|
2014-08-27 15:23:59 +00:00
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.right: parent.right
|
|
|
|
}
|
2014-08-19 15:01:42 +00:00
|
|
|
|
2014-08-27 15:23:59 +00:00
|
|
|
Toolbar {
|
|
|
|
id: primary_toolbar
|
|
|
|
color: "#90000000"
|
2014-08-19 15:01:42 +00:00
|
|
|
|
2014-08-27 15:23:59 +00:00
|
|
|
anchors.left: parent.left
|
2014-08-19 15:01:42 +00:00
|
|
|
|
2014-08-27 15:23:59 +00:00
|
|
|
ToolbarButton {
|
|
|
|
id: tool_display
|
|
|
|
picture: "images/tab_display.png"
|
|
|
|
hovertext: qsTr("Display options")
|
|
|
|
}
|
|
|
|
ToolbarButton {
|
|
|
|
id: tool_terrain
|
|
|
|
picture: "images/tab_terrain.png"
|
|
|
|
}
|
|
|
|
ToolbarButton {
|
|
|
|
id: tool_textures
|
|
|
|
picture: "images/tab_textures.png"
|
|
|
|
}
|
|
|
|
ToolbarButton {
|
|
|
|
id: tool_water
|
|
|
|
picture: "images/tab_water.png"
|
|
|
|
}
|
|
|
|
ToolbarButton {
|
|
|
|
id: tool_atmosphere
|
|
|
|
picture: "images/tab_atmosphere.png"
|
|
|
|
}
|
|
|
|
ToolbarButton {
|
|
|
|
id: tool_clouds
|
|
|
|
picture: "images/tab_clouds.png"
|
|
|
|
}
|
|
|
|
ToolbarButton {
|
|
|
|
id: tool_render
|
|
|
|
picture: "images/tab_render.png"
|
2014-08-19 15:01:42 +00:00
|
|
|
}
|
2014-08-19 13:49:08 +00:00
|
|
|
}
|
2014-08-19 15:01:42 +00:00
|
|
|
|
2014-08-27 15:23:59 +00:00
|
|
|
Toolbar {
|
|
|
|
id: display_toolbar
|
|
|
|
opacity: 0
|
2014-08-19 15:01:42 +00:00
|
|
|
anchors.left: primary_toolbar.right
|
|
|
|
|
2014-08-27 15:23:59 +00:00
|
|
|
ToolbarButton {
|
|
|
|
id: tool_display_topdown
|
|
|
|
picture: "images/display_topdown.png"
|
|
|
|
hovertext: qsTr("Top-down view")
|
|
|
|
helptext: qsTr("Drag the mouse on the map to change the viewpoint.")
|
2014-08-19 15:01:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-08-27 15:23:59 +00:00
|
|
|
states: [
|
|
|
|
State {
|
|
|
|
name: "Display Mode"
|
|
|
|
when: tool_display.selected
|
|
|
|
|
|
|
|
PropertyChanges {
|
|
|
|
target: display_toolbar
|
|
|
|
opacity: 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
2014-08-19 13:49:08 +00:00
|
|
|
}
|