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

MarkerView Class Reference

#include <marker_view.h>

Inheritance diagram for MarkerView:

TimeAxisViewItem

List of all members.


Detailed Description

MarkerView defines a marker item that may be placed upon a MarkerTimeAxis.

The aim of the MarkerView is to provide additional timing details for visual based time axis. The MarkerView item is associated with one other TimeAxisViewItem and has a start and a duration.

Definition at line 38 of file marker_view.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
std::string get_mark_type_text () const
ImageFrameViewget_marked_item ()
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 ()
 MarkerView (GtkCanvasGroup *parent, TimeAxisView *tv, ImageFrameView *marked, double spu, GdkColor &base_color, std::string mark_type, std::string mark_id, jack_nframes_t start, jack_nframes_t duration)
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)
void set_mark_type_text (std::string type_text)
ImageFrameViewset_marked_item (ImageFrameView *item)
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)
 ~MarkerView ()

Public Attributes

SigC::Signal2< void,
jack_nframes_t, void * > 
DurationChanged
SigC::Signal2< void,
std::string, void * > 
ItemRemoved
SigC::Signal2< void,
ImageFrameView *, void * > 
MarkedItemChanged
SigC::Signal2< void,
std::string, void * > 
MarkTypeChanged
SigC::Signal2< void,
jack_nframes_t, void * > 
MaxDurationChanged
SigC::Signal2< void,
jack_nframes_t, void * > 
MinDurationChanged
SigC::Signal3< void,
std::string, std::string, void * > 
NameChanged
SigC::Signal2< void,
jack_nframes_t, void * > 
PositionChanged
SigC::Signal2< void, bool, void * > PositionLockChanged
SigC::Signal1< void, bool > Selected

Static Public Attributes

static SigC::Signal1< void,
MarkerView * > 
GoingAway
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 ()

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
TimeAxisViewtrackview
GtkCanvasItem * vestigial_frame

Private Attributes

std::string mark_type_text
ImageFrameViewmarked_item

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

Generated by  Doxygen 1.6.0   Back to index