Logo Search packages:      
Sourcecode: ardour version File versions  Download package

VisualTimeAxis Class Reference

#include <visual_time_axis.h>

Inheritance diagram for VisualTimeAxis:

TimeAxisView AxisView sigc::trackable ImageFrameTimeAxis MarkerTimeAxis

List of all members.

Detailed Description

Base Abstact Class for TimeAxis views that operate purely within the visual domain.

This class provides many of the common methods required for visual TimeAxis views. The aim is to provide an abstract layer during the developmnt of the visual based time axis'. Many of these methods have a better home further up the class heirarchy, and in fact some are replication of methods found within RouteUI. This, however, has been required due to various problems with previous versions of g++, mainly 2.95, which are not correctly handling virtual methods, virtual base classes, and virtual methods when used with Multiple Inheritance. Perhaps these could be combined once the compilers all agree on hos do to do stuff...

Definition at line 59 of file visual_time_axis.h.

Public Member Functions

void add_extra_xml (XMLNode &)
virtual void add_instant_xml (XMLNode &, const std::string &dir)
bool choose_time_axis_color ()
Gdk::Color color () const
TimeAxisViewcovers_y_position (double y)
uint32_t current_height () const
virtual bool cut_copy_clear (Selection &, Editing::CutCopyOp)
virtual ARDOUR::RouteGroup * edit_group () const
virtual void entered ()
virtual void exited ()
XMLNode * extra_xml (const std::string &str)
virtual boost::shared_ptr
< ARDOUR::Region > 
find_next_region (nframes_t pos, ARDOUR::RegionPoint, int32_t dir)
virtual void first_idle ()
virtual XMLNode * get_child_xml_node (const string &childname)
virtual void get_inverted_selectables (Selection &, list< Selectable * > &results)
virtual void get_selectables (nframes_t start, nframes_t end, double top, double bot, list< Selectable * > &results)
bool get_selected () const
XMLNode & get_state (void)
bool has_state () const
bool hidden () const
virtual void hide ()
void hide_click ()
virtual void hide_dependent_views (TimeAxisViewItem &)
virtual void hide_feature_lines ()
void hide_name_entry ()
void hide_name_label ()
virtual void hide_selection ()
virtual void hide_timestretch ()
const PBD::ID & id () const
void idle_resize (uint32_t)
XMLNode * instant_xml (const std::string &str, const std::string &dir)
virtual void label_view ()
virtual bool marked_for_display () const
virtual std::string name () const
gint name_entry_button_press_handler (GdkEventButton *)
gint name_entry_button_release_handler (GdkEventButton *)
void name_entry_changed ()
gint name_entry_focus_out_handler (GdkEventFocus *)
gint name_entry_key_release_handler (GdkEventKey *)
uint32_t old_order_key () const
void order_selection_trims (ArdourCanvas::Item *item, bool put_start_on_top)
virtual bool paste (nframes_t, float times, Selection &, size_t nth)
virtual boost::shared_ptr
< ARDOUR::Playlist > 
playlist () const
virtual void remove_this_time_axis (void *src)
void reset_height ()
virtual void reshow_selection (TimeSelection &)
bool resizer_button_press (GdkEventButton *)
bool resizer_button_release (GdkEventButton *)
bool resizer_expose (GdkEventExpose *)
bool resizer_motion (GdkEventMotion *)
virtual void reveal_dependent_views (TimeAxisViewItem &)
virtual void select_track_color ()
ARDOUR::Session & session () const
virtual void set_height (uint32_t)
virtual void set_marked_for_display (bool yn)
void set_old_order_key (uint32_t ok)
void set_parent (TimeAxisView &p)
virtual void set_samples_per_unit (double)
virtual void set_selected (bool)
virtual void set_selected_points (PointSelection &)
virtual void set_selected_regionviews (RegionSelection &)
int set_state (const XMLNode &)
void set_time_axis_color (Gdk::Color c)
virtual void set_time_axis_name (const string &name, void *src)
virtual guint32 show_at (double y, int &nth, Gtk::VBox *parent)
virtual void show_feature_lines (const ARDOUR::AnalysisFeatureList &)
void show_name_entry ()
void show_name_label ()
virtual void show_selection (TimeSelection &)
void show_timestretch (nframes_t start, nframes_t end)
void start_time_axis_rename ()
virtual void step_height (bool bigger)
bool touched (double top, double bot)
void visual_click ()
 VisualTimeAxis (const string &name, PublicEditor &ed, ARDOUR::Session &sess, ArdourCanvas::Canvas &canvas)
