#include <time_axis_view_item.h>
|
sigc::signal< void,
std::string, void * > | ItemRemoved |
|
sigc::signal< void,
std::string, std::string, void * > | NameChanged |
|
sigc::signal< void, framepos_t,
void * > | PositionChanged |
|
sigc::signal< void, bool, void * > | PositionLockChanged |
|
sigc::signal< void, framecnt_t,
void * > | DurationChanged |
|
sigc::signal< void, framecnt_t,
void * > | MaxDurationChanged |
|
sigc::signal< void, framecnt_t,
void * > | MinDurationChanged |
|
|
| TimeAxisViewItem (const std::string &, ArdourCanvas::Item &, TimeAxisView &, double, uint32_t fill_color, framepos_t, framecnt_t, bool recording=false, bool automation=false, Visibility v=Visibility(0)) |
|
| TimeAxisViewItem (const TimeAxisViewItem &) |
|
void | init (ArdourCanvas::Item *, double, uint32_t, framepos_t, framepos_t, Visibility, bool, bool) |
|
virtual bool | canvas_group_event (GdkEvent *) |
|
virtual void | set_colors () |
|
virtual void | set_frame_color () |
|
virtual void | set_frame_gradient () |
|
void | set_trim_handle_colors () |
|
virtual void | reset_width_dependent_items (double) |
|
bool | frame_handle_crossing (GdkEvent *, ArdourCanvas::Rectangle *) |
|
Base class for items that may appear upon a TimeAxisView.
Definition at line 47 of file time_axis_view_item.h.
Enumerator |
---|
ShowFrame |
|
ShowNameHighlight |
|
ShowNameText |
|
ShowHandles |
|
HideFrameLeft |
|
HideFrameRight |
|
HideFrameTB |
|
FullWidthNameHighlight |
|
Definition at line 144 of file time_axis_view_item.h.
TimeAxisViewItem::~TimeAxisViewItem |
( |
| ) |
|
|
virtual |
TimeAxisViewItem::TimeAxisViewItem |
( |
const std::string & |
, |
|
|
ArdourCanvas::Item & |
, |
|
|
TimeAxisView & |
, |
|
|
double |
, |
|
|
uint32_t |
fill_color, |
|
|
framepos_t |
, |
|
|
framecnt_t |
, |
|
|
bool |
recording = false , |
|
|
bool |
automation = false , |
|
|
Visibility |
v = Visibility(0) |
|
) |
| |
|
protected |
bool TimeAxisViewItem::canvas_group_event |
( |
GdkEvent * |
| ) |
|
|
protectedvirtual |
void TimeAxisViewItem::drag_end |
( |
| ) |
|
|
virtual |
void TimeAxisViewItem::drag_start |
( |
| ) |
|
|
virtual |
bool TimeAxisViewItem::dragging |
( |
| ) |
const |
|
inline |
bool TimeAxisViewItem::frame_handle_crossing |
( |
GdkEvent * |
ev, |
|
|
ArdourCanvas::Rectangle * |
item |
|
) |
| |
|
protected |
ArdourCanvas::Item * TimeAxisViewItem::get_canvas_frame |
( |
| ) |
|
ArdourCanvas::Item * TimeAxisViewItem::get_canvas_group |
( |
| ) |
|
framepos_t TimeAxisViewItem::get_duration |
( |
| ) |
const |
ArdourCanvas::Color TimeAxisViewItem::get_fill_color |
( |
| ) |
const |
|
virtual |
std::string TimeAxisViewItem::get_item_name |
( |
| ) |
const |
|
virtual |
framecnt_t TimeAxisViewItem::get_max_duration |
( |
| ) |
const |
bool TimeAxisViewItem::get_max_duration_active |
( |
| ) |
const |
framecnt_t TimeAxisViewItem::get_min_duration |
( |
| ) |
const |
bool TimeAxisViewItem::get_min_duration_active |
( |
| ) |
const |
ArdourCanvas::Item * TimeAxisViewItem::get_name_highlight |
( |
| ) |
|
framepos_t TimeAxisViewItem::get_position |
( |
| ) |
const |
bool TimeAxisViewItem::get_position_locked |
( |
| ) |
const |
double TimeAxisViewItem::get_samples_per_pixel |
( |
| ) |
const |
TimeAxisView & TimeAxisViewItem::get_time_axis_view |
( |
| ) |
const |
virtual double TimeAxisViewItem::height |
( |
| ) |
const |
|
inlinevirtual |
gint TimeAxisViewItem::idle_remove_this_item |
( |
TimeAxisViewItem * |
item, |
|
|
void * |
src |
|
) |
| |
|
staticprotected |
Callback used to remove this time axis item during the gtk idle loop. This is used to avoid deleting the obejct while inside the remove_this_item method.
- Parameters
-
item | the TimeAxisViewItem to remove. |
src | the identity of the object that initiated the change. |
Definition at line 942 of file time_axis_view_item.cc.
void TimeAxisViewItem::init |
( |
ArdourCanvas::Item * |
parent, |
|
|
double |
fpp, |
|
|
uint32_t |
base_color, |
|
|
framepos_t |
start, |
|
|
framepos_t |
duration, |
|
|
Visibility |
vis, |
|
|
bool |
wide, |
|
|
bool |
high |
|
) |
| |
|
protected |
virtual void TimeAxisViewItem::lower |
( |
| ) |
|
|
inlinevirtual |
virtual void TimeAxisViewItem::lower_to_bottom |
( |
| ) |
|
|
inlinevirtual |
void TimeAxisViewItem::manage_name_highlight |
( |
| ) |
|
|
private |
void TimeAxisViewItem::manage_name_text |
( |
| ) |
|
|
private |
bool TimeAxisViewItem::name_active |
( |
| ) |
const |
|
inline |
void TimeAxisViewItem::parameter_changed |
( |
std::string |
| ) |
|
|
private |
virtual void TimeAxisViewItem::raise |
( |
| ) |
|
|
inlinevirtual |
virtual void TimeAxisViewItem::raise_to_top |
( |
| ) |
|
|
inlinevirtual |
void TimeAxisViewItem::reset_width_dependent_items |
( |
double |
pixel_width | ) |
|
|
protectedvirtual |
bool TimeAxisViewItem::sensitive |
( |
| ) |
const |
|
inline |
void TimeAxisViewItem::set_color |
( |
uint32_t |
base_color | ) |
|
void TimeAxisViewItem::set_colors |
( |
| ) |
|
|
protectedvirtual |
void TimeAxisViewItem::set_constant_heights |
( |
| ) |
|
|
static |
bool TimeAxisViewItem::set_duration |
( |
framecnt_t |
, |
|
|
void * |
|
|
) |
| |
|
virtual |
Set the duration of this item.
- Parameters
-
dur | the new duration of this item |
src | the identity of the object that initiated the change |
- Returns
- true on success
Reimplemented in RegionView.
Definition at line 341 of file time_axis_view_item.cc.
void TimeAxisViewItem::set_frame_color |
( |
| ) |
|
|
protectedvirtual |
void TimeAxisViewItem::set_frame_gradient |
( |
| ) |
|
|
protectedvirtual |
void TimeAxisViewItem::set_height |
( |
double |
height | ) |
|
|
virtual |
void TimeAxisViewItem::set_item_name |
( |
std::string |
new_name, |
|
|
void * |
src |
|
) |
| |
Set the name of this item.
- Parameters
-
new_name | the new name of this item |
src | the identity of the object that initiated the change |
Definition at line 482 of file time_axis_view_item.cc.
void TimeAxisViewItem::set_max_duration |
( |
framecnt_t |
, |
|
|
void * |
|
|
) |
| |
|
virtual |
Set the maximum duration that this item can have.
- Parameters
-
dur | the new maximum duration |
src | the identity of the object that initiated the change |
Definition at line 380 of file time_axis_view_item.cc.
void TimeAxisViewItem::set_max_duration_active |
( |
bool |
active, |
|
|
void * |
|
|
) |
| |
Set whether the maximum duration constraint is active.
- Parameters
-
active | set true to enforce the max duration constraint |
src | the identity of the object that initiated the change |
Definition at line 442 of file time_axis_view_item.cc.
void TimeAxisViewItem::set_min_duration |
( |
framecnt_t |
, |
|
|
void * |
|
|
) |
| |
|
virtual |
Set the minimum duration that this item may have.
- Parameters
-
the | minimum duration that this item may be set to |
src | the identity of the object that initiated the change |
Definition at line 400 of file time_axis_view_item.cc.
void TimeAxisViewItem::set_min_duration_active |
( |
bool |
active, |
|
|
void * |
|
|
) |
| |
Set whether the minimum duration constraint is active.
- Parameters
-
active | set true to enforce the min duration constraint |
src | the identity of the object that initiated the change |
Definition at line 462 of file time_axis_view_item.cc.
void TimeAxisViewItem::set_name_text |
( |
const std::string & |
| ) |
|
Set the displayed item text. This item is the visual text name displayed on the canvas item, this can be different to the name of the item.
- Parameters
-
new_name | the new name text to display |
Definition at line 545 of file time_axis_view_item.cc.
void TimeAxisViewItem::set_name_text_color |
( |
| ) |
|
bool TimeAxisViewItem::set_position |
( |
framepos_t |
pos, |
|
|
void * |
src, |
|
|
double * |
delta = 0 |
|
) |
| |
|
virtual |
void TimeAxisViewItem::set_position_locked |
( |
bool |
yn, |
|
|
void * |
src |
|
) |
| |
|
virtual |
Set whether this item is locked to its current position. Locked items cannot be moved until the item is unlocked again.
- Parameters
-
yn | true to lock this item to its current position |
src | the identity of the object that initiated the change |
Definition at line 421 of file time_axis_view_item.cc.
void TimeAxisViewItem::set_samples_per_pixel |
( |
double |
fpp | ) |
|
|
virtual |
Set the frames per pixel of this item. This item is used to determine the relative visual size and position of this item based upon its duration and start value.
- Parameters
-
fpp | the new frames per pixel |
Reimplemented in AudioRegionView, and RegionView.
Definition at line 821 of file time_axis_view_item.cc.
void TimeAxisViewItem::set_selected |
( |
bool |
yn | ) |
|
|
virtual |
void TimeAxisViewItem::set_sensitive |
( |
bool |
yn | ) |
|
|
inline |
void TimeAxisViewItem::set_trim_handle_colors |
( |
| ) |
|
|
protected |
Set the colors of the start and end trim handle depending on object state
Definition at line 764 of file time_axis_view_item.cc.
void TimeAxisViewItem::set_y |
( |
double |
y | ) |
|
bool TimeAxisViewItem::_automation |
|
protected |
bool TimeAxisViewItem::_dragging |
|
protected |
double TimeAxisViewItem::_height |
|
protected |
bool TimeAxisViewItem::_recregion |
|
protected |
bool TimeAxisViewItem::_sensitive |
|
protected |
double TimeAxisViewItem::_width |
|
private |
sigc::signal<void,framecnt_t,void*> TimeAxisViewItem::DurationChanged |
uint32_t TimeAxisViewItem::fill_color |
|
protected |
std::string TimeAxisViewItem::fill_color_name |
|
protected |
ArdourCanvas::Rectangle* TimeAxisViewItem::frame |
|
protected |
ArdourCanvas::Rectangle* TimeAxisViewItem::frame_handle_end |
|
protected |
ArdourCanvas::Rectangle* TimeAxisViewItem::frame_handle_start |
|
protected |
const double TimeAxisViewItem::GRAB_HANDLE_TOP = 0.0 |
|
static |
const double TimeAxisViewItem::GRAB_HANDLE_WIDTH = 10.0 |
|
static |
ArdourCanvas::Container* TimeAxisViewItem::group |
|
protected |
bool TimeAxisViewItem::high_enough_for_name |
|
protected |
framecnt_t TimeAxisViewItem::item_duration |
|
protected |
std::string TimeAxisViewItem::item_name |
|
protected |
The unique item name of this Item. Each item upon a time axis must have a unique id.
Definition at line 208 of file time_axis_view_item.h.
sigc::signal<void,std::string,void*> TimeAxisViewItem::ItemRemoved |
Emitted when this Group has been removed. This is different to the CatchDeletion signal in that this signal is emitted during the deletion of this Time Axis, and not during the destructor, this allows us to capture the source of the deletion event
Definition at line 124 of file time_axis_view_item.h.
uint32_t TimeAxisViewItem::last_item_width |
|
protected |
bool TimeAxisViewItem::max_duration_active |
|
protected |
framecnt_t TimeAxisViewItem::max_item_duration |
|
protected |
sigc::signal<void,framecnt_t,void*> TimeAxisViewItem::MaxDurationChanged |
bool TimeAxisViewItem::min_duration_active |
|
protected |
framecnt_t TimeAxisViewItem::min_item_duration |
|
protected |
sigc::signal<void,framecnt_t,void*> TimeAxisViewItem::MinDurationChanged |
bool TimeAxisViewItem::name_connected |
|
protected |
Pango::FontDescription TimeAxisViewItem::NAME_FONT |
|
static |
int TimeAxisViewItem::NAME_HEIGHT |
|
static |
ArdourCanvas::Rectangle* TimeAxisViewItem::name_highlight |
|
protected |
double TimeAxisViewItem::NAME_HIGHLIGHT_SIZE |
|
static |
double TimeAxisViewItem::NAME_HIGHLIGHT_THRESH |
|
static |
ArdourCanvas::Text* TimeAxisViewItem::name_text |
|
protected |
int TimeAxisViewItem::name_text_width |
|
protected |
const double TimeAxisViewItem::NAME_X_OFFSET = 15.0 |
|
static |
double TimeAxisViewItem::NAME_Y_OFFSET |
|
static |
sigc::signal<void,std::string,std::string,void*> TimeAxisViewItem::NameChanged |
bool TimeAxisViewItem::position_locked |
|
protected |
sigc::signal<void,framepos_t,void*> TimeAxisViewItem::PositionChanged |
sigc::signal<void,bool,void*> TimeAxisViewItem::PositionLockChanged |
double TimeAxisViewItem::samples_per_pixel |
|
protected |
ArdourCanvas::Rectangle* TimeAxisViewItem::selection_frame |
|
protected |
bool TimeAxisViewItem::show_vestigial |
|
protected |
true if a small vestigial rect should be shown when the item gets very narrow
Definition at line 214 of file time_axis_view_item.h.
ArdourCanvas::Rectangle* TimeAxisViewItem::vestigial_frame |
|
protected |
bool TimeAxisViewItem::wide_enough_for_name |
|
protected |
The documentation for this class was generated from the following files: