2 #include <Device/Address/AddressSettings.hpp>
4 #include <Process/LayerPresenter.hpp>
6 #include <Automation/Commands/AutomationCommandFactory.hpp>
8 #include <score/model/path/PathSerialization.hpp>
9 #include <score/serialization/MapSerialization.hpp>
11 #include <Color/GradientModel.hpp>
18 SCORE_COMMAND_DECL(Automation::CommandFactoryName(),
ChangeGradient,
"ChangeGradient")
22 , m_old{autom.gradient()}
30 m_path.find(ctx).setGradient(m_old);
34 m_path.find(ctx).setGradient(m_new);
40 s << m_path << m_old << m_new;
42 void deserializeImpl(
DataStreamOutput& s)
override { s >> m_path >> m_old >> m_new; }
46 ProcessModel::gradient_colors m_old, m_new;
57 void setWidth(qreal width, qreal defaultWidth)
override;
58 void setHeight(qreal height)
override;
60 void putToFront()
override;
61 void putBehind()
override;
63 void on_zoomRatioChanged(ZoomRatio)
override;
65 void parentGeometryChanged()
override;
69 ZoomRatio m_zoomRatio{};
Definition: AutomationModel.hpp:36
Definition: GradientPresenter.hpp:17
Definition: GradientPresenter.hpp:51
Definition: GradientView.hpp:10
Definition: LayerPresenter.hpp:34
The Command class.
Definition: Command.hpp:34
Definition: DataStreamHelpers.hpp:103
Definition: ProcessContext.hpp:12
Definition: DocumentContext.hpp:18