add GUI support for Plugin Mixer Inline Display

This commit is contained in:
Robin Gareus 2016-03-14 11:48:22 +01:00
parent c32824e452
commit 9af5d17708
3 changed files with 160 additions and 0 deletions

View file

@ -216,9 +216,22 @@ private:
std::list<Control*> _controls;
void toggle_inline_display_visibility ();
void toggle_control_visibility (Control *);
void toggle_panner_link ();
class PluginDisplay : public Gtk::DrawingArea {
public:
PluginDisplay(boost::shared_ptr<ARDOUR::Plugin>, uint32_t max_height = 80);
private:
bool on_expose_event (GdkEventExpose *);
void on_size_request (Gtk::Requisition* req);
boost::shared_ptr<ARDOUR::Plugin> _plug;
PBD::ScopedConnection _qdraw_connection;
uint32_t _max_height;
uint32_t _cur_height;
};
class PortIcon : public Gtk::DrawingArea {
public:
PortIcon(bool input);
@ -252,6 +265,7 @@ protected:
RoutingIcon _routing_icon;
PortIcon _input_icon;
PortIcon _output_icon;
PluginDisplay *_plugin_display ;
};
class PluginInsertProcessorEntry : public ProcessorEntry