ardour
|
#include <region_selection.h>
Public Member Functions | |
RegionSelection () | |
RegionSelection (const RegionSelection &) | |
RegionSelection & | operator= (const RegionSelection &) |
bool | add (RegionView *) |
bool | remove (RegionView *) |
void | sort_by_position_and_track () |
bool | contains (RegionView *) const |
bool | involves (const TimeAxisView &) const |
void | clear_all () |
framepos_t | start () const |
framepos_t | end_frame () const |
const std::list< RegionView * > & | by_layer () const |
void | by_position (std::list< RegionView * > &) const |
void | by_track (std::list< RegionView * > &) const |
size_t | n_midi_regions () const |
std::set< boost::shared_ptr < ARDOUR::Playlist > > | playlists () const |
Public Attributes | |
std::list< PBD::ID > | pending |
Private Member Functions | |
void | remove_it (RegionView *) |
void | add_to_layer (RegionView *) |
Private Attributes | |
std::list< RegionView * > | _bylayer |
list of regions sorted by layer More... | |
PBD::ScopedConnection | death_connection |
Class to represent list of selected regions.
Definition at line 37 of file region_selection.h.
RegionSelection::RegionSelection | ( | ) |
Construct an empty RegionSelection.
Definition at line 35 of file region_selection.cc.
RegionSelection::RegionSelection | ( | const RegionSelection & | other | ) |
Copy constructor.
other | RegionSelection to copy. |
Definition at line 43 of file region_selection.cc.
bool RegionSelection::add | ( | RegionView * | rv | ) |
Add a region to the selection.
rv | Region to add. |
Definition at line 96 of file region_selection.cc.
|
private |
Add a region to the list sorted by layer.
rv | Region to add. |
Definition at line 154 of file region_selection.cc.
|
inline |
Definition at line 60 of file region_selection.h.
void RegionSelection::by_position | ( | std::list< RegionView * > & | foo | ) | const |
foo | List which will be filled with the selection's regions sorted by position. |
Definition at line 184 of file region_selection.cc.
void RegionSelection::by_track | ( | std::list< RegionView * > & | foo | ) | const |
List | which will be filled with the selection's regions sorted by track and position. |
Definition at line 216 of file region_selection.cc.
void RegionSelection::clear_all | ( | ) |
Empty this RegionSelection.
Definition at line 74 of file region_selection.cc.
bool RegionSelection::contains | ( | RegionView * | rv | ) | const |
rv | RegionView. |
Definition at line 85 of file region_selection.cc.
framepos_t RegionSelection::end_frame | ( | ) | const |
Definition at line 270 of file region_selection.cc.
bool RegionSelection::involves | ( | const TimeAxisView & | tv | ) | const |
tv | Track. |
Definition at line 244 of file region_selection.cc.
size_t RegionSelection::n_midi_regions | ( | ) | const |
Definition at line 293 of file region_selection.cc.
RegionSelection & RegionSelection::operator= | ( | const RegionSelection & | other | ) |
operator= to set a RegionSelection to be the same as another.
other | Other RegionSelection. |
Definition at line 57 of file region_selection.cc.
set< boost::shared_ptr< Playlist > > RegionSelection::playlists | ( | ) | const |
Definition at line 282 of file region_selection.cc.
bool RegionSelection::remove | ( | RegionView * | rv | ) |
Remove a region from the selection.
rv | Region to remove. |
Definition at line 134 of file region_selection.cc.
|
private |
Remove a region from the selection.
rv | Region to remove. |
Definition at line 124 of file region_selection.cc.
void RegionSelection::sort_by_position_and_track | ( | ) |
Sort | the selection by position and track. |
Definition at line 233 of file region_selection.cc.
framepos_t RegionSelection::start | ( | void | ) | const |
Definition at line 255 of file region_selection.cc.
|
private |
list of regions sorted by layer
Definition at line 74 of file region_selection.h.
|
private |
Definition at line 75 of file region_selection.h.
std::list<PBD::ID> RegionSelection::pending |
Definition at line 67 of file region_selection.h.