ardour
|
#include <time_axis_view.h>
Public Types | |
enum | TrackHeightMode { OnlySelf, TotalHeight, HeightPerLane } |
typedef std::vector < boost::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 void | entered () |
virtual void | exited () |
virtual void | set_height (uint32_t h, TrackHeightMode m=OnlySelf) |
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 boost::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 (framepos_t start, framepos_t end, int layers, int layer) |
virtual void | hide_timestretch () |
virtual void | cut_copy_clear (Selection &, Editing::CutCopyOp) |
virtual bool | paste (ARDOUR::framepos_t pos, const Selection &selection, PasteContext &ctx) |
virtual void | set_selected_regionviews (RegionSelection &) |
virtual void | set_selected_points (PointSelection &) |
virtual void | fade_range (TimeSelection &) |
virtual boost::shared_ptr < ARDOUR::Region > | find_next_region (framepos_t, ARDOUR::RegionPoint, int32_t) |
void | order_selection_trims (ArdourCanvas::Item *item, bool put_start_on_top) |
virtual void | get_selectables (ARDOUR::framepos_t, ARDOUR::framepos_t, double, double, std::list< Selectable * > &, bool within=false) |
virtual void | get_inverted_selectables (Selection &, std::list< Selectable * > &results) |
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 () |
SelectionRect * | get_selection_rect (uint32_t id) |
Public Member Functions inherited from AxisView | |
Gdk::Color | color () const |
ARDOUR::Session * | session () const |
virtual std::string | name () const =0 |
void | set_old_order_key (uint32_t ok) |
uint32_t | old_order_key () const |
virtual std::string | state_id () const =0 |
std::string | gui_property (const std::string &property_name) const |
template<typename T > | |
void | set_gui_property (const std::string &property_name, const T &value) |
void | cleanup_gui_properties () |
bool | marked_for_display () const |
virtual bool | set_marked_for_display (bool) |
void | clear_property_cache () |
Public Member Functions inherited from Selectable | |
Selectable () | |
virtual | ~Selectable () |
bool | get_selected () const |
Public Member Functions inherited from PBD::ScopedConnectionList | |
ScopedConnectionList () | |
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 *) |
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 Public Attributes | |
static PBD::Signal1< void, TimeAxisView * > | CatchDeletion |
Protected Member Functions | |
virtual bool | can_edit_name () const |
bool | name_entry_key_release (GdkEventKey *ev) |
bool | name_entry_key_press (GdkEventKey *ev) |
bool | name_entry_focus_out (GdkEventFocus *ev) |
void | begin_name_edit () |
void | end_name_edit (int) |
virtual void | name_entry_changed () |
virtual bool | controls_ebox_button_release (GdkEventButton *) |
virtual bool | controls_ebox_scroll (GdkEventScroll *) |
virtual bool | controls_ebox_button_press (GdkEventButton *) |
virtual bool | controls_ebox_motion (GdkEventMotion *) |
virtual bool | controls_ebox_leave (GdkEventCrossing *) |
virtual void | popup_display_menu (guint32 when) |
virtual void | build_display_menu () |
virtual bool | handle_display_menu_map_event (GdkEventAny *) |
bool | is_child (TimeAxisView *) |
virtual void | remove_child (boost::shared_ptr< TimeAxisView >) |
void | add_child (boost::shared_ptr< TimeAxisView >) |
virtual void | selection_click (GdkEventButton *) |
void | color_handler () |
void | conditionally_add_to_selection () |
void | build_size_menu () |
Protected Member Functions inherited from AxisView | |
AxisView (ARDOUR::Session *sess) | |
virtual | ~AxisView () |
Protected Member Functions inherited from ARDOUR::SessionHandlePtr | |
virtual void | session_going_away () |
Static Protected Attributes | |
static Glib::RefPtr < Gtk::SizeGroup > | controls_meters_size_group = Glib::RefPtr<Gtk::SizeGroup>() |
static Glib::RefPtr < Gtk::SizeGroup > | midi_scroomer_size_group = Glib::RefPtr<Gtk::SizeGroup>() |
static unsigned int | name_width_px = 100 |
Static Protected Attributes inherited from AxisView | |
static std::list< Gdk::Color > | used_colors |
Private Types | |
enum | NamePackingBits { NameLabelPacked = 0x1, NameEntryPacked = 0x2 } |
Private Member Functions | |
void | compute_heights () |
bool | maybe_set_cursor (int y) |
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 = 0 |
static uint32_t | extra_height = 0 |
static int const | _max_order = 512 |
Additional Inherited Members | |
Public Attributes inherited from AxisView | |
sigc::signal< void > | Hiding |
Static Protected Member Functions inherited from AxisView | |
static Gdk::Color | unique_random_color () |
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 89 of file time_axis_view.h.
typedef std::vector<boost::shared_ptr<TimeAxisView> > TimeAxisView::Children |
Definition at line 213 of file time_axis_view.h.
|
private |
Enumerator | |
---|---|
NameLabelPacked | |
NameEntryPacked |
Definition at line 92 of file time_axis_view.h.
Enumerator | |
---|---|
OnlySelf | |
TotalHeight | |
HeightPerLane |
Definition at line 145 of file time_axis_view.h.
TimeAxisView::TimeAxisView | ( | ARDOUR::Session * | sess, |
PublicEditor & | ed, | ||
TimeAxisView * | parent, | ||
ArdourCanvas::Canvas & | canvas | ||
) |
Definition at line 88 of file time_axis_view.cc.
|
virtual |
Definition at line 226 of file time_axis_view.cc.
|
protected |
Definition at line 1082 of file time_axis_view.cc.
void TimeAxisView::add_ghost | ( | RegionView * | rv | ) |
Definition at line 1117 of file time_axis_view.cc.
|
protected |
Definition at line 660 of file time_axis_view.cc.
|
protectedvirtual |
Build the standard LHS control menu. Subclasses should extend this method to add their own menu options.
Reimplemented in RouteTimeAxisView, and AutomationTimeAxisView.
Definition at line 867 of file time_axis_view.cc.
|
protected |
Definition at line 1357 of file time_axis_view.cc.
|
protectedvirtual |
Reimplemented in RouteTimeAxisView, and AutomationTimeAxisView.
Definition at line 800 of file time_axis_view.cc.
|
inline |
Definition at line 111 of file time_axis_view.h.
|
protected |
Definition at line 1205 of file time_axis_view.cc.
|
private |
Definition at line 1178 of file time_axis_view.cc.
|
protected |
Definition at line 806 of file time_axis_view.cc.
|
protectedvirtual |
Definition at line 389 of file time_axis_view.cc.
|
protectedvirtual |
Handle mouse relaese on our LHS control name ebox.
@ param ev the event
Definition at line 489 of file time_axis_view.cc.
|
protectedvirtual |
Definition at line 451 of file time_axis_view.cc.
|
protectedvirtual |
Definition at line 424 of file time_axis_view.cc.
|
protectedvirtual |
Definition at line 346 of file time_axis_view.cc.
bool TimeAxisView::covered_by_y_range | ( | double | y0, |
double | y1 | ||
) | const |
Definition at line 1297 of file time_axis_view.cc.
std::pair< TimeAxisView *, double > TimeAxisView::covers_y_position | ( | double | y | ) | const |
y,or | one of its children does. |
y | is an offset from the top of the trackview area. |
If the covering object is a child axis, then the child is returned. TimeAxisView is 0 otherwise.
Layer index is the layer number (possibly fractional) if the TimeAxisView is valid and is in stacked or expanded * region display mode, otherwise 0.
Definition at line 1247 of file time_axis_view.cc.
|
inline |
Definition at line 124 of file time_axis_view.h.
|
inlinevirtual |
Reimplemented in RouteTimeAxisView, and AutomationTimeAxisView.
Definition at line 174 of file time_axis_view.h.
|
inline |
Definition at line 122 of file time_axis_view.h.
|
inline |
Definition at line 116 of file time_axis_view.h.
|
protected |
Definition at line 694 of file time_axis_view.cc.
|
inlinevirtual |
potential handler for entered events
Reimplemented in AutomationTimeAxisView.
Definition at line 142 of file time_axis_view.h.
void TimeAxisView::erase_ghost | ( | GhostRegion * | gr | ) |
Definition at line 1133 of file time_axis_view.cc.
|
inlinevirtual |
Reimplemented in AutomationTimeAxisView.
Definition at line 143 of file time_axis_view.h.
|
inlinevirtual |
Reimplemented in RouteTimeAxisView.
Definition at line 188 of file time_axis_view.h.
|
inlinevirtual |
Reimplemented in RouteTimeAxisView.
Definition at line 190 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 205 of file time_axis_view.h.
TimeAxisView::Children TimeAxisView::get_child_list | ( | ) |
Definition at line 1343 of file time_axis_view.cc.
|
virtual |
Reimplemented in RouteTimeAxisView, and AutomationTimeAxisView.
Definition at line 1111 of file time_axis_view.cc.
|
inline |
Definition at line 207 of file time_axis_view.h.
|
virtual |
Get selectable things within a given range.
start | Start time in session frames. |
end | End time in session frames. |
top | Top y range, in trackview coordinates (ie 0 is the top of the track view) |
bot | Bottom y range, in trackview coordinates (ie 0 is the top of the track view) |
result | Filled in with selectable things. |
Reimplemented in RouteTimeAxisView, and AutomationTimeAxisView.
Definition at line 1105 of file time_axis_view.cc.
SelectionRect * TimeAxisView::get_selection_rect | ( | uint32_t | id | ) |
Definition at line 1017 of file time_axis_view.cc.
|
inline |
Definition at line 112 of file time_axis_view.h.
|
inlineprotectedvirtual |
Do whatever needs to be done to dynamically reset the LHS control menu.
Definition at line 292 of file time_axis_view.h.
|
inline |
Definition at line 134 of file time_axis_view.h.
|
virtual |
Reimplemented in AudioTimeAxisView.
Definition at line 262 of file time_axis_view.cc.
|
virtual |
Definition at line 975 of file time_axis_view.cc.
|
virtual |
Reimplemented in AutomationTimeAxisView, and RouteTimeAxisView.
Definition at line 896 of file time_axis_view.cc.
void TimeAxisView::idle_resize | ( | int32_t | h | ) |
Definition at line 417 of file time_axis_view.cc.
|
protected |
Definition at line 1076 of file time_axis_view.cc.
|
inlinevirtual |
Reimplemented in RouteTimeAxisView.
Definition at line 210 of file time_axis_view.h.
|
inlinestatic |
Definition at line 109 of file time_axis_view.h.
|
private |
Definition at line 461 of file time_axis_view.cc.
|
protectedvirtual |
Reimplemented in RouteTimeAxisView.
Definition at line 795 of file time_axis_view.cc.
|
protected |
Definition at line 653 of file time_axis_view.cc.
|
protected |
Definition at line 611 of file time_axis_view.cc.
|
protected |
Definition at line 625 of file time_axis_view.cc.
|
inline |
Definition at line 106 of file time_axis_view.h.
void TimeAxisView::order_selection_trims | ( | ArdourCanvas::Item * | item, |
bool | put_start_on_top | ||
) |
Definition at line 994 of file time_axis_view.cc.
|
inlinevirtual |
Paste a selection.
pos | Position to paste to (session frames). |
selection | Selection to paste. |
ctx | Paste context. |
Reimplemented in RouteTimeAxisView, AutomationTimeAxisView, and MidiTimeAxisView.
Definition at line 181 of file time_axis_view.h.
|
inlinevirtual |
Reimplemented in RouteTimeAxisView.
Definition at line 163 of file time_axis_view.h.
|
protectedvirtual |
Display the standard LHS control menu at when.
when | the popup activation time |
Definition at line 816 of file time_axis_view.cc.
|
static |
Definition at line 1322 of file time_axis_view.cc.
|
protectedvirtual |
Reimplemented in RouteTimeAxisView.
Definition at line 1088 of file time_axis_view.cc.
void TimeAxisView::remove_ghost | ( | RegionView * | rv | ) |
Definition at line 1127 of file time_axis_view.cc.
void TimeAxisView::reset_height | ( | ) |
Definition at line 1168 of file time_axis_view.cc.
|
virtual |
Definition at line 1379 of file time_axis_view.cc.
|
virtual |
Definition at line 965 of file time_axis_view.cc.
|
inlinevirtual |
Reimplemented in RouteTimeAxisView.
Definition at line 162 of file time_axis_view.h.
|
protectedvirtual |
Reimplemented in RouteTimeAxisView.
Definition at line 524 of file time_axis_view.cc.
|
virtual |
Reimplemented in RouteTimeAxisView, MidiTimeAxisView, and AutomationTimeAxisView.
Definition at line 571 of file time_axis_view.cc.
void TimeAxisView::set_height_enum | ( | Height | h, |
bool | apply_to_selection = false |
||
) |
Definition at line 561 of file time_axis_view.cc.
void TimeAxisView::set_parent | ( | TimeAxisView & | p | ) |
Definition at line 1162 of file time_axis_view.cc.
|
virtual |
Reimplemented in RouteTimeAxisView, and AutomationTimeAxisView.
Definition at line 880 of file time_axis_view.cc.
|
virtual |
Reimplemented from Selectable.
Definition at line 825 of file time_axis_view.cc.
|
inlinevirtual |
Reimplemented in RouteTimeAxisView, and AutomationTimeAxisView.
Definition at line 186 of file time_axis_view.h.
|
inlinevirtual |
Reimplemented in RouteTimeAxisView.
Definition at line 185 of file time_axis_view.h.
|
static |
Definition at line 83 of file time_axis_view.cc.
|
virtual |
Display this TimeAxisView as the nth component of the parent box, at y.
y | y position. |
nth | index for this TimeAxisView, increased if this view has children. |
parent | parent component. |
Reimplemented in AudioTimeAxisView.
Definition at line 301 of file time_axis_view.cc.
|
virtual |
Reimplemented in RouteTimeAxisView.
Definition at line 904 of file time_axis_view.cc.
|
virtual |
Reimplemented in AutomationTimeAxisView, and RouteTimeAxisView.
Definition at line 888 of file time_axis_view.cc.
|
virtual |
Steps through the defined heights for this TrackView.
coarser | true if stepping should decrease in size, otherwise false. |
Definition at line 535 of file time_axis_view.cc.
bool TimeAxisView::touched | ( | double | top, |
double | bot | ||
) |
Definition at line 1148 of file time_axis_view.cc.
|
inlinevirtual |
Reimplemented in RouteTimeAxisView.
Definition at line 211 of file time_axis_view.h.
|
inline |
Definition at line 119 of file time_axis_view.h.
|
protected |
Definition at line 251 of file time_axis_view.h.
|
protected |
Definition at line 250 of file time_axis_view.h.
|
private |
Definition at line 315 of file time_axis_view.h.
|
private |
Definition at line 318 of file time_axis_view.h.
|
protected |
Definition at line 253 of file time_axis_view.h.
|
private |
Definition at line 313 of file time_axis_view.h.
|
protected |
Definition at line 243 of file time_axis_view.h.
|
private |
Definition at line 317 of file time_axis_view.h.
|
protected |
Definition at line 247 of file time_axis_view.h.
|
staticprivate |
Definition at line 322 of file time_axis_view.h.
|
protected |
Definition at line 236 of file time_axis_view.h.
|
private |
Definition at line 312 of file time_axis_view.h.
|
private |
Definition at line 316 of file time_axis_view.h.
|
private |
Definition at line 314 of file time_axis_view.h.
|
protected |
Definition at line 249 of file time_axis_view.h.
|
protected |
Definition at line 252 of file time_axis_view.h.
|
staticprivate |
Definition at line 320 of file time_axis_view.h.
|
static |
Definition at line 101 of file time_axis_view.h.
|
protected |
Definition at line 294 of file time_axis_view.h.
|
private |
Definition at line 311 of file time_axis_view.h.
|
protected |
Definition at line 239 of file time_axis_view.h.
|
protected |
Definition at line 238 of file time_axis_view.h.
|
protected |
Definition at line 226 of file time_axis_view.h.
|
protected |
Definition at line 227 of file time_axis_view.h.
|
staticprotected |
Definition at line 221 of file time_axis_view.h.
|
protected |
Definition at line 225 of file time_axis_view.h.
|
protected |
Definition at line 228 of file time_axis_view.h.
|
protected |
Definition at line 240 of file time_axis_view.h.
|
staticprivate |
Definition at line 321 of file time_axis_view.h.
|
protected |
Definition at line 245 of file time_axis_view.h.
|
protected |
Definition at line 244 of file time_axis_view.h.
|
protected |
Definition at line 237 of file time_axis_view.h.
|
protected |
Definition at line 248 of file time_axis_view.h.
|
staticprotected |
Definition at line 222 of file time_axis_view.h.
|
protected |
Definition at line 261 of file time_axis_view.h.
|
protected |
Definition at line 232 of file time_axis_view.h.
|
protected |
Definition at line 234 of file time_axis_view.h.
|
staticprotected |
Definition at line 223 of file time_axis_view.h.
|
protected |
Definition at line 241 of file time_axis_view.h.
|
protected |
Definition at line 235 of file time_axis_view.h.
|
protected |
Definition at line 242 of file time_axis_view.h.
|
protected |
Definition at line 231 of file time_axis_view.h.
|
protected |
Definition at line 230 of file time_axis_view.h.
|
protected |
Definition at line 229 of file time_axis_view.h.
|
protected |
Definition at line 233 of file time_axis_view.h.
|
protected |
Definition at line 246 of file time_axis_view.h.