12 |
#include <glibmm/object.h> |
#include <glibmm/object.h> |
13 |
#include <glibmm/property.h> |
#include <glibmm/property.h> |
14 |
#include <vector> |
#include <vector> |
15 |
|
#include "global.h" |
16 |
|
|
17 |
/** |
/** |
18 |
* Reflects, saves and restores all settings for the gigedit application. |
* Reflects, saves and restores all settings for the gigedit application. |
48 |
INSTR_PROPS, |
INSTR_PROPS, |
49 |
SAMPLE_REFS, |
SAMPLE_REFS, |
50 |
MACRO_EDITOR, |
MACRO_EDITOR, |
51 |
|
MACROS_SETUP, |
52 |
|
MACROS, |
53 |
}; |
}; |
54 |
|
|
55 |
/** |
/** |
189 |
Property<int> macroEditorWindowW; |
Property<int> macroEditorWindowW; |
190 |
Property<int> macroEditorWindowH; |
Property<int> macroEditorWindowH; |
191 |
|
|
192 |
|
// settings of "MacrosSetup" group |
193 |
|
Property<int> macrosSetupWindowX; |
194 |
|
Property<int> macrosSetupWindowY; |
195 |
|
Property<int> macrosSetupWindowW; |
196 |
|
Property<int> macrosSetupWindowH; |
197 |
|
|
198 |
static Settings* singleton(); |
static Settings* singleton(); |
199 |
Settings(); |
Settings(); |
200 |
void load(); |
void load(); |
201 |
|
void loadMacros(std::vector<Serialization::Archive>& macros); |
202 |
|
void saveMacros(const std::vector<Serialization::Archive>& macros); |
203 |
|
|
204 |
protected: |
protected: |
205 |
void onPropertyChanged(Glib::PropertyBase* pProperty, RawValueType_t type, Group_t group); |
void onPropertyChanged(Glib::PropertyBase* pProperty, RawValueType_t type, Group_t group); |