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

84 lines
1.9 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
2015-08-28 09:40:35 +00:00
checked: true
2015-08-23 22:39:31 +00:00
picture: "images/icon_atmosphere_daytime.png"
hovertext: qsTr("Control the sun and moon")
2015-08-23 22:39:31 +00:00
}
2015-08-23 23:19:19 +00:00
ToolbarButton {
id: tool_sun_radius
picture: "images/icon_sun_radius.png"
hovertext: qsTr("Radius of the sun")
}
2015-08-23 23:19:19 +00:00
ToolbarButton {
id: tool_humidity
picture: "images/icon_atmosphere.png"
2015-08-23 23:19:19 +00:00
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"
}
PanelSimpleFloat {
id: panel_sun_radius
anchors.left: toolbar.right
minimumValue: 0
maximumValue: 30000000
enabled: false
objectName: "atmosphere_sun_radius"
}
2015-08-23 22:39:31 +00:00
states: [
State {
name: "DayTime"
2015-08-28 09:40:35 +00:00
when: tool_daytime.checked
2015-08-23 22:39:31 +00:00
PropertyChanges {
target: panel_daytime
enabled: true
}
2015-08-23 23:19:19 +00:00
},
State {
name: "Sun radius"
when: tool_sun_radius.checked
PropertyChanges {
target: panel_sun_radius
enabled: true
}
PropertyChanges {
target: section
tool: "sun"
}
},
2015-08-23 23:19:19 +00:00
State {
name: "Humidity"
2015-08-28 09:40:35 +00:00
when: tool_humidity.checked
2015-08-23 23:19:19 +00:00
PropertyChanges {
target: panel_humidity
enabled: true
}
2015-08-23 22:39:31 +00:00
}
]
}