ardour
|
#include <location.h>
Public Types | |
typedef std::list< Location * > | LocationList |
Public Attributes | |
PBD::Signal1< void, Location * > | current_changed |
PBD::Signal1< void, Location * > | added |
PBD::Signal1< void, Location * > | removed |
PBD::Signal0< void > | changed |
Public Attributes inherited from PBD::Stateful | |
PBD::Signal1< void, const PropertyChange & > | PropertyChanged |
Public Attributes inherited from PBD::Destructible | |
PBD::Signal0< void > | Destroyed |
PBD::Signal0< void > | DropReferences |
Private Member Functions | |
int | set_current_unlocked (Location *) |
void | location_changed (Location *) |
void | listen_to (Location *) |
Private Attributes | |
LocationList | locations |
Location * | current_location |
Glib::Threads::Mutex | lock |
Additional Inherited Members | |
Static Public Attributes inherited from PBD::Stateful | |
static int | current_state_version = 0 |
static int | loading_state_version = 0 |
Protected Member Functions inherited from ARDOUR::SessionHandleRef | |
virtual void | session_going_away () |
virtual void | insanity_check () |
Protected Member Functions inherited from PBD::Stateful | |
void | add_instant_xml (XMLNode &, const std::string &directory_path) |
XMLNode * | instant_xml (const std::string &str, const std::string &directory_path) |
void | add_properties (XMLNode &) |
PropertyChange | set_values (XMLNode const &) |
virtual void | post_set (const PropertyChange &) |
virtual void | send_change (const PropertyChange &) |
virtual void | mid_thaw (const PropertyChange &) |
Protected Attributes inherited from ARDOUR::SessionHandleRef | |
ARDOUR::Session & | _session |
Protected Attributes inherited from PBD::Stateful | |
XMLNode * | _extra_xml |
XMLNode * | _instant_xml |
PBD::PropertyChange | _pending_changed |
Glib::Threads::Mutex | _lock |
std::string | _xml_node_name |
name of node to use for this object in XML More... | |
OwnedPropertyList * | _properties |
Definition at line 164 of file location.h.
typedef std::list<Location *> ARDOUR::Locations::LocationList |
Definition at line 167 of file location.h.
Locations::Locations | ( | Session & | s | ) |
Definition at line 762 of file location.cc.
Locations::~Locations | ( | ) |
Definition at line 768 of file location.cc.
void Locations::add | ( | Location * | loc, |
bool | make_current = false |
||
) |
Definition at line 953 of file location.cc.
|
inline |
Definition at line 213 of file location.h.
Location * Locations::auto_loop_location | ( | ) | const |
Definition at line 1359 of file location.cc.
Location * Locations::auto_punch_location | ( | ) | const |
Definition at line 1370 of file location.cc.
void Locations::clear | ( | ) |
Definition at line 865 of file location.cc.
void Locations::clear_markers | ( | ) |
Definition at line 891 of file location.cc.
void Locations::clear_ranges | ( | ) |
Definition at line 914 of file location.cc.
|
inline |
Definition at line 192 of file location.h.
void Locations::find_all_between | ( | framepos_t | start, |
framepos_t | end, | ||
LocationList & | ll, | ||
Location::Flags | flags | ||
) |
Definition at line 1405 of file location.cc.
framepos_t Locations::first_mark_after | ( | framepos_t | frame, |
bool | include_special_ranges = false |
||
) |
Definition at line 1243 of file location.cc.
framepos_t Locations::first_mark_before | ( | framepos_t | frame, |
bool | include_special_ranges = false |
||
) |
Definition at line 1172 of file location.cc.
Definition at line 1394 of file location.cc.
|
virtual |
Implements PBD::Stateful.
Definition at line 1017 of file location.cc.
|
inline |
Definition at line 172 of file location.h.
|
private |
|
private |
Location * Locations::mark_at | ( | framepos_t | pos, |
framecnt_t | slop = 0 |
||
) | const |
Definition at line 1205 of file location.cc.
void Locations::marks_either_side | ( | framepos_t const | frame, |
framepos_t & | before, | ||
framepos_t & | after | ||
) | const |
Look for the `marks' (either locations which are marks, or start/end points of range markers) either side of a frame. Note that if frame is exactly on a `mark', that mark will not be considered for returning as before/after.
frame | Frame to look for. |
before | Filled in with the position of the last `mark' before `frame' (or max_framepos if none exists) |
after | Filled in with the position of the next `mark' after `frame' (or max_framepos if none exists) |
Definition at line 1283 of file location.cc.
int Locations::next_available_name | ( | std::string & | result, |
std::string | base | ||
) |
Definition at line 797 of file location.cc.
uint32_t Locations::num_range_markers | ( | ) | const |
Definition at line 1381 of file location.cc.
void Locations::remove | ( | Location * | loc | ) |
Definition at line 979 of file location.cc.
Location * Locations::session_range_location | ( | ) | const |
Definition at line 1348 of file location.cc.
int Locations::set_current | ( | Location * | loc, |
bool | want_lock = true |
||
) |
Definition at line 779 of file location.cc.
|
private |
Definition at line 853 of file location.cc.
|
virtual |
Implements PBD::Stateful.
Definition at line 1031 of file location.cc.
PBD::Signal1<void,Location*> ARDOUR::Locations::added |
Definition at line 209 of file location.h.
PBD::Signal0<void> ARDOUR::Locations::changed |
Definition at line 211 of file location.h.
PBD::Signal1<void,Location*> ARDOUR::Locations::current_changed |
Definition at line 203 of file location.h.
|
private |
Definition at line 228 of file location.h.
|
private |
Definition at line 227 of file location.h.
|
mutableprivate |
Definition at line 229 of file location.h.
PBD::Signal1<void,Location*> ARDOUR::Locations::removed |
Definition at line 210 of file location.h.