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

57 lines
1.2 KiB
QML
Raw Normal View History

2015-08-23 22:39:31 +00:00
import QtQuick 2.0
// Atmosphere control
BaseSection {
id: section
BaseToolbar {
id: toolbar
ToolbarButton {
id: tool_daytime
selected: true
picture: "images/icon_atmosphere_daytime.png"
hovertext: qsTr("Change the time of day")
}
2015-08-23 23:19:19 +00:00
ToolbarButton {
id: tool_humidity
picture: "images/icon_atmosphere_humidity.png"
hovertext: qsTr("Humidity factor in the air")
}
2015-08-23 22:39:31 +00:00
}
PanelAtmosphereDaytime {
id: panel_daytime
anchors.left: toolbar.right
enabled: false
}
2015-08-23 23:19:19 +00:00
PanelSimpleFloat {
id: panel_humidity
anchors.left: toolbar.right
enabled: false
objectName: "atmosphere_humidity"
}
2015-08-23 22:39:31 +00:00
states: [
State {
name: "DayTime"
when: tool_daytime.selected
PropertyChanges {
target: panel_daytime
enabled: true
}
2015-08-23 23:19:19 +00:00
},
State {
name: "Humidity"
when: tool_humidity.selected
PropertyChanges {
target: panel_humidity
enabled: true
}
2015-08-23 22:39:31 +00:00
}
]
}