summaryrefslogtreecommitdiffstats
path: root/src/Configuration.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-04-06 17:35:19 +0000
committerDavid Robillard <d@drobilla.net>2014-04-06 17:35:19 +0000
commit3ef2b738b728b9758b527028b88d9d44b929c1d7 (patch)
treea4ce90739b4cca27aed56202a50f0f423034fdf4 /src/Configuration.cpp
parent9e31195fec9fb11b03891f1c5bbc243e82da4d30 (diff)
downloadpatchage-3ef2b738b728b9758b527028b88d9d44b929c1d7.tar.gz
patchage-3ef2b738b728b9758b527028b88d9d44b929c1d7.tar.bz2
patchage-3ef2b738b728b9758b527028b88d9d44b929c1d7.zip
Resurrect toolbar with Jack info and dropout indicator.
Move legend to right hand side of toolbar. Store toolbar visible state in configuration. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5359 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Configuration.cpp')
-rw-r--r--src/Configuration.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Configuration.cpp b/src/Configuration.cpp
index 3c4b5f0..8653591 100644
--- a/src/Configuration.cpp
+++ b/src/Configuration.cpp
@@ -38,6 +38,7 @@ Configuration::Configuration()
, _window_size(640, 480)
, _zoom(1.0)
, _font_size(12.0)
+ , _show_toolbar(true)
{
_port_colors[JACK_AUDIO] = _default_port_colors[JACK_AUDIO] = 0x244678FF;
_port_colors[JACK_MIDI] = _default_port_colors[JACK_MIDI] = 0x960909FF;
@@ -164,7 +165,7 @@ Configuration::load()
while (file.good()) {
std::string key;
if (file.peek() == '\"') {
- /* Old versions ommitted the module_position key and listed
+ /* Old versions omitted the module_position key and listed
positions starting with module name in quotes. */
key = "module_position";
} else {
@@ -179,6 +180,8 @@ Configuration::load()
file >> _zoom;
} else if (key == "font_size") {
file >> _font_size;
+ } else if (key == "show_toolbar") {
+ file >> _show_toolbar;
} else if (key == "port_color") {
std::string type_name;
uint32_t rgba;
@@ -275,6 +278,7 @@ Configuration::save()
file << "window_size " << _window_size.x << " " << _window_size.y << std::endl;
file << "zoom_level " << _zoom << std::endl;
file << "font_size " << _font_size << std::endl;
+ file << "show_toolbar " << _show_toolbar << std::endl;
file << std::hex << std::uppercase;
for (int i = 0; i < N_PORT_TYPES; ++i) {