always compute range for a redirect automation line, even if it will not be drawn...
[ardour.git] / gtk2_ardour / au_pluginui.h
index a1ee63be77a4a103863ba7d1f6ef7a19acf6d99a..2f7e5a1f90797d112cd0be5a7a04ebcbf782fe42 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef __gtk2_ardour_auplugin_ui_h__
 #define __gtk2_ardour_auplugin_ui_h__
 
+#include <vector>
+#include <string>
+
 #include <AppKit/AppKit.h>
 #include <Carbon/Carbon.h>
 #include <AudioUnit/AudioUnitCarbonView.h>
 #undef verify
 
 #include <gtkmm/box.h>
+#include <gtkmm/combobox.h>
+#include <gtkmm/button.h>
+#include <gtkmm/label.h>
+
 #include "plugin_ui.h"
 
 namespace ARDOUR {
@@ -32,9 +39,9 @@ class AUPluginUI : public PlugUIBase, public Gtk::VBox
        bool start_updating(GdkEventAny*);
        bool stop_updating(GdkEventAny*);
        
-       virtual void activate ();
-       virtual void deactivate ();
-       
+       void activate ();
+       void deactivate ();
+
        void lower_box_realized ();
        void on_realize ();
        void on_show ();
@@ -49,10 +56,15 @@ class AUPluginUI : public PlugUIBase, public Gtk::VBox
        boost::shared_ptr<ARDOUR::AUPlugin> au;
        int prefheight;
        int prefwidth;
-       
+
        Gtk::HBox     top_box;
        Gtk::EventBox low_box;
        Gtk::VBox vpacker;
+       Gtk::Label automation_mode_label;
+       Gtk::ComboBoxText automation_mode_selector;
+       Gtk::Label preset_label;
+
+       static std::vector<std::string> automation_mode_strings;
 
        /* Cocoa */
 
@@ -68,6 +80,7 @@ class AUPluginUI : public PlugUIBase, public Gtk::VBox
        WindowRef            carbon_window;     
        EventHandlerRef      carbon_event_handler;
        bool                 _activating_from_app;
+       NSView*              packView;
 
        bool test_cocoa_view_support ();
        bool test_carbon_view_support ();