diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-05-02 20:02:48 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-05-02 20:02:48 +0000 |
commit | 20157d04f8a5f8f7e24bd450f3a2961b4e251570 (patch) | |
tree | 547ba49d95bb6bea07239c60ccfe849ef406b872 /gtk2_ardour/time_axis_view.h | |
parent | 88707bf3bbb9b2ac39fc1c5521a4c2ed9dc6eba4 (diff) |
many changes related to region zooming; proto-visual state undo/redo stack; fill-tracks command steals "f" (follow-playhead now on shift-f
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3306 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_axis_view.h')
-rw-r--r-- | gtk2_ardour/time_axis_view.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gtk2_ardour/time_axis_view.h b/gtk2_ardour/time_axis_view.h index 7fa138dc39..ec11f6dfdb 100644 --- a/gtk2_ardour/time_axis_view.h +++ b/gtk2_ardour/time_axis_view.h @@ -32,6 +32,8 @@ #include <gtkmm2ext/focus_entry.h> +#include <pbd/stateful.h> + #include <ardour/types.h> #include <ardour/region.h> @@ -68,7 +70,7 @@ class Selectable; * extended to create functional time-axis based views. * */ -class TimeAxisView : public virtual AxisView +class TimeAxisView : public virtual AxisView, public Stateful { private: enum NamePackingBits { @@ -87,11 +89,13 @@ class TimeAxisView : public virtual AxisView TimeAxisView(ARDOUR::Session& sess, PublicEditor& ed, TimeAxisView* parent, ArdourCanvas::Canvas& canvas); virtual ~TimeAxisView (); + XMLNode& get_state (void); + int set_state (const XMLNode&); + /* public data: XXX create accessor/mutators for these ?? */ PublicEditor& editor; - uint32_t height; /* in canvas units */ uint32_t effective_height; /* in canvas units */ double height_scaling_factor; /* used to zoom the track height without changing it */ double y_position; @@ -221,14 +225,12 @@ class TimeAxisView : public virtual AxisView void set_parent (TimeAxisView& p); bool has_state () const; - virtual void set_state (const XMLNode&); - virtual XMLNode* get_state_node () { return 0; } - /* call this on the parent */ virtual XMLNode* get_child_xml_node (const string & childname) { return 0; } protected: + uint32_t height; /* in canvas units */ string controls_base_unselected_name; string controls_base_selected_name; |