mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Rename is_simulation_playing
CURA-6853
This commit is contained in:
parent
4148f56d2b
commit
87bbf32597
1 changed files with 6 additions and 6 deletions
|
@ -11,7 +11,7 @@ import Cura 1.0 as Cura
|
||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
property bool is_simulation_playing: false
|
property bool isSimulationPlaying: false
|
||||||
// By default, the layer slider can extend to the entire height of the parent
|
// By default, the layer slider can extend to the entire height of the parent
|
||||||
// A parent may bind this property to indicate the bottom of a safe area
|
// A parent may bind this property to indicate the bottom of a safe area
|
||||||
// for the Layer slider
|
// for the Layer slider
|
||||||
|
@ -64,7 +64,7 @@ Item
|
||||||
UM.SimpleButton
|
UM.SimpleButton
|
||||||
{
|
{
|
||||||
id: playButton
|
id: playButton
|
||||||
iconSource: !is_simulation_playing ? "./resources/simulation_resume.svg": "./resources/simulation_pause.svg"
|
iconSource: !isSimulationPlaying ? "./resources/simulation_resume.svg": "./resources/simulation_pause.svg"
|
||||||
width: UM.Theme.getSize("small_button").width
|
width: UM.Theme.getSize("small_button").width
|
||||||
height: UM.Theme.getSize("small_button").height
|
height: UM.Theme.getSize("small_button").height
|
||||||
hoverColor: UM.Theme.getColor("slider_handle_active")
|
hoverColor: UM.Theme.getColor("slider_handle_active")
|
||||||
|
@ -94,7 +94,7 @@ Item
|
||||||
|
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
if(is_simulation_playing)
|
if(isSimulationPlaying)
|
||||||
{
|
{
|
||||||
pauseSimulation()
|
pauseSimulation()
|
||||||
}
|
}
|
||||||
|
@ -108,7 +108,7 @@ Item
|
||||||
{
|
{
|
||||||
UM.SimulationView.setSimulationRunning(false)
|
UM.SimulationView.setSimulationRunning(false)
|
||||||
simulationTimer.stop()
|
simulationTimer.stop()
|
||||||
is_simulation_playing = false
|
isSimulationPlaying = false
|
||||||
layerSlider.manuallyChanged = true
|
layerSlider.manuallyChanged = true
|
||||||
pathSlider.manuallyChanged = true
|
pathSlider.manuallyChanged = true
|
||||||
}
|
}
|
||||||
|
@ -137,7 +137,7 @@ Item
|
||||||
|
|
||||||
// When the user plays the simulation, if the path slider is at the end of this layer, we start
|
// When the user plays the simulation, if the path slider is at the end of this layer, we start
|
||||||
// the simulation at the beginning of the current layer.
|
// the simulation at the beginning of the current layer.
|
||||||
if (!is_simulation_playing)
|
if (!isSimulationPlaying)
|
||||||
{
|
{
|
||||||
if (currentPath >= numPaths)
|
if (currentPath >= numPaths)
|
||||||
{
|
{
|
||||||
|
@ -172,7 +172,7 @@ Item
|
||||||
}
|
}
|
||||||
// The status must be set here instead of in the resumeSimulation function otherwise it won't work
|
// The status must be set here instead of in the resumeSimulation function otherwise it won't work
|
||||||
// correctly, because part of the logic is in this trigger function.
|
// correctly, because part of the logic is in this trigger function.
|
||||||
is_simulation_playing = true
|
isSimulationPlaying = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue