Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::gui::actions::PortConnectionDisableAction Class Referencefinal
Inheritance diagram for zrythm::gui::actions::PortConnectionDisableAction:
Collaboration diagram for zrythm::gui::actions::PortConnectionDisableAction:

Public Member Functions

 PortConnectionDisableAction (PortUuid src_id, const PortUuid &dest_id)
Public Member Functions inherited from zrythm::gui::actions::PortConnectionAction
 PortConnectionAction (QObject *parent=nullptr)
 PortConnectionAction (Type type, PortUuid src_id, PortUuid dest_id, float new_val)
QString to_string () const override
 Stringizes the action to be used in Undo/Redo buttons.
Public Member Functions inherited from zrythm::gui::actions::UndoableAction
 UndoableAction (Type type)
 UndoableAction (Type type, dsp::FramesPerTick frames_per_tick, units::sample_rate_t sample_rate)
void init_loaded (sample_rate_t engine_sample_rate)
 Non virtual function following the NVI pattern.
virtual bool needs_pause () const
 Returns whether the action requires pausing the engine.
virtual bool needs_transport_total_bar_update (bool perform) const
 Returns whether the total transport bars need to be recalculated.
virtual bool affects_audio_region_internal_positions () const
 Whether audio region loop/fade/etc.
virtual void get_plugins (std::vector< plugins::Plugin * > &plugins)
 Get the plugins referenced in this action.
auto get_frames_per_tick () const
auto get_ticks_per_frame () const
void set_num_actions (int num_actions)
 Sets the number of actions for this action.
void save_or_load_port_connections (bool performing)
 To be used by actions that save/load port connections.
void perform ()
 Performs the action.
void undo ()
 Undoes the action.

Additional Inherited Members

Public Types inherited from zrythm::gui::actions::PortConnectionAction
enum class  Type {
  Connect , Disconnect , Enable , Disable ,
  ChangeMultiplier
}
using PortType = dsp::PortType
using PortUuid = dsp::PortUuid
Public Types inherited from zrythm::gui::actions::UndoableAction
enum class  Type {
  TracklistSelections , ChannelSend , MixerSelections , ArrangerSelections ,
  MidiMapping , PortConnection , Port , Range ,
  Transport , Chord
}
 Type of UndoableAction. More...
using PortConnectionsManager = dsp::PortConnectionsManager
Data Fields inherited from zrythm::gui::actions::PortConnectionAction
Type type_ = Type ()
utils::QObjectUniquePtr< dsp::PortConnectionconnection_
float val_ = 0.f
 Value before/after the change.
Data Fields inherited from zrythm::gui::actions::UndoableAction
Type undoable_action_type_ {}
 Undoable action type.
dsp::FramesPerTick frames_per_tick_
 A snapshot of AudioEngine.frames_per_tick when the action is executed.
units::sample_rate_t sample_rate_ = 0
 Sample rate of this action.
int num_actions_ = 1
 Number of actions to perform.
std::unique_ptr< dsp::PortConnectionsManagerport_connections_before_
 An (optional) clone of the port connections at the start of the action, used for reverting port connections when undoing.
std::unique_ptr< dsp::PortConnectionsManagerport_connections_after_

Detailed Description

Definition at line 97 of file port_connection_action.h.

Constructor & Destructor Documentation

◆ PortConnectionDisableAction()

zrythm::gui::actions::PortConnectionDisableAction::PortConnectionDisableAction ( PortUuid src_id,
const PortUuid & dest_id )
inline

Definition at line 100 of file port_connection_action.h.


The documentation for this class was generated from the following file: