37 #include "canvas/rectangle.h"
67 RegionViewList::iterator i;
120 region_view->
init (wait_for_waves);
128 if (region->
length() == 1) {
140 if (region_view == 0) {
158 list<RegionView *>::iterator i;
162 (*i)->set_valid (
false);
163 (*i)->enable_display (
false);
201 sources.push_back (src);
225 boost::dynamic_pointer_cast<AudioRegion>(RegionFactory::create (sources, plist,
false)));
263 list<pair<boost::shared_ptr<Region>,
RegionView*> >::iterator tmp;
268 (*iter).first->drop_references ();
278 for (vector<RecBoxInfo>::iterator iter=
rec_rects.begin(); iter !=
rec_rects.end(); ++iter) {
325 list<pair<boost::shared_ptr<Region>,
RegionView*> >::iterator tmp = iter;
330 if (!
rec_rects[n].rectangle->visible()) {
351 if (nlen != region->
length()) {
367 ArdourCanvas::Rectangle * rect =
rec_rects[n].rectangle;
376 if (nlen != region->
length()) {
391 ArdourCanvas::Item * rect =
rec_rects[n].rectangle;
429 pair<list<AudioRegionView*>, list<AudioRegionView*> >
432 list<AudioRegionView*> start_hidden;
433 list<AudioRegionView*> end_hidden;
443 start_hidden.push_back (arv);
446 end_hidden.push_back (arv);
454 return make_pair (start_hidden, end_hidden);
virtual void resume_property_changes()
PBD::ScopedConnectionList rec_data_ready_connections
framepos_t get_capture_start_frame(uint32_t n=0) const
bool transport_rolling() const
std::list< std::pair< boost::shared_ptr< ARDOUR::Region >, RegionView * > > rec_regions
LIBPBD_API Transmitter fatal
PBD::Signal0< void > DropReferences
PublicEditor & editor() const
void setup_new_rec_layer_time(boost::shared_ptr< ARDOUR::Region >)
void rec_peak_range_ready(framepos_t start, ARDOUR::framecnt_t cnt, boost::weak_ptr< ARDOUR::Source > src)
LIBARDOUR_API PBD::PropertyDescriptor< layer_t > layer
bool is_audio_track() const
sigc::signal< void, RegionView * > RegionViewAdded
double _samples_per_pixel
bool start_xfade_visible() const
ArdourCanvas::Container * _canvas_group
shared_ptr< T > dynamic_pointer_cast(shared_ptr< U > const &r)
framecnt_t get_captured_frames(uint32_t n=0) const
framepos_t last_rec_data_frame
virtual double sample_to_pixel(framepos_t frame) const =0
std::pair< std::list< AudioRegionView * >, std::list< AudioRegionView * > > hide_xfades_with(boost::shared_ptr< ARDOUR::AudioRegion > ar)
double _amplitude_above_axis
std::ostream & endmsg(std::ostream &ostr)
void init(bool wait_for_data)
RecordState record_status() const
virtual void remove_region_view(boost::weak_ptr< ARDOUR::Region >)
LIBARDOUR_API PBD::PropertyDescriptor< framepos_t > start
#define ENSURE_GUI_THREAD(obj, method,...)
std::vector< RecBoxInfo > rec_rects
void set_fade_visibility(bool)
std::map< boost::shared_ptr< ARDOUR::Source >, bool > rec_data_ready_map
void set_position(framepos_t)
PBD::Signal2< void, framepos_t, framepos_t > PeakRangeReady
boost::shared_ptr< ARDOUR::Region > region() const
void check_record_layers(boost::shared_ptr< ARDOUR::Region >, ARDOUR::framepos_t)
RegionView * create_region_view(boost::shared_ptr< ARDOUR::Region >, bool, bool)
framepos_t transport_frame() const
boost::shared_ptr< AudioFileSource > write_source(uint32_t n=0)
ARDOUR::Session * session() const
ArdourCanvas::Rectangle * rectangle
boost::shared_ptr< ARDOUR::Track > track() const
Evoral::OverlapType coverage(framepos_t start, framepos_t end) const
boost::shared_ptr< Playlist > playlist()
int set_amplitude_above_axis(gdouble app)
bool record_enabled() const
void foreach_region(boost::function< void(boost::shared_ptr< Region >)>)
RouteTimeAxisView & _trackview
void set_amplitude_above_axis(gdouble spp)
void create_rec_box(framepos_t frame_pos, double width)
LIBARDOUR_API RuntimeProfile * Profile
RegionViewList region_views
framecnt_t source_length(uint32_t n) const
framepos_t position() const
sigc::connection screen_update_connection
ArdourCanvas::Rectangle * canvas_rect
double child_height() const
void set_length(framecnt_t)
bool end_xfade_visible() const
static UIConfiguration * config()
void add_region_view(boost::weak_ptr< ARDOUR::Region >)
void update_rec_regions(ARDOUR::framepos_t, ARDOUR::framecnt_t)
framecnt_t length() const
void set_sensitive(bool yn)
RegionView * add_region_view_internal(boost::shared_ptr< ARDOUR::Region >, bool wait_for_waves, bool recording=false)
boost::shared_ptr< ARDOUR::AudioTrack > audio_track() const
uint32_t region_color
Contained region color.
std::vector< boost::shared_ptr< Source > > SourceList
bool add(PropertyBase *prop)
boost::shared_ptr< ARDOUR::Route > route() const
AudioStreamView(AudioTimeAxisView &)
framepos_t current_capture_start() const
std::string string_compose(const std::string &fmt, const T1 &o1)
void suspend_property_changes()
framepos_t last_frame() const
LIBARDOUR_API PBD::PropertyDescriptor< framecnt_t > length
LIBARDOUR_API PBD::PropertyDescriptor< bool > color