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

TimeAxisViewItem Class Reference

#include <time_axis_view_item.h>

Inheritance diagram for TimeAxisViewItem:

ImageFrameView MarkerView

List of all members.

Detailed Description

A base class for 'items' that may appear upon a TimeAxisView

Definition at line 37 of file time_axis_view_item.h.

Public Member Functions

GtkCanvasItem * get_canvas_frame ()
GtkCanvasItem * get_canvas_group ()
jack_nframes_t get_duration () const
virtual std::string get_item_name () const
jack_nframes_t get_max_duration () const
bool get_max_duration_active () const
jack_nframes_t get_min_duration () const
bool get_min_duration_active () const
GtkCanvasItem * get_name_highlight ()
GtkCanvasItem * get_name_text ()
jack_nframes_t get_position () const
bool get_position_locked () const
double get_samples_per_unit ()
bool get_selected () const
TimeAxisViewget_time_axis_view ()
virtual void lower ()
virtual void lower_to_bottom ()
bool name_active () const
virtual void raise ()
virtual void raise_to_top ()
virtual void remove_this_item (void *src)
void set_color (GdkColor &color)
virtual bool set_duration (jack_nframes_t dur, void *src)
virtual void set_height (double h)
void set_item_name (std::string new_name, void *src)
virtual void set_max_duration (jack_nframes_t dur, void *src)
void set_max_duration_active (bool active, void *src)
virtual void set_min_duration (jack_nframes_t dur, void *src)
void set_min_duration_active (bool active, void *src)
void set_name_text (std::string new_name)
virtual bool set_position (jack_nframes_t pos, void *src, double *delta=0)
virtual void set_position_locked (bool yn, void *src)
virtual void set_samples_per_unit (double spu)
virtual void set_selected (bool)
virtual void set_selected (bool yn, void *src)
virtual void set_should_show_selection (bool yn)
virtual ~TimeAxisViewItem ()

Public Attributes

SigC::Signal2< void,
jack_nframes_t, void * > 
SigC::Signal2< void,
std::string, void * > 
SigC::Signal2< void,
jack_nframes_t, void * > 
SigC::Signal2< void,
jack_nframes_t, void * > 
SigC::Signal3< void,
std::string, std::string, void * > 
SigC::Signal2< void,
jack_nframes_t, void * > 
SigC::Signal2< void, bool, void * > PositionLockChanged
SigC::Signal1< void, bool > Selected

Static Public Attributes

static const double GRAB_HANDLE_LENGTH = 6
static std::string NAME_FONT
static const double NAME_HIGHLIGHT_SIZE = 15.0
static const double NAME_HIGHLIGHT_THRESH = 32.0
static const double NAME_X_OFFSET = 15.0
static const double NAME_Y_OFFSET = 15.0

Protected Types

enum  Visibility { ShowFrame = 0x1, ShowNameHighlight = 0x2, ShowNameText = 0x4, ShowHandles = 0x8 }

Protected Member Functions

virtual void compute_colors (GdkColor &color)
void reset_name_width (double pixel_width)
virtual void reset_width_dependent_items (double pixel_width)
virtual void set_colors ()
void set_frame_color ()
void set_trim_handle_colors ()
 TimeAxisViewItem (std::string it_name, GtkCanvasGroup *parent, TimeAxisView &tv, double spu, GdkColor &base_color, jack_nframes_t start, jack_nframes_t duration, Visibility v=Visibility(0))

Static Protected Member Functions

static gint idle_remove_this_item (TimeAxisViewItem *item, void *src)

Protected Attributes

bool _selected
uint32_t fill_color
uint32_t fill_opacity
GtkCanvasItem * frame
uint32_t frame_color_b
uint32_t frame_color_g
uint32_t frame_color_r
GtkCanvasItem * frame_handle_end
GtkCanvasItem * frame_handle_start
jack_nframes_t frame_position
GtkCanvasItem * group
uint32_t handle_color_b
uint32_t handle_color_g
uint32_t handle_color_r
jack_nframes_t item_duration
std::string item_name
uint32_t label_color
uint32_t lock_handle_color_b
uint32_t lock_handle_color_g
uint32_t lock_handle_color_r
bool max_duration_active
jack_nframes_t max_item_duration
bool min_duration_active
jack_nframes_t min_item_duration
bool name_connected
GtkCanvasItem * name_highlight
GtkCanvasItem * name_text
bool position_locked
double samples_per_unit
bool selected
uint32_t selected_frame_color_b
uint32_t selected_frame_color_g
uint32_t selected_frame_color_r
bool should_show_selection
bool show_vestigial
GtkCanvasItem * vestigial_frame

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

Generated by  Doxygen 1.6.0   Back to index