From 682a43546becbc86a210003846778ebb0c38718a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 2 Oct 2006 20:56:28 +0000 Subject: boost::shared_ptr-ification of FlowCanvas. Extreme performance enhancements in Patchage (eg don't redraw the whole canvas every time). Patchage work towards being a control centre. Broken commit (ingen doesn't even compile) for machine transfer, don't even bother trying this revision. git-svn-id: http://svn.drobilla.net/lad/patchage@147 a436a847-0d15-0410-975c-d299462d15a1 --- src/PatchageModule.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/PatchageModule.h') diff --git a/src/PatchageModule.h b/src/PatchageModule.h index 4400a68..58fa096 100644 --- a/src/PatchageModule.h +++ b/src/PatchageModule.h @@ -35,7 +35,7 @@ class PatchageModule : public Module { public: PatchageModule(Patchage* app, const string& title, ModuleType type, double x=0, double y=0) - : Module(app->canvas(), title, x, y), + : Module(*app->canvas(), title, x, y), m_app(app), m_type(type) { @@ -53,7 +53,7 @@ public: virtual ~PatchageModule() { } - virtual void add_patchage_port(const string& port_name, bool is_input, PortType type) + /*virtual void add_patchage_port(const string& port_name, bool is_input, PortType type) { new PatchagePort(this, type, port_name, is_input, m_app->state_manager()->get_port_color(type)); @@ -68,7 +68,7 @@ public: port->alsa_addr(addr); resize(); - } + }*/ virtual void load_location() { @@ -79,8 +79,8 @@ public: if (loc.x != -1) move_to(loc.x, loc.y); else - move_to((m_canvas->width()/2) - 100 + rand() % 400, - (m_canvas->height()/2) - 100 + rand() % 400); + move_to((m_canvas.width()/2) - 100 + rand() % 400, + (m_canvas.height()/2) - 100 + rand() % 400); } void split() { @@ -103,7 +103,7 @@ public: virtual void show_dialog() {} virtual void on_right_click(GdkEventButton* ev) { m_menu.popup(ev->button, ev->time); } virtual void menu_disconnect_all() { - for (PortList::iterator p = m_ports.begin(); p != m_ports.end(); ++p) + for (PortVector::iterator p = m_ports.begin(); p != m_ports.end(); ++p) (*p)->disconnect_all(); } -- cgit v1.2.1