summaryrefslogtreecommitdiffstats
path: root/src/PatchageModule.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-01-02 04:14:26 +0000
committerDavid Robillard <d@drobilla.net>2008-01-02 04:14:26 +0000
commit119af67b5139e40eb3f21dde42882765e917efcb (patch)
treec538c7a53d6a32f89dec27663e202666139f1197 /src/PatchageModule.hpp
parent1c2a70154bc1f9070c1a2b9b3cf98f8d398ca215 (diff)
downloadpatchage-119af67b5139e40eb3f21dde42882765e917efcb.tar.gz
patchage-119af67b5139e40eb3f21dde42882765e917efcb.tar.bz2
patchage-119af67b5139e40eb3f21dde42882765e917efcb.zip
Minor Patchage code cleanups.
git-svn-id: http://svn.drobilla.net/lad/patchage@1001 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageModule.hpp')
-rw-r--r--src/PatchageModule.hpp30
1 files changed, 4 insertions, 26 deletions
diff --git a/src/PatchageModule.hpp b/src/PatchageModule.hpp
index fc314c1..f046267 100644
--- a/src/PatchageModule.hpp
+++ b/src/PatchageModule.hpp
@@ -29,17 +29,15 @@
#include "StateManager.hpp"
#include "PatchagePort.hpp"
-using std::string; using std::list;
-
using namespace FlowCanvas;
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),
- _app(app),
- _type(type)
+ PatchageModule(Patchage* app, const std::string& title, ModuleType type, double x=0, double y=0)
+ : Module(app->canvas(), title, x, y)
+ , _app(app)
+ , _type(type)
{
_menu = new Gtk::Menu();
Gtk::Menu::MenuList& items = _menu->items();
@@ -56,24 +54,6 @@ public:
virtual ~PatchageModule() { delete _menu; }
- /*virtual void add_patchage_port(const string& port_name, bool is_input, PortType type)
- {
- new PatchagePort(this, type, port_name, is_input, _app->state_manager()->get_port_color(type));
-
- resize();
- }
-
- virtual void add_patchage_port(const string& port_name, bool is_input, PortType type, const snd_seq_addr_t addr)
- {
- PatchagePort* port = new PatchagePort(this, type, port_name, is_input,
- _app->state_manager()->get_port_color(type));
-
- port->alsa_addr(addr);
-
- resize();
- }*/
-
-
virtual void load_location() {
boost::shared_ptr<Canvas> canvas = _canvas.lock();
if (!canvas)
@@ -81,8 +61,6 @@ public:
Coord loc = _app->state_manager()->get_module_location(_name, _type);
- //cerr << "******" << _name << " MOVING TO (" << loc.x << "," << loc.y << ")" << endl;
-
if (loc.x != -1)
move_to(loc.x, loc.y);
else