Ardour
9.0-pre0-582-g084a23a80d
|
Lists of selected things. More...
#include <selection.h>
Public Types | |
enum | SelectionType { Object = 0x1 , Range = 0x2 } |
Public Member Functions | |
MidiRegionSelection | midi_regions () |
Selection (EditingContext const *e, bool manage_libardour_selection) | |
void | clear () |
bool | empty (bool internal_selection=false) |
void | dump_region_layers () |
bool | selected (TimeAxisView *) const |
bool | selected (RegionView *) const |
bool | selected (ArdourMarker *) const |
bool | selected (ControlPoint *) const |
bool | selected (TriggerEntry *) const |
RegionSelection | trigger_regionview_proxy () const |
void | set (std::list< Selectable * > const &) |
void | add (std::list< Selectable * > const &) |
void | toggle (std::list< Selectable * > const &) |
void | set (TimeAxisView *) |
void | set (const TrackViewList &) |
void | set (const MidiNoteSelection &) |
void | set (RegionView *, bool also_clear_tracks=true) |
void | set (std::vector< RegionView * > &) |
long | set (Temporal::timepos_t const &, Temporal::timepos_t const &) |
void | set_preserving_all_ranges (Temporal::timepos_t const &, Temporal::timepos_t const &) |
void | set (std::shared_ptr< Evoral::ControlList >) |
void | set (std::shared_ptr< ARDOUR::Playlist >) |
void | set (const std::list< std::shared_ptr< ARDOUR::Playlist > > &) |
void | set (ControlPoint *) |
void | set (ArdourMarker *) |
void | set (const RegionSelection &) |
void | set (TriggerEntry *) |
void | toggle (TimeAxisView *) |
void | toggle (const TrackViewList &) |
void | toggle (const MidiNoteSelection &) |
void | toggle (RegionView *) |
void | toggle (MidiCutBuffer *) |
void | toggle (std::vector< RegionView * > &) |
long | toggle (Temporal::timepos_t const &, Temporal::timepos_t const &) |
void | toggle (ARDOUR::AutomationList *) |
void | toggle (std::shared_ptr< ARDOUR::Playlist >) |
void | toggle (const std::list< std::shared_ptr< ARDOUR::Playlist > > &) |
void | toggle (ControlPoint *) |
void | toggle (std::vector< ControlPoint * > const &) |
void | toggle (ArdourMarker *) |
void | toggle (TriggerEntry *) |
void | add (TimeAxisView *) |
void | add (const TrackViewList &) |
void | add (const MidiNoteSelection &) |
void | add (RegionView *) |
void | add (MidiCutBuffer *) |
void | add (std::vector< RegionView * > &) |
long | add (Temporal::timepos_t const &, Temporal::timepos_t const &) |
void | add (std::shared_ptr< Evoral::ControlList >) |
void | add (std::shared_ptr< ARDOUR::Playlist >) |
void | add (const std::list< std::shared_ptr< ARDOUR::Playlist > > &) |
void | add (ControlPoint *) |
void | add (std::vector< ControlPoint * > const &) |
void | add (ArdourMarker *) |
void | add (const std::list< ArdourMarker * > &) |
void | add (const RegionSelection &) |
void | add (const PointSelection &) |
void | add (TriggerEntry *) |
void | remove (TimeAxisView *) |
void | remove (const TrackViewList &) |
void | remove (const MidiNoteSelection &) |
void | remove (RegionView *) |
void | remove (std::vector< RegionView * >) |
void | remove (MidiCutBuffer *) |
void | remove (uint32_t selection_id) |
void | remove (samplepos_t, samplepos_t) |
void | remove (std::shared_ptr< ARDOUR::AutomationList >) |
void | remove (std::shared_ptr< ARDOUR::Playlist >) |
void | remove (const std::list< std::shared_ptr< ARDOUR::Playlist > > &) |
void | remove (const std::list< Selectable * > &) |
void | remove (ArdourMarker *) |
void | remove (ControlPoint *) |
void | remove (TriggerEntry *) |
void | remove_regions (TimeAxisView *) |
void | move_time (Temporal::timecnt_t const &) |
void | replace (uint32_t time_index, Temporal::timepos_t const &start, Temporal::timepos_t const &end) |
void | clear_all () |
void | clear_time (bool with_signal=true) |
void | clear_tracks (bool with_signal=true) |
void | clear_objects (bool with_signal=true) |
void | clear_regions (bool with_signal=true) |
void | clear_lines (bool with_signal=true) |
void | clear_playlists (bool with_signal=true) |
void | clear_points (bool with_signal=true) |
void | clear_markers (bool with_signal=true) |
void | clear_midi_notes (bool with_signal=true) |
void | clear_triggers (bool with_signal=true) |
void | foreach_region (void(ARDOUR::Region::*method)(void)) |
void | foreach_regionview (void(RegionView::*method)(void)) |
void | foreach_midi_regionview (void(MidiRegionView::*method)(void)) |
template<class A > | |
void | foreach_region (void(ARDOUR::Region::*method)(A), A arg) |
XMLNode & | get_state () const |
int | set_state (XMLNode const &, int) |
void | core_selection_changed (PBD::PropertyChange const &pc) |
Public Member Functions inherited from PBD::ScopedConnectionList | |
ScopedConnectionList () | |
ScopedConnectionList (const ScopedConnectionList &)=delete | |
ScopedConnectionList & | operator= (const ScopedConnectionList &)=delete |
virtual | ~ScopedConnectionList () |
void | add_connection (const UnscopedConnection &c) |
void | drop_connections () |
Public Attributes | |
TrackSelection | tracks |
RegionSelection | regions |
TimeSelection | time |
AutomationSelection | lines |
PlaylistSelection | playlists |
PointSelection | points |
MarkerSelection | markers |
TriggerSelection | triggers |
MidiNoteSelection | midi_notes |
sigc::signal< void > | TracksChanged |
sigc::signal< void > | RegionsChanged |
sigc::signal< void > | TimeChanged |
sigc::signal< void > | LinesChanged |
sigc::signal< void > | PlaylistsChanged |
sigc::signal< void > | PointsChanged |
sigc::signal< void > | MarkersChanged |
sigc::signal< void > | MidiNotesChanged |
sigc::signal< void > | TriggersChanged |
std::list< std::pair< PBD::ID const, std::list< Evoral::event_id_t > > > | pending_midi_note_selection |
Private Attributes | |
EditingContext const * | editor |
uint32_t | next_time_id |
bool | manage_libardour_selection |
Lists of selected things.
The Selection class holds lists of selected items (tracks, regions, etc. etc.).
Definition at line 72 of file gtk2_ardour/selection.h.
Enumerator | |
---|---|
Object | |
Range |
Definition at line 75 of file gtk2_ardour/selection.h.
Selection::Selection | ( | EditingContext const * | e, |
bool | manage_libardour_selection | ||
) |
void Selection::add | ( | ArdourMarker * | ) |
void Selection::add | ( | const MidiNoteSelection & | ) |
void Selection::add | ( | const PointSelection & | ) |
void Selection::add | ( | const RegionSelection & | ) |
void Selection::add | ( | const std::list< ArdourMarker * > & | ) |
void Selection::add | ( | const std::list< std::shared_ptr< ARDOUR::Playlist > > & | ) |
void Selection::add | ( | const TrackViewList & | ) |
void Selection::add | ( | ControlPoint * | ) |
void Selection::add | ( | MidiCutBuffer * | ) |
void Selection::add | ( | RegionView * | ) |
void Selection::add | ( | std::list< Selectable * > const & | ) |
void Selection::add | ( | std::shared_ptr< ARDOUR::Playlist > | ) |
void Selection::add | ( | std::shared_ptr< Evoral::ControlList > | ) |
void Selection::add | ( | std::vector< ControlPoint * > const & | ) |
void Selection::add | ( | std::vector< RegionView * > & | ) |
long Selection::add | ( | Temporal::timepos_t const & | , |
Temporal::timepos_t const & | |||
) |
void Selection::add | ( | TimeAxisView * | ) |
void Selection::add | ( | TriggerEntry * | ) |
void Selection::clear | ( | ) |
|
inline |
Definition at line 217 of file gtk2_ardour/selection.h.
void Selection::clear_lines | ( | bool | with_signal = true | ) |
void Selection::clear_markers | ( | bool | with_signal = true | ) |
void Selection::clear_midi_notes | ( | bool | with_signal = true | ) |
void Selection::clear_objects | ( | bool | with_signal = true | ) |
void Selection::clear_playlists | ( | bool | with_signal = true | ) |
void Selection::clear_points | ( | bool | with_signal = true | ) |
void Selection::clear_regions | ( | bool | with_signal = true | ) |
void Selection::clear_time | ( | bool | with_signal = true | ) |
void Selection::clear_tracks | ( | bool | with_signal = true | ) |
void Selection::clear_triggers | ( | bool | with_signal = true | ) |
void Selection::core_selection_changed | ( | PBD::PropertyChange const & | pc | ) |
void Selection::dump_region_layers | ( | ) |
bool Selection::empty | ( | bool | internal_selection = false | ) |
check if all selections are empty
internal_selection | also check object internals (e.g midi notes, automation points), when false only check objects. |
|
inline |
Definition at line 49 of file selection_templates.h.
|
inline |
Definition at line 59 of file selection_templates.h.
|
inline |
Definition at line 34 of file selection_templates.h.
|
inline |
Definition at line 42 of file selection_templates.h.
XMLNode& Selection::get_state | ( | ) | const |
MidiRegionSelection Selection::midi_regions | ( | ) |
we don't store MidiRegionViews in their own selection, we just pull them from "regions" as a convenience for various operations.
void Selection::move_time | ( | Temporal::timecnt_t const & | ) |
void Selection::remove | ( | ArdourMarker * | ) |
void Selection::remove | ( | const MidiNoteSelection & | ) |
void Selection::remove | ( | const std::list< Selectable * > & | ) |
void Selection::remove | ( | const std::list< std::shared_ptr< ARDOUR::Playlist > > & | ) |
void Selection::remove | ( | const TrackViewList & | ) |
void Selection::remove | ( | ControlPoint * | ) |
void Selection::remove | ( | MidiCutBuffer * | ) |
void Selection::remove | ( | RegionView * | ) |
void Selection::remove | ( | samplepos_t | , |
samplepos_t | |||
) |
void Selection::remove | ( | std::shared_ptr< ARDOUR::AutomationList > | ) |
void Selection::remove | ( | std::shared_ptr< ARDOUR::Playlist > | ) |
void Selection::remove | ( | std::vector< RegionView * > | ) |
void Selection::remove | ( | TimeAxisView * | ) |
void Selection::remove | ( | TriggerEntry * | ) |
void Selection::remove | ( | uint32_t | selection_id | ) |
void Selection::remove_regions | ( | TimeAxisView * | ) |
void Selection::replace | ( | uint32_t | time_index, |
Temporal::timepos_t const & | start, | ||
Temporal::timepos_t const & | end | ||
) |
bool Selection::selected | ( | ArdourMarker * | ) | const |
bool Selection::selected | ( | ControlPoint * | ) | const |
bool Selection::selected | ( | RegionView * | ) | const |
bool Selection::selected | ( | TimeAxisView * | ) | const |
bool Selection::selected | ( | TriggerEntry * | ) | const |
void Selection::set | ( | ArdourMarker * | ) |
void Selection::set | ( | const MidiNoteSelection & | ) |
void Selection::set | ( | const RegionSelection & | ) |
void Selection::set | ( | const std::list< std::shared_ptr< ARDOUR::Playlist > > & | ) |
void Selection::set | ( | const TrackViewList & | ) |
void Selection::set | ( | ControlPoint * | ) |
void Selection::set | ( | RegionView * | , |
bool | also_clear_tracks = true |
||
) |
void Selection::set | ( | std::list< Selectable * > const & | ) |
void Selection::set | ( | std::shared_ptr< ARDOUR::Playlist > | ) |
void Selection::set | ( | std::shared_ptr< Evoral::ControlList > | ) |
void Selection::set | ( | std::vector< RegionView * > & | ) |
long Selection::set | ( | Temporal::timepos_t const & | , |
Temporal::timepos_t const & | |||
) |
void Selection::set | ( | TimeAxisView * | ) |
void Selection::set | ( | TriggerEntry * | ) |
void Selection::set_preserving_all_ranges | ( | Temporal::timepos_t const & | , |
Temporal::timepos_t const & | |||
) |
int Selection::set_state | ( | XMLNode const & | , |
int | |||
) |
void Selection::toggle | ( | ARDOUR::AutomationList * | ) |
void Selection::toggle | ( | ArdourMarker * | ) |
void Selection::toggle | ( | const MidiNoteSelection & | ) |
void Selection::toggle | ( | const std::list< std::shared_ptr< ARDOUR::Playlist > > & | ) |
void Selection::toggle | ( | const TrackViewList & | ) |
void Selection::toggle | ( | ControlPoint * | ) |
void Selection::toggle | ( | MidiCutBuffer * | ) |
void Selection::toggle | ( | RegionView * | ) |
void Selection::toggle | ( | std::list< Selectable * > const & | ) |
void Selection::toggle | ( | std::shared_ptr< ARDOUR::Playlist > | ) |
void Selection::toggle | ( | std::vector< ControlPoint * > const & | ) |
void Selection::toggle | ( | std::vector< RegionView * > & | ) |
long Selection::toggle | ( | Temporal::timepos_t const & | , |
Temporal::timepos_t const & | |||
) |
void Selection::toggle | ( | TimeAxisView * | ) |
void Selection::toggle | ( | TriggerEntry * | ) |
RegionSelection Selection::trigger_regionview_proxy | ( | ) | const |
|
private |
Definition at line 245 of file gtk2_ardour/selection.h.
AutomationSelection Selection::lines |
Definition at line 83 of file gtk2_ardour/selection.h.
sigc::signal<void> Selection::LinesChanged |
Definition at line 104 of file gtk2_ardour/selection.h.
|
private |
Definition at line 247 of file gtk2_ardour/selection.h.
MarkerSelection Selection::markers |
Definition at line 86 of file gtk2_ardour/selection.h.
sigc::signal<void> Selection::MarkersChanged |
Definition at line 107 of file gtk2_ardour/selection.h.
MidiNoteSelection Selection::midi_notes |
only used when this class is used as a cut buffer
Definition at line 90 of file gtk2_ardour/selection.h.
sigc::signal<void> Selection::MidiNotesChanged |
Definition at line 108 of file gtk2_ardour/selection.h.
|
private |
Definition at line 246 of file gtk2_ardour/selection.h.
std::list<std::pair<PBD::ID const, std::list<Evoral::event_id_t> > > Selection::pending_midi_note_selection |
Definition at line 240 of file gtk2_ardour/selection.h.
PlaylistSelection Selection::playlists |
Definition at line 84 of file gtk2_ardour/selection.h.
sigc::signal<void> Selection::PlaylistsChanged |
Definition at line 105 of file gtk2_ardour/selection.h.
PointSelection Selection::points |
Definition at line 85 of file gtk2_ardour/selection.h.
sigc::signal<void> Selection::PointsChanged |
Definition at line 106 of file gtk2_ardour/selection.h.
RegionSelection Selection::regions |
Definition at line 81 of file gtk2_ardour/selection.h.
sigc::signal<void> Selection::RegionsChanged |
Definition at line 102 of file gtk2_ardour/selection.h.
TimeSelection Selection::time |
Definition at line 82 of file gtk2_ardour/selection.h.
sigc::signal<void> Selection::TimeChanged |
Definition at line 103 of file gtk2_ardour/selection.h.
TrackSelection Selection::tracks |
Definition at line 80 of file gtk2_ardour/selection.h.
sigc::signal<void> Selection::TracksChanged |
Definition at line 101 of file gtk2_ardour/selection.h.
TriggerSelection Selection::triggers |
Definition at line 87 of file gtk2_ardour/selection.h.
sigc::signal<void> Selection::TriggersChanged |
Definition at line 109 of file gtk2_ardour/selection.h.