diff options
author | David Robillard <d@drobilla.net> | 2014-03-30 23:41:21 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-03-30 23:41:21 +0000 |
commit | 59780bd8f9abf376a79ee192325ae868df7d1b5a (patch) | |
tree | 5959bf08a7eea9461659b2714053dd0daead04f6 /src/PatchageModule.cpp | |
parent | 77448bc7507c26b964a9159fa1e4035487ccc326 (diff) | |
download | patchage-59780bd8f9abf376a79ee192325ae868df7d1b5a.tar.gz patchage-59780bd8f9abf376a79ee192325ae868df7d1b5a.tar.bz2 patchage-59780bd8f9abf376a79ee192325ae868df7d1b5a.zip |
StateManager => Configuration.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5348 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageModule.cpp')
-rw-r--r-- | src/PatchageModule.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/PatchageModule.cpp b/src/PatchageModule.cpp index 3c16352..0d2d77b 100644 --- a/src/PatchageModule.cpp +++ b/src/PatchageModule.cpp @@ -106,7 +106,7 @@ PatchageModule::load_location() { Coord loc; - if (_app->state_manager()->get_module_location(_name, _type, loc)) + if (_app->configuration()->get_module_location(_name, _type, loc)) move_to(loc.x, loc.y); else move_to(20 + rand() % 640, @@ -117,14 +117,14 @@ void PatchageModule::store_location(double x, double y) { Coord loc(get_x(), get_y()); - _app->state_manager()->set_module_location(_name, _type, loc); + _app->configuration()->set_module_location(_name, _type, loc); } void PatchageModule::split() { assert(_type == InputOutput); - _app->state_manager()->set_module_split(_name, true); + _app->configuration()->set_module_split(_name, true); _app->refresh(); } @@ -132,7 +132,7 @@ void PatchageModule::join() { assert(_type != InputOutput); - _app->state_manager()->set_module_split(_name, false); + _app->configuration()->set_module_split(_name, false); _app->refresh(); } |