summaryrefslogtreecommitdiffstats
path: root/src/PatchageModule.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-13 16:04:14 +0000
committerDavid Robillard <d@drobilla.net>2009-05-13 16:04:14 +0000
commitb84b50d2bbbfcd196d62344eaeef7fb08e3d686c (patch)
tree5b65cb8ec437087f1352ac23730355d6cc6369cb /src/PatchageModule.hpp
parentddc09de45b45bdf2afdeff68eb8a17ad237ef6c3 (diff)
downloadpatchage-b84b50d2bbbfcd196d62344eaeef7fb08e3d686c.tar.gz
patchage-b84b50d2bbbfcd196d62344eaeef7fb08e3d686c.tar.bz2
patchage-b84b50d2bbbfcd196d62344eaeef7fb08e3d686c.zip
Strip trailing whitespace.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@1999 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageModule.hpp')
-rw-r--r--src/PatchageModule.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/PatchageModule.hpp b/src/PatchageModule.hpp
index 0eac76f..363e459 100644
--- a/src/PatchageModule.hpp
+++ b/src/PatchageModule.hpp
@@ -1,15 +1,15 @@
/* This file is part of Patchage.
* Copyright (C) 2007 Dave Robillard <http://drobilla.net>
- *
+ *
* Patchage is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
* version.
- *
+ *
* Patchage is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
@@ -57,12 +57,12 @@ public:
items.push_back(Gtk::Menu_Helpers::MenuElem("Disconnect All",
sigc::mem_fun(this, &PatchageModule::menu_disconnect_all)));
}
-
+
void move(double dx, double dy) {
FlowCanvas::Module::move(dx, dy);
store_location();
}
-
+
void load_location() {
boost::shared_ptr<Canvas> canvas = _canvas.lock();
if (!canvas)
@@ -76,12 +76,12 @@ public:
move_to((canvas->width()/2) - 100 + rand() % 400,
(canvas->height()/2) - 100 + rand() % 400);
}
-
+
virtual void store_location() {
Coord loc(property_x().get_value(), property_y().get_value());
_app->state_manager()->set_module_location(_name, _type, loc);
}
-
+
void split() {
assert(_type == InputOutput);
_app->state_manager()->set_module_split(_name, true);
@@ -95,7 +95,7 @@ public:
}
virtual void show_dialog() {}
-
+
virtual void menu_disconnect_all() {
for (PortVector::iterator p = _ports.begin(); p != _ports.end(); ++p)
(*p)->disconnect_all();