36 |
* All settings are grouped into these settings groups. |
* All settings are grouped into these settings groups. |
37 |
*/ |
*/ |
38 |
enum Group_t { |
enum Group_t { |
39 |
GLOBAL |
GLOBAL, |
40 |
|
MAIN_WINDOW, |
41 |
|
SCRIPT_EDITOR, |
42 |
|
DIMENSION_MANAGER, |
43 |
|
SCRIPT_SLOTS, |
44 |
|
COMBINE_INSTRUMENTS, |
45 |
|
MIDI_RULES, |
46 |
|
FILE_PROPS, |
47 |
|
INSTR_PROPS, |
48 |
|
SAMPLE_REFS, |
49 |
}; |
}; |
50 |
|
|
51 |
/** |
/** |
117 |
Group_t m_group; |
Group_t m_group; |
118 |
}; |
}; |
119 |
|
|
120 |
|
// settings of "Global" group |
121 |
Property<bool> warnUserOnExtensions; ///< if enabled, the user shall he be warned if he is trying to use a gig format extension that will not work with Gigasampler/GigaStudio |
Property<bool> warnUserOnExtensions; ///< if enabled, the user shall he be warned if he is trying to use a gig format extension that will not work with Gigasampler/GigaStudio |
122 |
Property<bool> syncSamplerInstrumentSelection; ///< if enabled, the sampler's current instrument will automatically be switched whenever another instrument was selected in gigedit |
Property<bool> syncSamplerInstrumentSelection; ///< if enabled, the sampler's current instrument will automatically be switched whenever another instrument was selected in gigedit |
123 |
Property<bool> moveRootNoteWithRegionMoved; ///< if enabled, the root note(s) of regions are automatically moving when the user drags a region around at the virtual keyboard |
Property<bool> moveRootNoteWithRegionMoved; ///< if enabled, the root note(s) of regions are automatically moving when the user drags a region around at the virtual keyboard |
124 |
|
Property<bool> autoRestoreWindowDimension; |
125 |
|
|
126 |
|
// settings of "MainWindow" group |
127 |
|
Property<int> mainWindowX; |
128 |
|
Property<int> mainWindowY; |
129 |
|
Property<int> mainWindowW; |
130 |
|
Property<int> mainWindowH; |
131 |
|
|
132 |
|
// settings of "ScriptEditor" group |
133 |
|
Property<int> scriptEditorWindowX; |
134 |
|
Property<int> scriptEditorWindowY; |
135 |
|
Property<int> scriptEditorWindowW; |
136 |
|
Property<int> scriptEditorWindowH; |
137 |
|
|
138 |
|
// settings of "DimensionManager" group |
139 |
|
Property<int> dimensionManagerWindowX; |
140 |
|
Property<int> dimensionManagerWindowY; |
141 |
|
Property<int> dimensionManagerWindowW; |
142 |
|
Property<int> dimensionManagerWindowH; |
143 |
|
|
144 |
|
// settings of "ScriptSlots" group |
145 |
|
Property<int> scriptSlotsWindowX; |
146 |
|
Property<int> scriptSlotsWindowY; |
147 |
|
Property<int> scriptSlotsWindowW; |
148 |
|
Property<int> scriptSlotsWindowH; |
149 |
|
|
150 |
|
// settings of "CombineInstruments" group |
151 |
|
Property<int> combineInstrumentsWindowX; |
152 |
|
Property<int> combineInstrumentsWindowY; |
153 |
|
Property<int> combineInstrumentsWindowW; |
154 |
|
Property<int> combineInstrumentsWindowH; |
155 |
|
|
156 |
|
// settings of "MidiRules" group |
157 |
|
Property<int> midiRulesWindowX; |
158 |
|
Property<int> midiRulesWindowY; |
159 |
|
Property<int> midiRulesWindowW; |
160 |
|
Property<int> midiRulesWindowH; |
161 |
|
|
162 |
|
// settings of "FileProps" group |
163 |
|
Property<int> filePropsWindowX; |
164 |
|
Property<int> filePropsWindowY; |
165 |
|
Property<int> filePropsWindowW; |
166 |
|
Property<int> filePropsWindowH; |
167 |
|
|
168 |
|
// settings of "InstrProps" group |
169 |
|
Property<int> instrPropsWindowX; |
170 |
|
Property<int> instrPropsWindowY; |
171 |
|
Property<int> instrPropsWindowW; |
172 |
|
Property<int> instrPropsWindowH; |
173 |
|
|
174 |
|
// settings of "SampleRefs" group |
175 |
|
Property<int> sampleRefsWindowX; |
176 |
|
Property<int> sampleRefsWindowY; |
177 |
|
Property<int> sampleRefsWindowW; |
178 |
|
Property<int> sampleRefsWindowH; |
179 |
|
|
180 |
static Settings* singleton(); |
static Settings* singleton(); |
181 |
Settings(); |
Settings(); |