X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fgain_meter.h;h=cd8c1b552f380e6a18b0be1e959e27ca483a8390;hb=a79fe239355b8c6f4e86da2eb1eec43c6c4dd052;hp=fb87b1b5de32503694b88b24ddeae08f7f463118;hpb=585fa4302fec2bad2d671267e89cee8729d65db8;p=ardour.git diff --git a/gtk2_ardour/gain_meter.h b/gtk2_ardour/gain_meter.h index fb87b1b5de..cd8c1b552f 100644 --- a/gtk2_ardour/gain_meter.h +++ b/gtk2_ardour/gain_meter.h @@ -23,14 +23,16 @@ #include #include -#include #include -#include -#include +#include +#include #include -#include #include -#include +#include +#include +#include + +//#include #include "pbd/signals.h" @@ -38,11 +40,9 @@ #include "ardour/types.h" #include "ardour/session_handle.h" -#include "ardour_button.h" - -#include "gtkmm2ext/click_box.h" -#include "gtkmm2ext/focus_entry.h" -#include "gtkmm2ext/slider_controller.h" +#include "widgets/ardour_button.h" +#include "widgets/focus_entry.h" +#include "widgets/slider_controller.h" #include "enums.h" #include "level_meter.h" @@ -57,9 +57,7 @@ namespace ARDOUR { class Amp; class Automatable; } -namespace Gtkmm2ext { - class FastMeter; -} + namespace Gtk { class Menu; } @@ -72,12 +70,12 @@ enum MeterPointChangeTarget { class GainMeterBase : virtual public sigc::trackable, ARDOUR::SessionHandlePtr { - public: - GainMeterBase (ARDOUR::Session*, bool horizontal, int, int); +public: + GainMeterBase (ARDOUR::Session*, bool horizontal, int, int); virtual ~GainMeterBase (); virtual void set_controls (boost::shared_ptr route, - boost::shared_ptr meter, + boost::shared_ptr meter, boost::shared_ptr amp, boost::shared_ptr control); @@ -97,7 +95,7 @@ class GainMeterBase : virtual public sigc::trackable, ARDOUR::SessionHandlePtr boost::shared_ptr get_controllable(); LevelMeterHBox& get_level_meter() const { return *level_meter; } - Gtkmm2ext::SliderController& get_gain_slider() const { return *gain_slider; } + ArdourWidgets::SliderController& get_gain_slider() const { return *gain_slider; } /** Emitted in the GUI thread when a button is pressed over the level meter; * return true if the event is handled. @@ -108,15 +106,12 @@ class GainMeterBase : virtual public sigc::trackable, ARDOUR::SessionHandlePtr static std::string short_astate_string (ARDOUR::AutoState); static std::string _astate_string (ARDOUR::AutoState, bool); - static std::string astyle_string (ARDOUR::AutoStyle); - static std::string short_astyle_string (ARDOUR::AutoStyle); - static std::string _astyle_string (ARDOUR::AutoStyle, bool); - - protected: +protected: friend class MixerStrip; friend class MeterStrip; friend class RouteTimeAxisView; + friend class VCAMasterStrip; boost::shared_ptr _route; boost::shared_ptr _meter; boost::shared_ptr _amp; @@ -127,25 +122,22 @@ class GainMeterBase : virtual public sigc::trackable, ARDOUR::SessionHandlePtr bool ignore_toggle; bool next_release_selects; - Gtkmm2ext::SliderController *gain_slider; - Gtk::Adjustment gain_adjustment; - Gtkmm2ext::FocusEntry gain_display; - Gtkmm2ext::FocusEntry peak_display; -// Gtk::Button peak_display; - Gtk::DrawingArea meter_metric_area; - Gtk::DrawingArea meter_ticks1_area; - Gtk::DrawingArea meter_ticks2_area; - LevelMeterHBox *level_meter; + ArdourWidgets::SliderController* gain_slider; + Gtk::Adjustment gain_adjustment; + ArdourWidgets::FocusEntry gain_display; + ArdourWidgets::FocusEntry peak_display; + Gtk::DrawingArea meter_metric_area; + Gtk::DrawingArea meter_ticks1_area; + Gtk::DrawingArea meter_ticks2_area; + LevelMeterHBox* level_meter; sigc::connection gain_watching; - ArdourButton gain_automation_style_button; - ArdourButton gain_automation_state_button; + ArdourWidgets::ArdourButton gain_automation_state_button; Gtk::Menu gain_astate_menu; - Gtk::Menu gain_astyle_menu; - ArdourButton meter_point_button; + ArdourWidgets::ArdourButton meter_point_button; Gtk::Menu meter_point_menu; @@ -153,13 +145,10 @@ class GainMeterBase : virtual public sigc::trackable, ARDOUR::SessionHandlePtr bool gain_astate_propagate; static sigc::signal ChangeGainAutomationState; - gint gain_automation_style_button_event (GdkEventButton *); gint gain_automation_state_button_event (GdkEventButton *); - gint pan_automation_style_button_event (GdkEventButton *); gint pan_automation_state_button_event (GdkEventButton *); void gain_automation_state_changed(); - void gain_automation_style_changed(); void setup_gain_adjustment (); Width _width; @@ -222,9 +211,9 @@ class GainMeter : public GainMeterBase, public Gtk::VBox virtual ~GainMeter (); virtual void set_controls (boost::shared_ptr route, - boost::shared_ptr meter, + boost::shared_ptr meter, boost::shared_ptr amp, - boost::shared_ptr control); + boost::shared_ptr control); int get_gm_width (); void setup_meters (int len=0);