diff options
author | Carl Hetherington <carl@carlh.net> | 2011-01-14 15:48:45 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-01-14 15:48:45 +0000 |
commit | 93b25e1f1332bdd9350210047dd791358f2037e6 (patch) | |
tree | 461f9fb8d2703e9000b2e923a6cdb11b9b66c696 /gtk2_ardour/processor_box.h | |
parent | db847eea33f170c364b1b3982d7cf7b825afb2a1 (diff) |
Tweak colouring in the processor list.
git-svn-id: svn://localhost/ardour2/branches/3.0@8507 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/processor_box.h')
-rw-r--r-- | gtk2_ardour/processor_box.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gtk2_ardour/processor_box.h b/gtk2_ardour/processor_box.h index 03ed8eb148..f348569f71 100644 --- a/gtk2_ardour/processor_box.h +++ b/gtk2_ardour/processor_box.h @@ -106,6 +106,15 @@ public: Gtk::EventBox& action_widget (); Gtk::Widget& widget (); std::string drag_text () const; + void set_visual_state (Gtk::StateType); + + enum Position { + PreFader, + Fader, + PostFader + }; + + void set_position (Position); boost::shared_ptr<ARDOUR::Processor> processor () const; void set_enum_width (Width); virtual void set_pixel_width (int) {} @@ -120,6 +129,7 @@ private: void processor_active_changed (); void processor_property_changed (const PBD::PropertyChange&); std::string name () const; + void setup_visuals (); Gtk::Frame _frame; Gtk::EventBox _event_box; @@ -128,6 +138,8 @@ private: Gtk::CheckButton _active; boost::shared_ptr<ARDOUR::Processor> _processor; Width _width; + Gtk::StateType _visual_state; + Position _position; PBD::ScopedConnection active_connection; PBD::ScopedConnection name_connection; }; @@ -293,7 +305,7 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD void weird_plugin_dialog (ARDOUR::Plugin& p, ARDOUR::Route::ProcessorStreams streams); void on_size_allocate (Gtk::Allocation &); - void setup_entry_widget_names (); + void setup_entry_positions (); static ProcessorBox* _current_processor_box; |