6#include "gui/backend/backend/actions/undoable_action.h"
7#include "utils/icloneable.h"
9namespace zrythm::gui::actions
12class PortAction :
public QObject,
public UndoableAction
16 DEFINE_UNDOABLE_ACTION_QML_PROPERTIES (PortAction)
34 dsp::ProcessorParameter::Uuid port_id,
35 float normalized_val);
39 friend void init_from (
41 const PortAction &other,
45 void init_loaded_impl ()
override { }
46 void perform_impl ()
override;
47 void undo_impl ()
override;
48 void do_or_undo (
bool do_it);
53 std::optional<dsp::ProcessorParameter::Uuid> port_id_;
66class PortActionResetControl :
public PortAction
73 port.range ().convertTo0To1 (port.range ().
deff_))
float deff_
Default value.
Processor parameter that accepts automation and modulation sources and integrates with QML and the DS...
PortAction(Type type, dsp::ProcessorParameter::Uuid port_id, float normalized_val)
Construct a new action for setting a control.
@ SetControlValue
Set control port value.
float normalized_val_
Normalized value before/after the change.
QString to_string() const override
Stringizes the action to be used in Undo/Redo buttons.