virtual ~VisualTimeAxis ()

Static Public Member Functions

static gint idle_remove_this_time_axis (VisualTimeAxis *ta, void *src)

Public Attributes

ArdourCanvas::Group * canvas_display
Gtk::EventBox controls_ebox
Gtk::Frame controls_frame
Gtk::HBox controls_hbox
Gtk::EventBox controls_lhs_pad
Gtk::Table controls_table
Gtk::VBox controls_vbox
PublicEditor & editor
uint32_t effective_height
sigc::signal< void > GoingAway
sigc::signal< void, const
string &, void * > 
Gtk::Button hide_button
sigc::signal< void > Hiding
Gtkmm2ext::FocusEntry name_entry
Gtk::Frame name_frame
Gtk::HBox name_hbox
sigc::signal< void, const
string &, const string &, void * > 
int order
Gtk::HBox other_button_hbox
double resize_drag_start
int32_t resize_idle_target
Gtk::DrawingArea resizer
Gtk::HBox resizer_box
Gtk::Button size_button
std::string time_axis_name
Gtk::Button visual_button
sigc::signal< void, const
string &, void * > 
double y_position

Static Public Attributes

static uint32_t hLarge = 0
static uint32_t hLarger = 0
static uint32_t hLargest = 0
static uint32_t hNormal = 0
static uint32_t hSmall = 0
static uint32_t hSmaller = 0

Protected Member Functions

void add_child (TimeAxisView *)
virtual void build_display_menu ()
virtual void build_size_menu ()
void color_handler ()
void conditionally_add_to_selection ()
virtual bool controls_ebox_button_release (GdkEventButton *ev)
virtual bool controls_ebox_scroll (GdkEventScroll *ev)
TimeAxisViewget_parent_with_state ()
SelectionRect * get_selection_rect (uint32_t id)
virtual bool handle_display_menu_map_event (GdkEventAny *ev)
bool is_child (TimeAxisView *)
void name_entry_activated ()
bool name_entry_button_press (GdkEventButton *ev)
bool name_entry_button_release (GdkEventButton *ev)
virtual bool name_entry_focus_in (GdkEventFocus *ev)
virtual bool name_entry_focus_out (GdkEventFocus *ev)
bool name_entry_key_release (GdkEventKey *ev)
bool name_entry_key_timed_out ()
virtual void popup_display_menu (guint32 when)
void popup_size_menu (guint32 when)
void remove_child (TimeAxisView *)
void reshow_feature_lines ()
virtual void selection_click (GdkEventButton *)
void set_heights (uint32_t h)
gint size_click (GdkEventButton *ev)

Static Protected Member Functions

static void compute_controls_size_info ()
static Gdk::Color unique_random_color ()

Protected Attributes

Gdk::Color _color
XMLNode * _extra_xml
bool _has_state
bool _hidden
PBD::ID _id
XMLNode * _instant_xml
bool _marked_for_display
uint32_t _old_order_key
bool _selected
ARDOUR::Session & _session
ARDOUR::AnalysisFeatureList analysis_features
std::vector< TimeAxisView * > children
string controls_base_selected_name
string controls_base_unselected_name
list< ArdourCanvas::SimpleLine * > feature_lines
list< SelectionRect * > free_selection_rects
uint32_t height
guint32 last_name_entry_key_press_event
sigc::connection name_entry_key_timeout
Gtk::Label name_label
NamePackingBits name_packing
ArdourCanvas::Group * selection_group
list< SelectionRect * > used_selection_rects

Static Protected Attributes

static bool need_size_info = true
static list< Gdk::Colorused_colors

Package Functions

void add_destroy_notify_callback (void *data, func_destroy_notify func) const
void notify_callbacks ()
 Execute and remove all previously installed callbacks.
void remove_destroy_notify_callback (void *data) const

Package Attributes

 __pad0__:func_destroy_notify func_destroy_notify

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index