1 |
/* |
/* |
2 |
Copyright (c) 2014-2017 Christian Schoenebeck |
Copyright (c) 2014-2019 Christian Schoenebeck |
3 |
|
|
4 |
This file is part of "gigedit" and released under the terms of the |
This file is part of "gigedit" and released under the terms of the |
5 |
GNU General Public License version 2. |
GNU General Public License version 2. |
7 |
|
|
8 |
#include "global.h" |
#include "global.h" |
9 |
#include "Settings.h" |
#include "Settings.h" |
10 |
#include <glib.h> |
#ifdef GLIB_HEADER_FILE |
11 |
|
# include GLIB_HEADER_FILE(glib.h) |
12 |
|
#else |
13 |
|
# include <glib.h> |
14 |
|
#endif |
15 |
#include <glibmm/keyfile.h> |
#include <glibmm/keyfile.h> |
16 |
#include <iostream> |
#include <iostream> |
17 |
#include <stdio.h> |
#include <stdio.h> |
49 |
case Settings::MIDI_RULES: return "MidiRules"; |
case Settings::MIDI_RULES: return "MidiRules"; |
50 |
case Settings::FILE_PROPS: return "FileProps"; |
case Settings::FILE_PROPS: return "FileProps"; |
51 |
case Settings::INSTR_PROPS: return "InstrProps"; |
case Settings::INSTR_PROPS: return "InstrProps"; |
52 |
|
case Settings::SAMPLE_PROPS: return "SampleProps"; |
53 |
case Settings::SAMPLE_REFS: return "SampleRefs"; |
case Settings::SAMPLE_REFS: return "SampleRefs"; |
54 |
case Settings::MACRO_EDITOR: return "MacroEditor"; |
case Settings::MACRO_EDITOR: return "MacroEditor"; |
55 |
case Settings::MACROS_SETUP: return "MacrosSetup"; |
case Settings::MACROS_SETUP: return "MacrosSetup"; |
87 |
moveRootNoteWithRegionMoved(*this, GLOBAL, "moveRootNoteWithRegionMoved", true), |
moveRootNoteWithRegionMoved(*this, GLOBAL, "moveRootNoteWithRegionMoved", true), |
88 |
autoRestoreWindowDimension(*this, GLOBAL, "autoRestoreWindowDimension", false), |
autoRestoreWindowDimension(*this, GLOBAL, "autoRestoreWindowDimension", false), |
89 |
saveWithTemporaryFile(*this, GLOBAL, "saveWithTemporaryFile", false), |
saveWithTemporaryFile(*this, GLOBAL, "saveWithTemporaryFile", false), |
90 |
|
showTooltips(*this, GLOBAL, "showNewbieTooltips", true), |
91 |
mainWindowX(*this, MAIN_WINDOW, "x", -1), |
mainWindowX(*this, MAIN_WINDOW, "x", -1), |
92 |
mainWindowY(*this, MAIN_WINDOW, "y", -1), |
mainWindowY(*this, MAIN_WINDOW, "y", -1), |
93 |
mainWindowW(*this, MAIN_WINDOW, "w", -1), |
mainWindowW(*this, MAIN_WINDOW, "w", -1), |
121 |
instrPropsWindowY(*this, INSTR_PROPS, "y", -1), |
instrPropsWindowY(*this, INSTR_PROPS, "y", -1), |
122 |
instrPropsWindowW(*this, INSTR_PROPS, "w", -1), |
instrPropsWindowW(*this, INSTR_PROPS, "w", -1), |
123 |
instrPropsWindowH(*this, INSTR_PROPS, "h", -1), |
instrPropsWindowH(*this, INSTR_PROPS, "h", -1), |
124 |
|
samplePropsWindowX(*this, SAMPLE_PROPS, "x", -1), |
125 |
|
samplePropsWindowY(*this, SAMPLE_PROPS, "y", -1), |
126 |
|
samplePropsWindowW(*this, SAMPLE_PROPS, "w", -1), |
127 |
|
samplePropsWindowH(*this, SAMPLE_PROPS, "h", -1), |
128 |
sampleRefsWindowX(*this, SAMPLE_REFS, "x", -1), |
sampleRefsWindowX(*this, SAMPLE_REFS, "x", -1), |
129 |
sampleRefsWindowY(*this, SAMPLE_REFS, "y", -1), |
sampleRefsWindowY(*this, SAMPLE_REFS, "y", -1), |
130 |
sampleRefsWindowW(*this, SAMPLE_REFS, "w", -1), |
sampleRefsWindowW(*this, SAMPLE_REFS, "w", -1), |
144 |
m_boolProps.push_back(&moveRootNoteWithRegionMoved); |
m_boolProps.push_back(&moveRootNoteWithRegionMoved); |
145 |
m_boolProps.push_back(&autoRestoreWindowDimension); |
m_boolProps.push_back(&autoRestoreWindowDimension); |
146 |
m_boolProps.push_back(&saveWithTemporaryFile); |
m_boolProps.push_back(&saveWithTemporaryFile); |
147 |
|
m_boolProps.push_back(&showTooltips); |
148 |
m_intProps.push_back(&mainWindowX); |
m_intProps.push_back(&mainWindowX); |
149 |
m_intProps.push_back(&mainWindowY); |
m_intProps.push_back(&mainWindowY); |
150 |
m_intProps.push_back(&mainWindowW); |
m_intProps.push_back(&mainWindowW); |
178 |
m_intProps.push_back(&instrPropsWindowY); |
m_intProps.push_back(&instrPropsWindowY); |
179 |
m_intProps.push_back(&instrPropsWindowW); |
m_intProps.push_back(&instrPropsWindowW); |
180 |
m_intProps.push_back(&instrPropsWindowH); |
m_intProps.push_back(&instrPropsWindowH); |
181 |
|
m_intProps.push_back(&samplePropsWindowX); |
182 |
|
m_intProps.push_back(&samplePropsWindowY); |
183 |
|
m_intProps.push_back(&samplePropsWindowW); |
184 |
|
m_intProps.push_back(&samplePropsWindowH); |
185 |
m_intProps.push_back(&sampleRefsWindowX); |
m_intProps.push_back(&sampleRefsWindowX); |
186 |
m_intProps.push_back(&sampleRefsWindowY); |
m_intProps.push_back(&sampleRefsWindowY); |
187 |
m_intProps.push_back(&sampleRefsWindowW); |
m_intProps.push_back(&sampleRefsWindowW); |