summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_axis_view_item.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-06-01 17:00:29 +0000
committerDavid Robillard <d@drobilla.net>2011-06-01 17:00:29 +0000
commited626628b54e67dd9621c08d82a42afaed00c7ac (patch)
treecf621db4c44f07f75a6e6a3fb7f572cd2c3622cd /gtk2_ardour/time_axis_view_item.h
parenta473d630eb165272992e90f8d854b1d66ec0be63 (diff)
Delete trailing whitespace
git-svn-id: svn://localhost/ardour2/branches/3.0@9656 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_axis_view_item.h')
-rw-r--r--gtk2_ardour/time_axis_view_item.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/gtk2_ardour/time_axis_view_item.h b/gtk2_ardour/time_axis_view_item.h
index dedc4a0485..e7384a8f85 100644
--- a/gtk2_ardour/time_axis_view_item.h
+++ b/gtk2_ardour/time_axis_view_item.h
@@ -85,7 +85,7 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList
virtual void hide_rect ();
virtual void show_rect ();
-
+
/** @return true if the name area should respond to events */
bool name_active() const { return name_connected; }
@@ -94,7 +94,7 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList
static void set_constant_heights ();
static const double NAME_X_OFFSET;
static const double GRAB_HANDLE_LENGTH;
-
+
/* these are not constant, but vary with the pixel size
of the font used to display the item name.
*/
@@ -115,22 +115,22 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList
/** Emitted when the name of this item is changed */
sigc::signal<void,std::string,std::string,void*> NameChanged;
-
+
/** Emiited when the position of this item changes */
sigc::signal<void,framepos_t,void*> PositionChanged;
-
+
/** Emitted when the position lock of this item is changed */
sigc::signal<void,bool,void*> PositionLockChanged;
-
+
/** Emitted when the duration of this item changes */
sigc::signal<void,framecnt_t,void*> DurationChanged;
-
+
/** Emitted when the maximum item duration is changed */
sigc::signal<void,framecnt_t,void*> MaxDurationChanged;
-
+
/** Emitted when the mionimum item duration is changed */
sigc::signal<void,framecnt_t,void*> MinDurationChanged;
-
+
enum Visibility {
ShowFrame = 0x1,
ShowNameHighlight = 0x2,
@@ -141,13 +141,13 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList
HideFrameTB = 0x40,
FullWidthNameHighlight = 0x80
};
-
+
protected:
TimeAxisViewItem(const std::string &, ArdourCanvas::Group&, TimeAxisView&, double, Gdk::Color const &,
framepos_t, framepos_t, bool recording = false, bool automation = false, Visibility v = Visibility (0));
-
+
TimeAxisViewItem (const TimeAxisViewItem&);
-
+
void init (const std::string&, double, Gdk::Color const &, framepos_t, framepos_t, Visibility, bool, bool);
virtual void compute_colors (Gdk::Color const &);
@@ -158,39 +158,39 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList
virtual void reset_width_dependent_items (double);
void reset_name_width (double);
void update_name_pixbuf_visibility ();
-
+
static gint idle_remove_this_item(TimeAxisViewItem*, void*);
-
+
/** time axis that this item is on */
TimeAxisView& trackview;
-
+
/** indicates whether this item is locked to its current position */
bool position_locked;
-
+
/** position of this item on the timeline */
framepos_t frame_position;
/** duration of this item upon the timeline */
framecnt_t item_duration;
-
+
/** maximum duration that this item can have */
framecnt_t max_item_duration;
-
+
/** minimum duration that this item can have */
framecnt_t min_item_duration;
-
+
/** indicates whether the max duration constraint is active */
bool max_duration_active;
-
+
/** indicates whether the min duration constraint is active */
bool min_duration_active;
-
+
/** samples per canvas unit */
double samples_per_unit;
/** should the item respond to events */
bool _sensitive;
-
+
/**
* The unique item name of this Item.
* Each item upon a time axis must have a unique id.
@@ -212,7 +212,7 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList
uint32_t selected_frame_color_g;
uint32_t selected_frame_color_b;
uint32_t label_color;
-
+
uint32_t handle_color_r;
uint32_t handle_color_g;
uint32_t handle_color_b;
@@ -234,16 +234,16 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList
/* with these two values, if frame_handle_start == 0 then frame_handle_end will also be 0 */
ArdourCanvas::SimpleRect* frame_handle_start; ///< `frame' (fade) handle for the start of the item, or 0
ArdourCanvas::SimpleRect* frame_handle_end; ///< `frame' (fade) handle for the end of the item, or 0
-
+
double _height;
Visibility visibility;
bool _recregion;
bool _automation; ///< true if this is an automation region view
private:
-
+
void parameter_changed (std::string);
-
+
}; /* class TimeAxisViewItem */
#endif /* __gtk_ardour_time_axis_view_item_h__ */