Ardour
9.0-pre0-582-g084a23a80d
|
#include <time_axis_view.h>
Public Types | |
enum | TrackHeightMode { OnlySelf , TotalHeight , HeightPerLane } |
typedef std::vector< std::shared_ptr< TimeAxisView > > | Children |
Public Member Functions | |
TimeAxisView (ARDOUR::Session *sess, PublicEditor &ed, TimeAxisView *parent, ArdourCanvas::Canvas &canvas) | |
virtual | ~TimeAxisView () |
int | order () const |
ArdourCanvas::Container * | canvas_display () |
ArdourCanvas::Container * | ghost_group () |
uint32_t | effective_height () const |
double | y_position () const |
PublicEditor & | editor () const |
uint32_t | current_height () const |
void | idle_resize (int32_t) |
virtual guint32 | show_at (double y, int &nth, Gtk::VBox *parent) |
virtual void | hide () |
bool | touched (double top, double bot) |
bool | hidden () const |
void | set_selected (bool) |
virtual bool | selectable () const |
virtual void | entered () |
virtual void | exited () |
virtual void | set_height (uint32_t h, TrackHeightMode m=OnlySelf, bool from_idle=false) |
void | set_height_enum (Height, bool apply_to_selection=false) |
void | reset_height () |
virtual void | reset_visual_state () |
std::pair< TimeAxisView *, double > | covers_y_position (double) const |
bool | covered_by_y_range (double y0, double y1) const |
virtual void | step_height (bool) |
virtual ARDOUR::RouteGroup * | route_group () const |
virtual std::shared_ptr< ARDOUR::Playlist > | playlist () const |
virtual void | set_samples_per_pixel (double) |
virtual void | show_selection (TimeSelection &) |
virtual void | hide_selection () |
virtual void | reshow_selection (TimeSelection &) |
virtual void | show_timestretch (Temporal::timepos_t const &start, Temporal::timepos_t const &end, int layers, int layer) |
virtual void | hide_timestretch () |
virtual void | cut_copy_clear (Selection &, Editing::CutCopyOp) |
virtual bool | paste (Temporal::timepos_t const &pos, const Selection &selection, PasteContext &ctx) |
virtual void | set_selected_regionviews (RegionSelection &) |
virtual void | set_selected_points (PointSelection &) |
virtual void | fade_range (TimeSelection &) |
virtual std::shared_ptr< ARDOUR::Region > | find_next_region (ARDOUR::timepos_t const &, ARDOUR::RegionPoint, int32_t) |
void | order_selection_trims (ArdourCanvas::Item *item, bool put_start_on_top) |
void | _get_selectables (Temporal::timepos_t const &, Temporal::timepos_t const &, double, double, std::list< Selectable * > &, bool within) |
void | get_inverted_selectables (Selection &, std::list< Selectable * > &results) |
virtual void | get_regionviews_at_or_after (Temporal::timepos_t const &, RegionSelection &) |
void | add_ghost (RegionView *) |
void | remove_ghost (RegionView *) |
void | erase_ghost (GhostRegion *) |
virtual void | first_idle () |
TimeAxisView * | get_parent () |
void | set_parent (TimeAxisView &p) |
virtual LayerDisplay | layer_display () const |
virtual StreamView * | view () const |
Children | get_child_list () const |
Public Member Functions inherited from AxisView | |
virtual Gdk::Color | color () const =0 |
virtual std::shared_ptr< ARDOUR::Stripable > | stripable () const =0 |
virtual std::shared_ptr< ARDOUR::AutomationControl > | control () const |
virtual std::string | state_id () const =0 |
std::string | gui_property (const std::string &property_name) const |
bool | get_gui_property (const std::string &property_name, std::string &value) const |
template<typename T > | |
bool | get_gui_property (const std::string &property_name, T &value) const |
template<typename T > | |
bool | get_gui_property (const std::string &state_id, const std::string &property_name, T &value) const |
void | set_gui_property (const std::string &property_name, const std::string &value) |
void | remove_gui_property (const std::string &property_name) |
void | set_gui_property (const std::string &property_name, const char *value) |
template<typename T > | |
void | set_gui_property (const std::string &property_name, const T &value) |
void | cleanup_gui_properties () |
virtual bool | marked_for_display () const |
virtual bool | set_marked_for_display (bool) |
void | clear_property_cache () |
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 Member Functions inherited from ARDOUR::SessionHandlePtr | |
SessionHandlePtr (ARDOUR::Session *s) | |
SessionHandlePtr () | |
virtual | ~SessionHandlePtr () |
virtual void | set_session (ARDOUR::Session *) |
virtual ARDOUR::Session * | session () const |
Public Member Functions inherited from Selectable | |
Selectable () | |
virtual | ~Selectable () |
virtual bool | selected () const |
Public Member Functions inherited from SelectableOwner | |
SelectableOwner () | |
virtual | ~SelectableOwner () |
void | get_selectables (Temporal::timepos_t const &start, Temporal::timepos_t const &end, double x, double y, std::list< Selectable * > &sl, bool within=false) |
Static Public Member Functions | |
static void | setup_sizes () |
static int | max_order () |
static uint32_t | preset_height (Height) |
Static Public Member Functions inherited from AxisView | |
static GUIObjectState & | gui_object_state () |
static Gdk::Color | round_robin_palette_color () |
Static Public Attributes | |
static PBD::Signal< void(TimeAxisView *)> | CatchDeletion |
Static Protected Attributes | |
static Glib::RefPtr< Gtk::SizeGroup > | controls_meters_size_group |
static Glib::RefPtr< Gtk::SizeGroup > | midi_scroomer_size_group |
static unsigned int | name_width_px |
Private Types | |
enum | NamePackingBits { NameLabelPacked = 0x1 , NameEntryPacked = 0x2 } |
Private Member Functions | |
SelectionRect * | get_selection_rect (uint32_t id) |
void | compute_heights () |
bool | maybe_set_cursor (int y) |
void | popup_display_menu (int button, guint32 when) |
Private Attributes | |
Gtk::VBox * | control_parent |
int | _order |
uint32_t | _effective_height |
double | _resize_drag_start |
bool | _did_resize |
GdkCursor * | _preresize_cursor |
bool | _have_preresize_cursor |
bool | _ebox_release_can_act |
Static Private Attributes | |
static uint32_t | button_height |
static uint32_t | extra_height |
static int const | _max_order |
Additional Inherited Members | |
Public Attributes inherited from AxisView | |
sigc::signal< void > | Hiding |
Abstract base class for time-axis views (horizontal editor 'strips')
This class provides the basic LHS controls and display methods. This should be extended to create functional time-axis based views.
Definition at line 97 of file time_axis_view.h.
typedef std::vector<std::shared_ptr<TimeAxisView> > TimeAxisView::Children |
Definition at line 228 of file time_axis_view.h.
|
private |
Enumerator | |
---|---|
NameLabelPacked | |
NameEntryPacked |
Definition at line 100 of file time_axis_view.h.
Enumerator | |
---|---|
OnlySelf | |
TotalHeight | |
HeightPerLane |
Definition at line 155 of file time_axis_view.h.
TimeAxisView::TimeAxisView | ( | ARDOUR::Session * | sess, |
PublicEditor & | ed, | ||
TimeAxisView * | parent, | ||
ArdourCanvas::Canvas & | canvas | ||
) |
|
virtual |
|
virtual |
Implements SelectableOwner.
|
protected |
void TimeAxisView::add_ghost | ( | RegionView * | ) |
|
protected |
|
protectedvirtual |
Build the standard LHS control menu. Subclasses should extend this method to add their own menu options.
Reimplemented in VCATimeAxisView, RouteTimeAxisView, and AutomationTimeAxisView.
|
protected |
|
protectedvirtual |
Reimplemented in RouteTimeAxisView, and AutomationTimeAxisView.
|
inline |
Definition at line 119 of file time_axis_view.h.
|
protected |
|
private |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
Handle mouse release on our LHS control name ebox.
@ param ev the event
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
bool TimeAxisView::covered_by_y_range | ( | double | y0, |
double | y1 | ||
) | const |
std::pair<TimeAxisView*, double> TimeAxisView::covers_y_position | ( | double | ) | const |
|
inline |
Definition at line 132 of file time_axis_view.h.
|
inlinevirtual |
Reimplemented in RouteTimeAxisView, and AutomationTimeAxisView.
Definition at line 184 of file time_axis_view.h.
|
inline |
Definition at line 130 of file time_axis_view.h.
|
inline |
Definition at line 124 of file time_axis_view.h.
|
protected |
|
inlinevirtual |
potential handler for entered events
Reimplemented in AutomationTimeAxisView.
Definition at line 152 of file time_axis_view.h.
void TimeAxisView::erase_ghost | ( | GhostRegion * | ) |
|
inlinevirtual |
Reimplemented in AutomationTimeAxisView.
Definition at line 153 of file time_axis_view.h.
|
inlinevirtual |
Reimplemented in RouteTimeAxisView.
Definition at line 202 of file time_axis_view.h.
|
inlinevirtual |
Reimplemented in RouteTimeAxisView.
Definition at line 204 of file time_axis_view.h.
|
inlinevirtual |
called at load time when first GUI idle occurs. put expensive data loading/redisplay code in here.
Reimplemented in MidiTimeAxisView, and AudioTimeAxisView.
Definition at line 220 of file time_axis_view.h.
Children TimeAxisView::get_child_list | ( | ) | const |
|
virtual |
Implements SelectableOwner.
|
inline |
Definition at line 222 of file time_axis_view.h.
|
inlinevirtual |
Reimplemented in RouteTimeAxisView.
Definition at line 212 of file time_axis_view.h.
|
private |
|
inline |
Definition at line 120 of file time_axis_view.h.
|
inlineprotectedvirtual |
Do whatever needs to be done to dynamically reset the LHS control menu.
Definition at line 293 of file time_axis_view.h.
|
inline |
Definition at line 142 of file time_axis_view.h.
|
virtual |
|
virtual |
|
virtual |
Reimplemented in RouteTimeAxisView, and AutomationTimeAxisView.
void TimeAxisView::idle_resize | ( | int32_t | ) |
|
protected |
|
inlinevirtual |
Reimplemented in RouteTimeAxisView.
Definition at line 225 of file time_axis_view.h.
|
inlinestatic |
Definition at line 117 of file time_axis_view.h.
|
private |
|
inlineprotectedvirtual |
Implements AxisView.
Reimplemented in VCATimeAxisView, RouteTimeAxisView, and AutomationTimeAxisView.
Definition at line 270 of file time_axis_view.h.
|
protectedvirtual |
Reimplemented in VCATimeAxisView, and RouteTimeAxisView.
|
inline |
Definition at line 114 of file time_axis_view.h.
void TimeAxisView::order_selection_trims | ( | ArdourCanvas::Item * | item, |
bool | put_start_on_top | ||
) |
|
protected |
|
inlinevirtual |
Paste a selection.
pos | Position to paste to (session samples). |
selection | Selection to paste. |
ctx | Paste context. |
Reimplemented in RouteTimeAxisView, MidiTimeAxisView, and AutomationTimeAxisView.
Definition at line 191 of file time_axis_view.h.
|
inlinevirtual |
Reimplemented in RouteTimeAxisView.
Definition at line 173 of file time_axis_view.h.
|
private |
|
static |
|
inlineprotectedvirtual |
Reimplemented in AutomationTimeAxisView.
Definition at line 297 of file time_axis_view.h.
|
protectedvirtual |
Reimplemented in RouteTimeAxisView.
void TimeAxisView::remove_ghost | ( | RegionView * | ) |
void TimeAxisView::reset_height | ( | ) |
|
virtual |
|
virtual |
|
inlinevirtual |
Reimplemented in RouteTimeAxisView.
Definition at line 172 of file time_axis_view.h.
|
inlinevirtual |
Definition at line 146 of file time_axis_view.h.
|
protectedvirtual |
Reimplemented in RouteTimeAxisView.
|
virtual |
Reimplemented in MidiTimeAxisView, AutomationTimeAxisView, VCATimeAxisView, and RouteTimeAxisView.
void TimeAxisView::set_height_enum | ( | Height | , |
bool | apply_to_selection = false |
||
) |
void TimeAxisView::set_parent | ( | TimeAxisView & | p | ) |
|
virtual |
Reimplemented in StripableTimeAxisView, RouteTimeAxisView, and AutomationTimeAxisView.
|
virtual |
Reimplemented from AxisView.
|
virtual |
Reimplemented in RouteTimeAxisView, and AutomationTimeAxisView.
|
inlinevirtual |
Reimplemented in RouteTimeAxisView, and AutomationTimeAxisView.
Definition at line 199 of file time_axis_view.h.
|
static |
|
virtual |
|
virtual |
Reimplemented in RouteTimeAxisView.
|
virtual |
Reimplemented in RouteTimeAxisView, and AutomationTimeAxisView.
|
virtual |
bool TimeAxisView::touched | ( | double | top, |
double | bot | ||
) |
|
inlinevirtual |
Reimplemented in RouteTimeAxisView.
Definition at line 226 of file time_axis_view.h.
|
inline |
Definition at line 127 of file time_axis_view.h.
|
protected |
Definition at line 262 of file time_axis_view.h.
|
protected |
Definition at line 261 of file time_axis_view.h.
|
private |
Definition at line 318 of file time_axis_view.h.
|
private |
Definition at line 321 of file time_axis_view.h.
|
protected |
Definition at line 264 of file time_axis_view.h.
|
private |
Definition at line 316 of file time_axis_view.h.
|
protected |
Definition at line 254 of file time_axis_view.h.
|
private |
Definition at line 320 of file time_axis_view.h.
|
protected |
Definition at line 258 of file time_axis_view.h.
|
staticprivate |
Definition at line 325 of file time_axis_view.h.
|
protected |
Definition at line 247 of file time_axis_view.h.
|
private |
Definition at line 315 of file time_axis_view.h.
|
private |
Definition at line 319 of file time_axis_view.h.
|
private |
Definition at line 317 of file time_axis_view.h.
|
protected |
Definition at line 260 of file time_axis_view.h.
|
protected |
Definition at line 263 of file time_axis_view.h.
|
staticprivate |
Definition at line 323 of file time_axis_view.h.
|
static |
Definition at line 109 of file time_axis_view.h.
|
protected |
Definition at line 295 of file time_axis_view.h.
|
private |
Definition at line 314 of file time_axis_view.h.
|
protected |
Definition at line 250 of file time_axis_view.h.
|
protected |
Definition at line 249 of file time_axis_view.h.
|
protected |
Definition at line 239 of file time_axis_view.h.
|
protected |
Definition at line 240 of file time_axis_view.h.
|
staticprotected |
Definition at line 234 of file time_axis_view.h.
|
protected |
Definition at line 238 of file time_axis_view.h.
|
protected |
Definition at line 241 of file time_axis_view.h.
|
protected |
Definition at line 251 of file time_axis_view.h.
|
staticprivate |
Definition at line 324 of file time_axis_view.h.
|
protected |
Definition at line 256 of file time_axis_view.h.
|
protected |
Definition at line 255 of file time_axis_view.h.
|
protected |
Definition at line 248 of file time_axis_view.h.
|
protected |
Definition at line 259 of file time_axis_view.h.
|
staticprotected |
Definition at line 235 of file time_axis_view.h.
|
staticprotected |
Definition at line 236 of file time_axis_view.h.
|
protected |
Definition at line 252 of file time_axis_view.h.
|
protected |
Definition at line 246 of file time_axis_view.h.
|
protected |
Definition at line 253 of file time_axis_view.h.
|
protected |
Definition at line 244 of file time_axis_view.h.
|
protected |
Definition at line 243 of file time_axis_view.h.
|
protected |
Definition at line 242 of file time_axis_view.h.
|
protected |
Definition at line 245 of file time_axis_view.h.
|
protected |
Definition at line 257 of file time_axis_view.h.