summaryrefslogtreecommitdiffstats
path: root/src/PatchageModule.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-10-02 20:56:28 +0000
committerDavid Robillard <d@drobilla.net>2006-10-02 20:56:28 +0000
commit682a43546becbc86a210003846778ebb0c38718a (patch)
tree319e4b01347490d43a20e6ccc6b85cef94ee5288 /src/PatchageModule.h
parent5812053fd22499251e2e2cedaa90fdd80c0d0988 (diff)
downloadpatchage-682a43546becbc86a210003846778ebb0c38718a.tar.gz
patchage-682a43546becbc86a210003846778ebb0c38718a.tar.bz2
patchage-682a43546becbc86a210003846778ebb0c38718a.zip
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
Diffstat (limited to 'src/PatchageModule.h')
-rw-r--r--src/PatchageModule.h12
1 files changed, 6 insertions, 6 deletions
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();
}