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

Public Member Functions

 MoveTracksInsideFoldableTrackAction (TrackSpan tls, int track_pos)
 Move inside a foldable track.
Public Member Functions inherited from zrythm::gui::actions::TracklistSelectionsAction
 TracklistSelectionsAction (Type type, std::optional< TrackSpan > tls_before_var, std::optional< TrackSpan > tls_after_var, const PortConnectionsManager *port_connections_mgr, std::optional< TrackPtrVariant > track_var, Track::Type track_type, const PluginConfiguration *pl_setting, const FileDescriptor *file_descr, int track_pos, int lane_pos, const Position *pos, int num_tracks, EditType edit_type, int ival_after, const Color *color_new, float val_before, float val_after, const utils::Utf8String *new_txt, bool already_edited)
 Creates a new TracklistSelectionsAction.
 TracklistSelectionsAction (Track::Type track_type, const PluginConfiguration *pl_setting, const FileDescriptor *file_descr, int track_pos, const Position *pos, int num_tracks, int disable_track_pos)
 Constructor for a Create action.
QString to_string () const final
 Stringizes the action to be used in Undo/Redo buttons.
bool needs_transport_total_bar_update (bool perform) const override
 Returns whether the total transport bars need to be recalculated.
bool needs_pause () const override
 Returns whether the action requires pausing the engine.
void get_plugins (std::vector< zrythm::plugins::Plugin * > &plugins) override
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 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::TracklistSelectionsAction
enum class  Type {
  Copy , CopyInside , Create , Delete ,
  Edit , Move , MoveInside , Pin ,
  Unpin
}
enum class  EditType {
  Solo , SoloLane , Mute , MuteLane ,
  Listen , Enable , Fold , Volume ,
  Pan , DirectOut , Rename , RenameLane ,
  Color , Comment , Icon , MidiFaderMode
}
using Position = zrythm::dsp::Position
using Color = zrythm::utils::Color
using PortType = zrythm::dsp::PortType
using PluginConfiguration = zrythm::plugins::PluginConfiguration
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::TracklistSelectionsAction
Type tracklist_selections_action_type_ {}
 Type of action.
int track_pos_ = 0
 Position to make the tracks at.
int lane_pos_ = 0
 Lane position, if editing lane.
Position pos_
 Position to add the audio region to, if applicable.
bool have_pos_ = false
Track::Type track_type_ {}
 Track type.
bool is_empty_ = false
 Flag to know if we are making an empty track.
std::unique_ptr< PluginConfiguration > pl_setting_
 PluginConfiguration, if making an instrument or bus track from a plugin.
fs::path file_basename_
 The basename of the file, if any.
utils::Utf8String base64_midi_
 If this is an action to create a MIDI track from a MIDI file, this is the base64 representation so that the file does not need to be stored in the project.
std::optional< dsp::FileAudioSourceUuidReference > pool_id_
 If this is an action to create an Audio track from an audio file, this is the pool ID of the audio file.
std::vector< std::optional< Track::Uuid > > out_track_uuids_
 Direct out tracks of the original tracks.
int num_fold_change_tracks_ {}
 Number of tracks under folder affected.
EditType edit_type_ {}
std::vector< int > track_positions_before_
 Track positions.
std::vector< int > track_positions_after_
int num_tracks_ = 0
 Number of tracks.
std::optional< std::vector< TrackPtrVariant > > tls_before_
 Clone of the TracklistSelections, if applicable.
std::optional< std::vector< TrackPtrVariant > > tls_after_
 Clone of the TracklistSelections, if applicable.
std::optional< std::vector< TrackPtrVariant > > foldable_tls_before_
 Foldable tracks before the change, used when undoing to set the correct sizes.
std::vector< int > ival_before_
 Int value.
int ival_after_ = 0
std::vector< Color > colors_before_
Color new_color_
utils::Utf8String new_txt_
bool already_edited_ = false
 Skip do if true.
float val_before_ = 0.f
 Float values.
float val_after_ = 0.f
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 1024 of file tracklist_selections_action.h.

Constructor & Destructor Documentation

◆ MoveTracksInsideFoldableTrackAction()

zrythm::gui::actions::MoveTracksInsideFoldableTrackAction::MoveTracksInsideFoldableTrackAction ( TrackSpan tls,
int track_pos )
inline

Move inside a foldable track.

Parameters
track_posFoldable track index.

When foldable tracks are included in tls, all their children must be marked as selected as well before calling this.

Note
This should be called in combination with a move action to move the tracks to the required index after putting them inside a group.

Definition at line 1038 of file tracklist_selections_action.h.


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