diff options
author | Carl Hetherington <carl@carlh.net> | 2011-10-19 16:53:36 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-10-19 16:53:36 +0000 |
commit | 153ee4e441eeebc9aceaa3121e4a785c6011a962 (patch) | |
tree | dea646c4907092772834b1b8b01df28a5eca9c72 /gtk2_ardour/processor_box.h | |
parent | a9ebb3576e53c30b27016a442168daf8e9880707 (diff) |
Fix insertion of processors at the point at which the processor menu was opened; give a visual cue to indicate where a processor will be inserted. Kind of experimental.
git-svn-id: svn://localhost/ardour2/branches/3.0@10236 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/processor_box.h')
-rw-r--r-- | gtk2_ardour/processor_box.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/processor_box.h b/gtk2_ardour/processor_box.h index 17fb494268..eabe32a631 100644 --- a/gtk2_ardour/processor_box.h +++ b/gtk2_ardour/processor_box.h @@ -240,7 +240,10 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD boost::shared_ptr<ARDOUR::Processor> _processor_being_created; - ARDOUR::Placement _placement; + /** Index at which to place a new plugin (based on where the menu was opened), or -1 to + * put at the end of the plugin list. + */ + int _placement; RouteRedirectSelection& _rr_selection; @@ -265,7 +268,7 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD gint processor_menu_map_handler (GdkEventAny *ev); Gtk::Menu * build_processor_menu (); void build_processor_tooltip (Gtk::EventBox&, std::string); - void show_processor_menu (gint arg); + void show_processor_menu (int); Gtk::Menu* build_possible_aux_menu(); void choose_aux (boost::weak_ptr<ARDOUR::Route>); @@ -289,6 +292,7 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD void reordered (); void report_failed_reorder (); void route_processors_changed (ARDOUR::RouteProcessorChange); + void processor_menu_unmapped (); void processors_reordered (const Gtk::TreeModel::Path&, const Gtk::TreeModel::iterator&, int*); void compute_processor_sort_keys (); |