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

61 lines
1.3 KiB
QML
Raw Normal View History

2015-08-23 22:39:31 +00:00
import QtQuick 2.0
// Water control
BaseSection {
id: section
BaseToolbar {
id: toolbar
ToolbarButton {
id: tool_water_level
2015-08-28 09:40:35 +00:00
checked: true
2015-08-23 22:39:31 +00:00
picture: "images/icon_water_level.png"
hovertext: qsTr("Change the water altitude")
}
2015-09-07 23:00:34 +00:00
ToolbarButton {
id: tool_water_reflection
checked: false
picture: "images/icon_water_reflection.png"
hovertext: qsTr("Reflection of the water surface")
}
2015-08-23 22:39:31 +00:00
}
2015-08-23 23:19:19 +00:00
PanelSimpleFloat {
2015-08-23 22:39:31 +00:00
id: panel_water_level
enabled: false
2015-08-23 23:19:19 +00:00
anchors.left: toolbar.right
minimumValue: -1
maximumValue: 1
objectName: "water_height"
2015-08-23 22:39:31 +00:00
}
2015-09-07 23:00:34 +00:00
PanelSimpleFloat {
id: panel_water_reflection
enabled: false
anchors.left: toolbar.right
objectName: "water_reflection"
}
2015-08-23 22:39:31 +00:00
states: [
State {
name: "WaterHeight"
2015-08-28 09:40:35 +00:00
when: tool_water_level.checked
2015-08-23 22:39:31 +00:00
PropertyChanges {
target: panel_water_level
enabled: true
}
2015-09-07 23:00:34 +00:00
},
State {
name: "WaterReflection"
when: tool_water_reflection.checked
PropertyChanges {
target: panel_water_reflection
enabled: true
}
2015-08-23 22:39:31 +00:00
}
]
}