blob: fc46ede8a3adb91bdd4a954828e1dfa69d3c4066 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
#ifndef __lxvst_plugin_ui_h__
#define __lxvst_plugin_ui_h__
#include <vector>
#include <map>
#include <list>
#include <sigc++/signal.h>
#include <gtkmm/widget.h>
#include <ardour_dialog.h>
#include <ardour/types.h>
#include "plugin_ui.h"
#ifdef LXVST_SUPPORT
namespace ARDOUR {
class PluginInsert;
class LXVSTPlugin;
}
class LXVSTPluginUI : public PlugUIBase, public Gtk::VBox
{
public:
LXVSTPluginUI (boost::shared_ptr<ARDOUR::PluginInsert>, boost::shared_ptr<ARDOUR::LXVSTPlugin>);
~LXVSTPluginUI ();
gint get_preferred_height ();
gint get_preferred_width ();
bool start_updating(GdkEventAny*);
bool stop_updating(GdkEventAny*);
int package (Gtk::Window&);
void forward_key_event (GdkEventKey *);
bool non_gtk_gui() const { return true; }
private:
boost::shared_ptr<ARDOUR::LXVSTPlugin> lxvst;
Gtk::Socket socket;
Gtk::HBox preset_box;
Gtk::VBox vpacker;
sigc::connection _screen_update_connection;
bool configure_handler (GdkEventConfigure*, Gtk::Socket*);
void save_plugin_setting ();
struct PresetModelColumns : public Gtk::TreeModel::ColumnRecord {
PresetModelColumns() {
add (name);
add (number);
}
Gtk::TreeModelColumn<Glib::ustring> name;
Gtk::TreeModelColumn<int> number;
};
PresetModelColumns preset_columns;
Glib::RefPtr<Gtk::ListStore> preset_model;
Gtk::ComboBox lxvst_preset_combo;
void create_preset_store ();
void preset_chosen ();
void preset_selected ();
void resize_callback();
};
#endif //LXVST_SUPPORT
#endif
|