/[svn]/gigedit/trunk/src/gigedit/Settings.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/Settings.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2892 by schoenebeck, Tue Apr 26 18:06:31 2016 UTC revision 2918 by schoenebeck, Wed May 18 10:10:25 2016 UTC
# Line 34  static std::string configFile() { Line 34  static std::string configFile() {
34  }  }
35    
36  static std::string groupName(Settings::Group_t group) {  static std::string groupName(Settings::Group_t group) {
37        switch (group) {
38            case Settings::GLOBAL: return "Global";
39            case Settings::MAIN_WINDOW: return "MainWindow";
40            case Settings::SCRIPT_EDITOR: return "ScriptEditor";
41            case Settings::DIMENSION_MANAGER: return "DimensionManager";
42            case Settings::SCRIPT_SLOTS: return "ScriptSlots";
43            case Settings::COMBINE_INSTRUMENTS: return "CombineInstruments";
44            case Settings::MIDI_RULES: return "MidiRules";
45            case Settings::FILE_PROPS: return "FileProps";
46            case Settings::INSTR_PROPS: return "InstrProps";
47            case Settings::SAMPLE_REFS: return "SampleRefs";
48        }
49      return "Global";      return "Global";
50  }  }
51    
# Line 64  Settings::Settings() : Glib::ObjectBase( Line 76  Settings::Settings() : Glib::ObjectBase(
76      warnUserOnExtensions(*this, GLOBAL, "warnUserOnExtensions", true),      warnUserOnExtensions(*this, GLOBAL, "warnUserOnExtensions", true),
77      syncSamplerInstrumentSelection(*this, GLOBAL, "syncSamplerInstrumentSelection", true),      syncSamplerInstrumentSelection(*this, GLOBAL, "syncSamplerInstrumentSelection", true),
78      moveRootNoteWithRegionMoved(*this, GLOBAL, "moveRootNoteWithRegionMoved", true),      moveRootNoteWithRegionMoved(*this, GLOBAL, "moveRootNoteWithRegionMoved", true),
79        autoRestoreWindowDimension(*this, GLOBAL, "autoRestoreWindowDimension", false),
80        mainWindowX(*this, MAIN_WINDOW, "x", -1),
81        mainWindowY(*this, MAIN_WINDOW, "y", -1),
82        mainWindowW(*this, MAIN_WINDOW, "w", -1),
83        mainWindowH(*this, MAIN_WINDOW, "h", -1),
84        scriptEditorWindowX(*this, SCRIPT_EDITOR, "x", -1),
85        scriptEditorWindowY(*this, SCRIPT_EDITOR, "y", -1),
86        scriptEditorWindowW(*this, SCRIPT_EDITOR, "w", -1),
87        scriptEditorWindowH(*this, SCRIPT_EDITOR, "h", -1),
88        dimensionManagerWindowX(*this, DIMENSION_MANAGER, "x", -1),
89        dimensionManagerWindowY(*this, DIMENSION_MANAGER, "y", -1),
90        dimensionManagerWindowW(*this, DIMENSION_MANAGER, "w", -1),
91        dimensionManagerWindowH(*this, DIMENSION_MANAGER, "h", -1),
92        scriptSlotsWindowX(*this, SCRIPT_SLOTS, "x", -1),
93        scriptSlotsWindowY(*this, SCRIPT_SLOTS, "y", -1),
94        scriptSlotsWindowW(*this, SCRIPT_SLOTS, "w", -1),
95        scriptSlotsWindowH(*this, SCRIPT_SLOTS, "h", -1),
96        combineInstrumentsWindowX(*this, COMBINE_INSTRUMENTS, "x", -1),
97        combineInstrumentsWindowY(*this, COMBINE_INSTRUMENTS, "y", -1),
98        combineInstrumentsWindowW(*this, COMBINE_INSTRUMENTS, "w", -1),
99        combineInstrumentsWindowH(*this, COMBINE_INSTRUMENTS, "h", -1),
100        midiRulesWindowX(*this, MIDI_RULES, "x", -1),
101        midiRulesWindowY(*this, MIDI_RULES, "y", -1),
102        midiRulesWindowW(*this, MIDI_RULES, "w", -1),
103        midiRulesWindowH(*this, MIDI_RULES, "h", -1),
104        filePropsWindowX(*this, FILE_PROPS, "x", -1),
105        filePropsWindowY(*this, FILE_PROPS, "y", -1),
106        filePropsWindowW(*this, FILE_PROPS, "w", -1),
107        filePropsWindowH(*this, FILE_PROPS, "h", -1),
108        instrPropsWindowX(*this, INSTR_PROPS, "x", -1),
109        instrPropsWindowY(*this, INSTR_PROPS, "y", -1),
110        instrPropsWindowW(*this, INSTR_PROPS, "w", -1),
111        instrPropsWindowH(*this, INSTR_PROPS, "h", -1),
112        sampleRefsWindowX(*this, SAMPLE_REFS, "x", -1),
113        sampleRefsWindowY(*this, SAMPLE_REFS, "y", -1),
114        sampleRefsWindowW(*this, SAMPLE_REFS, "w", -1),
115        sampleRefsWindowH(*this, SAMPLE_REFS, "h", -1),
116      m_ignoreNotifies(false)      m_ignoreNotifies(false)
117  {  {
118      m_boolProps.push_back(&warnUserOnExtensions);      m_boolProps.push_back(&warnUserOnExtensions);
119      m_boolProps.push_back(&syncSamplerInstrumentSelection);      m_boolProps.push_back(&syncSamplerInstrumentSelection);
120      m_boolProps.push_back(&moveRootNoteWithRegionMoved);      m_boolProps.push_back(&moveRootNoteWithRegionMoved);
121        m_boolProps.push_back(&autoRestoreWindowDimension);
122        m_intProps.push_back(&mainWindowX);
123        m_intProps.push_back(&mainWindowY);
124        m_intProps.push_back(&mainWindowW);
125        m_intProps.push_back(&mainWindowH);
126        m_intProps.push_back(&scriptEditorWindowX);
127        m_intProps.push_back(&scriptEditorWindowY);
128        m_intProps.push_back(&scriptEditorWindowW);
129        m_intProps.push_back(&scriptEditorWindowH);
130        m_intProps.push_back(&dimensionManagerWindowX);
131        m_intProps.push_back(&dimensionManagerWindowY);
132        m_intProps.push_back(&dimensionManagerWindowW);
133        m_intProps.push_back(&dimensionManagerWindowH);
134        m_intProps.push_back(&scriptSlotsWindowX);
135        m_intProps.push_back(&scriptSlotsWindowY);
136        m_intProps.push_back(&scriptSlotsWindowW);
137        m_intProps.push_back(&scriptSlotsWindowH);
138        m_intProps.push_back(&combineInstrumentsWindowX);
139        m_intProps.push_back(&combineInstrumentsWindowY);
140        m_intProps.push_back(&combineInstrumentsWindowW);
141        m_intProps.push_back(&combineInstrumentsWindowH);
142        m_intProps.push_back(&midiRulesWindowX);
143        m_intProps.push_back(&midiRulesWindowY);
144        m_intProps.push_back(&midiRulesWindowW);
145        m_intProps.push_back(&midiRulesWindowH);
146        m_intProps.push_back(&filePropsWindowX);
147        m_intProps.push_back(&filePropsWindowY);
148        m_intProps.push_back(&filePropsWindowW);
149        m_intProps.push_back(&filePropsWindowH);
150        m_intProps.push_back(&instrPropsWindowX);
151        m_intProps.push_back(&instrPropsWindowY);
152        m_intProps.push_back(&instrPropsWindowW);
153        m_intProps.push_back(&instrPropsWindowH);
154        m_intProps.push_back(&sampleRefsWindowX);
155        m_intProps.push_back(&sampleRefsWindowY);
156        m_intProps.push_back(&sampleRefsWindowW);
157        m_intProps.push_back(&sampleRefsWindowH);
158  }  }
159    
160  void Settings::onPropertyChanged(Glib::PropertyBase* pProperty, RawValueType_t type, Group_t group) {  void Settings::onPropertyChanged(Glib::PropertyBase* pProperty, RawValueType_t type, Group_t group) {

Legend:
Removed from v.2892  
changed lines
  Added in v.2918

  ViewVC Help
Powered by ViewVC