summaryrefslogtreecommitdiffstats
path: root/src/StateManager.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-16 19:02:36 +0000
committerDavid Robillard <d@drobilla.net>2011-04-16 19:02:36 +0000
commit1ac86ca2e5e32bd8bb34bba1589e2152004dc9a6 (patch)
treebbeed636819fc3e67e77e2645a699e01fd0d2e16 /src/StateManager.cpp
parent7627989d3fbc7fd54013988d2ec7c29a5c517bbf (diff)
downloadpatchage-1ac86ca2e5e32bd8bb34bba1589e2152004dc9a6.tar.gz
patchage-1ac86ca2e5e32bd8bb34bba1589e2152004dc9a6.tar.bz2
patchage-1ac86ca2e5e32bd8bb34bba1589e2152004dc9a6.zip
Squeeze blank lines and delete trailing whitespace.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3152 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/StateManager.cpp')
-rw-r--r--src/StateManager.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/StateManager.cpp b/src/StateManager.cpp
index 544725a..f18187d 100644
--- a/src/StateManager.cpp
+++ b/src/StateManager.cpp
@@ -36,7 +36,6 @@ StateManager::StateManager()
{
}
-
bool
StateManager::get_module_location(const string& name, ModuleType type, Coord& loc)
{
@@ -72,7 +71,6 @@ StateManager::get_module_location(const string& name, ModuleType type, Coord& lo
return false;
}
-
void
StateManager::set_module_location(const string& name, ModuleType type, Coord loc)
{
@@ -101,7 +99,6 @@ retry:
}
}
-
/** Returns whether or not this module should be split.
*
* If nothing is known about the given module, @a default_val is returned (this is
@@ -117,14 +114,12 @@ StateManager::get_module_split(const string& name, bool default_val) const
return (*i).second.split;
}
-
void
StateManager::set_module_split(const string& name, bool split)
{
_module_settings[name].split = split;
}
-
void
StateManager::load(const string& filename)
{
@@ -135,7 +130,7 @@ StateManager::load(const string& filename)
if ( ! is.good())
return;
-
+
Raul::info << "Loading configuration file " << filename << endl;
string s;
@@ -228,7 +223,6 @@ StateManager::save(const string& filename)
os << "window_size " << _window_size.x << " " << _window_size.y << std::endl;
os << "zoom_level " << _zoom << std::endl;
-
for (map<string, ModuleSettings>::iterator i = _module_settings.begin();
i != _module_settings.end(); ++i) {
const ModuleSettings& settings = (*i).second;
@@ -249,21 +243,18 @@ StateManager::save(const string& filename)
os.close();
}
-
float
StateManager::get_zoom()
{
return _zoom;
}
-
void
StateManager::set_zoom(float zoom)
{
_zoom = zoom;
}
-
int
StateManager::get_port_color(PortType type)
{