+ 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;
+
+ bool resizable;
+ int req_width;
+ int req_height;
+
+ /* Cocoa */
+
+ NSWindow* cocoa_window;
+ NSView* au_view;
+ NSRect last_au_frame;
+ bool in_live_resize;
+ uint32_t plugin_requested_resize;
+
+ /* Carbon */
+
+ NSWindow* cocoa_parent;
+ ComponentDescription carbon_descriptor;
+ AudioUnitCarbonView editView;
+ WindowRef carbon_window;
+ EventHandlerRef carbon_event_handler;
+ bool _activating_from_app;
+
+ /* Generic */
+
+ NotificationObject* _notify;
+ LiveResizeNotificationObject* _resize_notify;
+
+ bool test_cocoa_view_support ();
+ bool test_carbon_view_support ();
+ int create_carbon_view ();
+ int create_cocoa_view ();
+
+ int parent_carbon_window ();
+ int parent_cocoa_window ();
+ NSWindow* get_nswindow();
+
+ void update_view_size ();
+
+ bool plugin_class_valid (Class pluginClass);
+
+ friend void au_cf_timer_callback (CFRunLoopTimerRef timer, void* info);
+ static CFRunLoopTimerRef cf_timer;
+ static void cf_timer_callback ();
+ static int64_t last_timer;
+ static bool timer_needed;
+ static uint64_t timer_callbacks;
+ static uint64_t timer_out_of_range;
+
+ static bool timer_callback ();
+ static sigc::connection timer_connection;
+
+ public:
+ static void start_cf_timer ();
+ static void stop_cf_timer ();