void latency_button_clicked ();
- virtual bool on_window_show(const Glib::ustring& /*title*/) { return true; }
+ virtual bool on_window_show(const std::string& /*title*/) { return true; }
virtual void on_window_hide() {}
+ virtual void forward_key_event (GdkEventKey*) {}
+ virtual bool non_gtk_gui() const { return false; }
+
+ sigc::signal<void,bool> KeyboardFocused;
+
protected:
boost::shared_ptr<ARDOUR::PluginInsert> insert;
boost::shared_ptr<ARDOUR::Plugin> plugin;
}
};
- static const int32_t initial_button_rows = 6;
+ static const int32_t initial_button_rows = 12;
static const int32_t initial_button_cols = 1;
static const int32_t initial_output_rows = 1;
static const int32_t initial_output_cols = 4;
void resize_preferred();
void set_parent (Gtk::Window*);
- void set_title(const Glib::ustring& title);
+ void set_title(const std::string& title);
bool on_enter_notify_event (GdkEventCrossing*);
void on_map ();
private:
- Glib::ustring _title;
+ std::string _title;
PlugUIBase* _pluginui;
PBD::ScopedConnection death_connection;
Gtk::Window* parent;
Gtk::VBox vbox;
- bool non_gtk_gui;
bool was_visible;
+ bool _keyboard_focused;
+ void keyboard_focused (bool yn);
void app_activated (bool);
void plugin_going_away ();
Gtk::Socket socket;
Gtk::HBox preset_box;
Gtk::VBox vpacker;
+ Gtk::ComboBoxText vst_preset_combo;
+ Glib::RefPtr<Gtk::ListStore> preset_model;
+
+ struct PresetModelColumns : public Gtk::TreeModel::ColumnRecord {
+ PresetModelColumns() {
+ add (name);
+ add (number);
+ }
+ Gtk::TreeModelColumn<std::string> name;
+ Gtk::TreeModelColumn<int> number;
+ };
+
+ PresetModelColumns preset_columns;
bool configure_handler (GdkEventConfigure*, Gtk::Socket*);
void save_plugin_setting ();
+ void create_preset_store ();
+ void preset_chosen ();
};
#endif // VST_SUPPORT