#include <sigc++/signal.h>
-#include <gtkmm/button.h>
+#include <gtkmm/adjustment.h>
#include <gtkmm/box.h>
-#include <gtkmm/table.h>
+#include <gtkmm/button.h>
#include <gtkmm/eventbox.h>
-#include <gtkmm/viewport.h>
-#include <gtkmm/scrolledwindow.h>
+#include <gtkmm/expander.h>
+#include <gtkmm/filechooserbutton.h>
+#include <gtkmm/image.h>
#include <gtkmm/label.h>
#include <gtkmm/menu.h>
-#include <gtkmm/image.h>
-#include <gtkmm/adjustment.h>
-#include <gtkmm/togglebutton.h>
-#include <gtkmm/socket.h>
+#include <gtkmm/scrolledwindow.h>
#include <gtkmm/socket.h>
+#include <gtkmm/table.h>
+#include <gtkmm/togglebutton.h>
+#include <gtkmm/viewport.h>
#include "ardour/types.h"
#include "ardour/plugin.h"
#include "ardour/variant.h"
-#include "ardour_button.h"
-#include "ardour_dropdown.h"
-#include "ardour_spinner.h"
+#include "widgets/ardour_button.h"
+#include "widgets/ardour_dropdown.h"
+#include "widgets/ardour_spinner.h"
+
#include "ardour_window.h"
#include "automation_controller.h"
class Controllable;
}
-namespace Gtkmm2ext {
- class HSliderController;
- class BarController;
+namespace ArdourWidgets {
class ClickBox;
class FastMeter;
- class PixmapButton;
}
class LatencyGUI;
class ArdourWindow;
class PluginEqGui;
+class VSTPluginUI;
class PlugUIBase : public virtual sigc::trackable, public PBD::ScopedConnectionList
{
- public:
+public:
PlugUIBase (boost::shared_ptr<ARDOUR::PluginInsert>);
virtual ~PlugUIBase();
virtual void forward_key_event (GdkEventKey*) {}
virtual void grab_focus () {}
- virtual bool non_gtk_gui() const { return false; }
+ virtual bool non_gtk_gui() const { return false; }
sigc::signal<void,bool> KeyboardFocused;
- protected:
+protected:
boost::shared_ptr<ARDOUR::PluginInsert> insert;
boost::shared_ptr<ARDOUR::Plugin> plugin;
/* UI elements that can subclasses can add to their widgets */
/** a ComboBoxText which lists presets and manages their selection */
- ArdourDropdown _preset_combo;
+ ArdourWidgets::ArdourDropdown _preset_combo;
/** a label which has a * in if the current settings are different from the preset being shown */
Gtk::Label _preset_modified;
/** a button to add a preset */
- ArdourButton add_button;
+ ArdourWidgets::ArdourButton add_button;
/** a button to save the current settings as a new user preset */
- ArdourButton save_button;
+ ArdourWidgets::ArdourButton save_button;
/** a button to delete the current preset (if it is a user one) */
- ArdourButton delete_button;
+ ArdourWidgets::ArdourButton delete_button;
/** a button to delete the reset the plugin params */
- ArdourButton reset_button;
+ ArdourWidgets::ArdourButton reset_button;
/** a button to bypass the plugin */
- ArdourButton bypass_button;
+ ArdourWidgets::ArdourButton bypass_button;
/** and self-explaining button :) */
- ArdourButton pin_management_button;
+ ArdourWidgets::ArdourButton pin_management_button;
/** a button to acquire keyboard focus */
Gtk::EventBox focus_button;
/** an expander containing the plugin description */
/** an expander containing the plugin analysis graph */
Gtk::Expander plugin_analysis_expander;
/** a button which, when clicked, opens the latency GUI */
- ArdourButton latency_button;
+ ArdourWidgets::ArdourButton latency_button;
/** a button which sets all controls' automation setting to Manual */
- ArdourButton automation_manual_all_button;
+ ArdourWidgets::ArdourButton automation_manual_all_button;
/** a button which sets all controls' automation setting to Play */
- ArdourButton automation_play_all_button;
- /** a button which sets all controls' automation setting to Write */
- ArdourButton automation_write_all_button;
+ ArdourWidgets::ArdourButton automation_play_all_button;
+ /** a button which sets all controls' automation setting to Write */
+ ArdourWidgets::ArdourButton automation_write_all_button;
/** a button which sets all controls' automation setting to Touch */
- ArdourButton automation_touch_all_button;
+ ArdourWidgets::ArdourButton automation_touch_all_button;
void set_latency_label ();
class GenericPluginUI : public PlugUIBase, public Gtk::VBox
{
- public:
+public:
GenericPluginUI (boost::shared_ptr<ARDOUR::PluginInsert> plug, bool scrollable=false);
~GenericPluginUI ();
bool start_updating(GdkEventAny*);
bool stop_updating(GdkEventAny*);
- private:
+private:
Gtk::VBox main_contents;
Gtk::HBox settings_box;
Gtk::HBox hpacker;
bool is_scrollable;
struct MeterInfo {
- Gtkmm2ext::FastMeter *meter;
-
- float min;
- float max;
- bool min_unbound;
- bool max_unbound;
+ ArdourWidgets::FastMeter* meter;
bool packed;
MeterInfo () {
meter = 0;
packed = false;
- min = 1.0e10;
- max = -1.0e10;
- min_unbound = false;
- max_unbound = false;
}
};
boost::shared_ptr<ARDOUR::ScalePoints> scale_points;
boost::shared_ptr<AutomationController> controller;
- ArdourButton automate_button;
+ ArdourWidgets::ArdourButton automate_button;
Gtk::Label label;
- ArdourDropdown* combo;
- Gtkmm2ext::ClickBox* clickbox;
+ ArdourWidgets::ArdourDropdown* combo;
+ ArdourWidgets::ClickBox* clickbox;
Gtk::FileChooserButton* file_button;
- ArdourSpinner* spin_box;
+ ArdourWidgets::ArdourSpinner* spin_box;
bool button;
bool update_pending;
class PluginUIWindow : public ArdourWindow
{
- public:
+public:
PluginUIWindow (boost::shared_ptr<ARDOUR::PluginInsert> insert,
bool scrollable=false,
bool editor=true);
void on_show ();
void on_hide ();
- private:
+private:
std::string _title;
PlugUIBase* _pluginui;
PBD::ScopedConnection death_connection;
bool was_visible;
bool _keyboard_focused;
#ifdef AUDIOUNIT_SUPPORT
- int pre_deactivate_x;
- int pre_deactivate_y;
+ int pre_deactivate_x;
+ int pre_deactivate_y;
#endif
void keyboard_focused (bool yn);
bool create_windows_vst_editor (boost::shared_ptr<ARDOUR::PluginInsert>);
bool create_lxvst_editor(boost::shared_ptr<ARDOUR::PluginInsert>);
+ bool create_mac_vst_editor(boost::shared_ptr<ARDOUR::PluginInsert>);
bool create_audiounit_editor (boost::shared_ptr<ARDOUR::PluginInsert>);
bool create_lv2_editor (boost::shared_ptr<ARDOUR::PluginInsert>);
};
+#ifdef MACVST_SUPPORT
+/* this function has to be in a .mm file
+ * because MacVSTPluginUI has Cocoa members
+ */
+extern VSTPluginUI* create_mac_vst_gui (boost::shared_ptr<ARDOUR::PluginInsert>);
+#endif
+
#ifdef AUDIOUNIT_SUPPORT
/* this function has to be in a .mm file */
extern PlugUIBase* create_au_gui (boost::shared_ptr<ARDOUR::PluginInsert>, Gtk::VBox**);