diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-07-10 12:38:36 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-27 14:59:31 -0500 |
commit | 268945850033200d57a89fb33e00136c03711f2a (patch) | |
tree | 228f04081285b46c089f60fff06ded6b49f87711 /libs/surfaces/push2/push2.h | |
parent | 64d390ff13cc3429dac9416f4cba0d95b838deca (diff) |
push2: rearrange and separate header file material
Diffstat (limited to 'libs/surfaces/push2/push2.h')
-rw-r--r-- | libs/surfaces/push2/push2.h | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/libs/surfaces/push2/push2.h b/libs/surfaces/push2/push2.h index 3a1f33861f..1132435318 100644 --- a/libs/surfaces/push2/push2.h +++ b/libs/surfaces/push2/push2.h @@ -532,92 +532,6 @@ class Push2 : public ARDOUR::ControlProtocol void set_percussive_mode (bool); }; -class Push2Layout -{ - public: - Push2Layout (Push2& p, ARDOUR::Session& s); - virtual ~Push2Layout (); - - bool mapped() const; - - virtual bool redraw (Cairo::RefPtr<Cairo::Context>) const = 0; - - virtual void button_upper (uint32_t n) {} - virtual void button_lower (uint32_t n) {} - virtual void button_up () {} - virtual void button_down () {} - virtual void button_right () {} - virtual void button_left () {} - virtual void button_select_press () {} - virtual void button_select_release () {} - - virtual void strip_vpot (int, int) = 0; - virtual void strip_vpot_touch (int, bool) = 0; - - protected: - Push2& p2; - ARDOUR::Session& session; -}; - - -class MixLayout : public Push2Layout -{ - public: - MixLayout (Push2& p, ARDOUR::Session&, Cairo::RefPtr<Cairo::Context>); - ~MixLayout (); - - bool redraw (Cairo::RefPtr<Cairo::Context>) const; - - void button_upper (uint32_t n); - void button_lower (uint32_t n); - void button_left (); - void button_right (); - void button_select_press (); - void button_select_release (); - - void strip_vpot (int, int); - void strip_vpot_touch (int, bool); - - private: - Glib::RefPtr<Pango::Layout> tc_clock_layout; - Glib::RefPtr<Pango::Layout> bbt_clock_layout; - Glib::RefPtr<Pango::Layout> upper_layout[8]; - Glib::RefPtr<Pango::Layout> mid_layout[8]; - Glib::RefPtr<Pango::Layout> lower_layout[8]; - - /* stripables */ - - int32_t bank_start; - PBD::ScopedConnectionList stripable_connections; - boost::shared_ptr<ARDOUR::Stripable> stripable[8]; - - void solo_change (int); - void mute_change (int); - - void stripable_property_change (PBD::PropertyChange const& what_changed, int which); - - void switch_bank (uint32_t base); -}; - -class ScaleLayout : public Push2Layout -{ - public: - ScaleLayout (Push2& p, ARDOUR::Session&, Cairo::RefPtr<Cairo::Context>); - ~ScaleLayout (); - - bool redraw (Cairo::RefPtr<Cairo::Context>) const; - - void button_upper (uint32_t n); - void button_lower (uint32_t n); - - void strip_vpot (int, int); - void strip_vpot_touch (int, bool); - - private: - Push2Menu* scale_menu; - void build_scale_menu (Cairo::RefPtr<Cairo::Context>); -}; - } /* namespace */ #endif /* __ardour_push2_h__ */ |