From 3ef2b738b728b9758b527028b88d9d44b929c1d7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 6 Apr 2014 17:35:19 +0000 Subject: 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 --- src/Configuration.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/Configuration.cpp') 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) { -- cgit v1.2.1