From 268945850033200d57a89fb33e00136c03711f2a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 10 Jul 2016 12:38:36 -0400 Subject: push2: rearrange and separate header file material --- libs/surfaces/push2/push2.h | 86 --------------------------------------------- 1 file changed, 86 deletions(-) (limited to 'libs/surfaces/push2/push2.h') 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) 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); - ~MixLayout (); - - bool redraw (Cairo::RefPtr) 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 tc_clock_layout; - Glib::RefPtr bbt_clock_layout; - Glib::RefPtr upper_layout[8]; - Glib::RefPtr mid_layout[8]; - Glib::RefPtr lower_layout[8]; - - /* stripables */ - - int32_t bank_start; - PBD::ScopedConnectionList stripable_connections; - boost::shared_ptr 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); - ~ScaleLayout (); - - bool redraw (Cairo::RefPtr) 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); -}; - } /* namespace */ #endif /* __ardour_push2_h__ */ -- cgit v1.2.3