#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 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;
+ ArdourWidgets::ArdourButton automation_play_all_button;
/** a button which sets all controls' automation setting to Write */
- ArdourButton automation_write_all_button;
+ 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;
+ ArdourWidgets::FastMeter* meter;
bool packed;
MeterInfo () {
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;