paysages3d/src/interface/modeler/quickapp/qml/main.qml

78 lines
2 KiB
QML
Raw Normal View History

import QtQuick 2.2
import Paysages 1.0
OpenGLView {
width: 640
height: 480
Item {
id: primary_toolbar
x: 0
y: 0
width: 70
height: parent.height
Rectangle {
width: parent.height
height: parent.width
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
transformOrigin: Item.Center
rotation: -90
gradient: Gradient {
GradientStop { position: 0.0; color: "#605055FF" }
GradientStop { position: 1.0; color: "#005055FF" }
}
}
Column {
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
spacing: (parent.height - 6 * tool_terrain.height) / 7
2014-08-19 15:37:24 +00:00
ToolbarButton {
id: tool_terrain
picture: "images/tab_terrain.png"
}
2014-08-19 15:37:24 +00:00
ToolbarButton {
id: tool_textures
picture: "images/tab_textures.png"
}
2014-08-19 15:37:24 +00:00
ToolbarButton {
id: tool_water
picture: "images/tab_water.png"
}
2014-08-19 15:37:24 +00:00
ToolbarButton {
id: tool_atmosphere
picture: "images/tab_atmosphere.png"
}
2014-08-19 15:37:24 +00:00
ToolbarButton {
id: tool_clouds
picture: "images/tab_clouds.png"
}
2014-08-19 15:37:24 +00:00
ToolbarButton {
id: tool_render
picture: "images/tab_render.png"
}
}
}
Rectangle {
id: toolbar_render
anchors.top: primary_toolbar.top
anchors.left: primary_toolbar.right
width: primary_toolbar.width
height: primary_toolbar.height
2014-08-19 15:37:24 +00:00
color: "#8800FF00"
SequentialAnimation on width {
loops: Animation.Infinite
PropertyAnimation { to: 0; duration: 1000 }
PropertyAnimation { to: primary_toolbar.width; duration: 1000 }
}
}
}