diff options
author | David Robillard <d@drobilla.net> | 2011-12-06 21:01:38 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-06 21:01:38 +0000 |
commit | fd04fe7efcf0434a3c6a35fd2a65c775fb383bd0 (patch) | |
tree | 4c5b8791f19bcda81060077f2880b30ae4cae4b7 /src/gui/Port.cpp | |
parent | a5f256cf923d165afd273914a13726d745a59cbc (diff) | |
download | ingen-fd04fe7efcf0434a3c6a35fd2a65c775fb383bd0.tar.gz ingen-fd04fe7efcf0434a3c6a35fd2a65c775fb383bd0.tar.bz2 ingen-fd04fe7efcf0434a3c6a35fd2a65c775fb383bd0.zip |
FlowCanvas's successor is hereby dubbed Ganv.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3820 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/Port.cpp')
-rw-r--r-- | src/gui/Port.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp index 293f3a22..950a1df9 100644 --- a/src/gui/Port.cpp +++ b/src/gui/Port.cpp @@ -17,7 +17,7 @@ #include <cassert> #include "raul/log.hpp" -#include "flowcanvas/Module.hpp" +#include "ganv/Module.hpp" #include "ingen/ServerInterface.hpp" #include "ingen/shared/LV2URIMap.hpp" #include "ingen/client/PatchModel.hpp" @@ -42,7 +42,7 @@ namespace GUI { Port* Port::create(App& app, - FlowCanvas::Module& module, + Ganv::Module& module, SharedPtr<const PortModel> pm, bool human_name, bool flip) @@ -64,11 +64,11 @@ Port::create(App& app, /** @a flip Make an input port appear as an output port, and vice versa. */ Port::Port(App& app, - FlowCanvas::Module& module, + Ganv::Module& module, SharedPtr<const PortModel> pm, const string& name, bool flip) - : FlowCanvas::Port(module, name, + : Ganv::Port(module, name, flip ? (!pm->is_input()) : pm->is_input(), app.configuration()->get_port_color(pm.get())) , _app(app) @@ -144,7 +144,7 @@ Port::value_changed(const Atom& value) if (_pressed) return; else if (value.type() == Atom::FLOAT) - FlowCanvas::Port::set_control_value(value.get_float()); + Ganv::Port::set_control_value(value.get_float()); } bool @@ -162,7 +162,7 @@ Port::on_event(GdkEvent* ev) break; } - return FlowCanvas::Port::on_event(ev); + return Ganv::Port::on_event(ev); } bool @@ -249,7 +249,7 @@ Port::set_control(float value, bool signal) pw->show_port_status(model().get(), value); } - FlowCanvas::Port::set_control_value(value); + Ganv::Port::set_control_value(value); } void @@ -312,7 +312,7 @@ void Port::set_selected(gboolean b) { if (b != get_selected()) { - FlowCanvas::Port::set_selected(b); + Ganv::Port::set_selected(b); SharedPtr<const PortModel> pm = _port_model.lock(); if (pm && b) { SharedPtr<const NodeModel> node = PtrCast<NodeModel>(pm->parent()); |