/[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 2893 by schoenebeck, Fri Apr 29 14:19:53 2016 UTC revision 3151 by schoenebeck, Fri May 5 18:44:59 2017 UTC
# Line 38  static std::string groupName(Settings::G Line 38  static std::string groupName(Settings::G
38          case Settings::GLOBAL: return "Global";          case Settings::GLOBAL: return "Global";
39          case Settings::MAIN_WINDOW: return "MainWindow";          case Settings::MAIN_WINDOW: return "MainWindow";
40          case Settings::SCRIPT_EDITOR: return "ScriptEditor";          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  }  }
# Line 69  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        saveWithTemporaryFile(*this, GLOBAL, "saveWithTemporaryFile", false),
81      mainWindowX(*this, MAIN_WINDOW, "x", -1),      mainWindowX(*this, MAIN_WINDOW, "x", -1),
82      mainWindowY(*this, MAIN_WINDOW, "y", -1),      mainWindowY(*this, MAIN_WINDOW, "y", -1),
83      mainWindowW(*this, MAIN_WINDOW, "w", -1),      mainWindowW(*this, MAIN_WINDOW, "w", -1),
# Line 77  Settings::Settings() : Glib::ObjectBase( Line 86  Settings::Settings() : Glib::ObjectBase(
86      scriptEditorWindowY(*this, SCRIPT_EDITOR, "y", -1),      scriptEditorWindowY(*this, SCRIPT_EDITOR, "y", -1),
87      scriptEditorWindowW(*this, SCRIPT_EDITOR, "w", -1),      scriptEditorWindowW(*this, SCRIPT_EDITOR, "w", -1),
88      scriptEditorWindowH(*this, SCRIPT_EDITOR, "h", -1),      scriptEditorWindowH(*this, SCRIPT_EDITOR, "h", -1),
89        scriptEditorFontSize(*this, SCRIPT_EDITOR, "fontSize", -1),
90        dimensionManagerWindowX(*this, DIMENSION_MANAGER, "x", -1),
91        dimensionManagerWindowY(*this, DIMENSION_MANAGER, "y", -1),
92        dimensionManagerWindowW(*this, DIMENSION_MANAGER, "w", -1),
93        dimensionManagerWindowH(*this, DIMENSION_MANAGER, "h", -1),
94        scriptSlotsWindowX(*this, SCRIPT_SLOTS, "x", -1),
95        scriptSlotsWindowY(*this, SCRIPT_SLOTS, "y", -1),
96        scriptSlotsWindowW(*this, SCRIPT_SLOTS, "w", -1),
97        scriptSlotsWindowH(*this, SCRIPT_SLOTS, "h", -1),
98        combineInstrumentsWindowX(*this, COMBINE_INSTRUMENTS, "x", -1),
99        combineInstrumentsWindowY(*this, COMBINE_INSTRUMENTS, "y", -1),
100        combineInstrumentsWindowW(*this, COMBINE_INSTRUMENTS, "w", -1),
101        combineInstrumentsWindowH(*this, COMBINE_INSTRUMENTS, "h", -1),
102        midiRulesWindowX(*this, MIDI_RULES, "x", -1),
103        midiRulesWindowY(*this, MIDI_RULES, "y", -1),
104        midiRulesWindowW(*this, MIDI_RULES, "w", -1),
105        midiRulesWindowH(*this, MIDI_RULES, "h", -1),
106        filePropsWindowX(*this, FILE_PROPS, "x", -1),
107        filePropsWindowY(*this, FILE_PROPS, "y", -1),
108        filePropsWindowW(*this, FILE_PROPS, "w", -1),
109        filePropsWindowH(*this, FILE_PROPS, "h", -1),
110        instrPropsWindowX(*this, INSTR_PROPS, "x", -1),
111        instrPropsWindowY(*this, INSTR_PROPS, "y", -1),
112        instrPropsWindowW(*this, INSTR_PROPS, "w", -1),
113        instrPropsWindowH(*this, INSTR_PROPS, "h", -1),
114        sampleRefsWindowX(*this, SAMPLE_REFS, "x", -1),
115        sampleRefsWindowY(*this, SAMPLE_REFS, "y", -1),
116        sampleRefsWindowW(*this, SAMPLE_REFS, "w", -1),
117        sampleRefsWindowH(*this, SAMPLE_REFS, "h", -1),
118        macroEditorWindowX(*this, MACRO_EDITOR, "x", -1),
119        macroEditorWindowY(*this, MACRO_EDITOR, "y", -1),
120        macroEditorWindowW(*this, MACRO_EDITOR, "w", -1),
121        macroEditorWindowH(*this, MACRO_EDITOR, "h", -1),
122      m_ignoreNotifies(false)      m_ignoreNotifies(false)
123  {  {
124      m_boolProps.push_back(&warnUserOnExtensions);      m_boolProps.push_back(&warnUserOnExtensions);
125      m_boolProps.push_back(&syncSamplerInstrumentSelection);      m_boolProps.push_back(&syncSamplerInstrumentSelection);
126      m_boolProps.push_back(&moveRootNoteWithRegionMoved);      m_boolProps.push_back(&moveRootNoteWithRegionMoved);
127        m_boolProps.push_back(&autoRestoreWindowDimension);
128        m_boolProps.push_back(&saveWithTemporaryFile);
129      m_intProps.push_back(&mainWindowX);      m_intProps.push_back(&mainWindowX);
130      m_intProps.push_back(&mainWindowY);      m_intProps.push_back(&mainWindowY);
131      m_intProps.push_back(&mainWindowW);      m_intProps.push_back(&mainWindowW);
# Line 90  Settings::Settings() : Glib::ObjectBase( Line 134  Settings::Settings() : Glib::ObjectBase(
134      m_intProps.push_back(&scriptEditorWindowY);      m_intProps.push_back(&scriptEditorWindowY);
135      m_intProps.push_back(&scriptEditorWindowW);      m_intProps.push_back(&scriptEditorWindowW);
136      m_intProps.push_back(&scriptEditorWindowH);      m_intProps.push_back(&scriptEditorWindowH);
137        m_intProps.push_back(&scriptEditorFontSize);
138        m_intProps.push_back(&dimensionManagerWindowX);
139        m_intProps.push_back(&dimensionManagerWindowY);
140        m_intProps.push_back(&dimensionManagerWindowW);
141        m_intProps.push_back(&dimensionManagerWindowH);
142        m_intProps.push_back(&scriptSlotsWindowX);
143        m_intProps.push_back(&scriptSlotsWindowY);
144        m_intProps.push_back(&scriptSlotsWindowW);
145        m_intProps.push_back(&scriptSlotsWindowH);
146        m_intProps.push_back(&combineInstrumentsWindowX);
147        m_intProps.push_back(&combineInstrumentsWindowY);
148        m_intProps.push_back(&combineInstrumentsWindowW);
149        m_intProps.push_back(&combineInstrumentsWindowH);
150        m_intProps.push_back(&midiRulesWindowX);
151        m_intProps.push_back(&midiRulesWindowY);
152        m_intProps.push_back(&midiRulesWindowW);
153        m_intProps.push_back(&midiRulesWindowH);
154        m_intProps.push_back(&filePropsWindowX);
155        m_intProps.push_back(&filePropsWindowY);
156        m_intProps.push_back(&filePropsWindowW);
157        m_intProps.push_back(&filePropsWindowH);
158        m_intProps.push_back(&instrPropsWindowX);
159        m_intProps.push_back(&instrPropsWindowY);
160        m_intProps.push_back(&instrPropsWindowW);
161        m_intProps.push_back(&instrPropsWindowH);
162        m_intProps.push_back(&sampleRefsWindowX);
163        m_intProps.push_back(&sampleRefsWindowY);
164        m_intProps.push_back(&sampleRefsWindowW);
165        m_intProps.push_back(&sampleRefsWindowH);
166        m_intProps.push_back(&macroEditorWindowX);
167        m_intProps.push_back(&macroEditorWindowY);
168        m_intProps.push_back(&macroEditorWindowW);
169        m_intProps.push_back(&macroEditorWindowH);
170  }  }
171    
172  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.2893  
changed lines
  Added in v.3151

  ViewVC Help
Powered by ViewVC