/[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 2893 by schoenebeck, Fri Apr 29 14:19:53 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        }
42      return "Global";      return "Global";
43  }  }
44    
# Line 64  Settings::Settings() : Glib::ObjectBase( Line 69  Settings::Settings() : Glib::ObjectBase(
69      warnUserOnExtensions(*this, GLOBAL, "warnUserOnExtensions", true),      warnUserOnExtensions(*this, GLOBAL, "warnUserOnExtensions", true),
70      syncSamplerInstrumentSelection(*this, GLOBAL, "syncSamplerInstrumentSelection", true),      syncSamplerInstrumentSelection(*this, GLOBAL, "syncSamplerInstrumentSelection", true),
71      moveRootNoteWithRegionMoved(*this, GLOBAL, "moveRootNoteWithRegionMoved", true),      moveRootNoteWithRegionMoved(*this, GLOBAL, "moveRootNoteWithRegionMoved", true),
72        mainWindowX(*this, MAIN_WINDOW, "x", -1),
73        mainWindowY(*this, MAIN_WINDOW, "y", -1),
74        mainWindowW(*this, MAIN_WINDOW, "w", -1),
75        mainWindowH(*this, MAIN_WINDOW, "h", -1),
76        scriptEditorWindowX(*this, SCRIPT_EDITOR, "x", -1),
77        scriptEditorWindowY(*this, SCRIPT_EDITOR, "y", -1),
78        scriptEditorWindowW(*this, SCRIPT_EDITOR, "w", -1),
79        scriptEditorWindowH(*this, SCRIPT_EDITOR, "h", -1),
80      m_ignoreNotifies(false)      m_ignoreNotifies(false)
81  {  {
82      m_boolProps.push_back(&warnUserOnExtensions);      m_boolProps.push_back(&warnUserOnExtensions);
83      m_boolProps.push_back(&syncSamplerInstrumentSelection);      m_boolProps.push_back(&syncSamplerInstrumentSelection);
84      m_boolProps.push_back(&moveRootNoteWithRegionMoved);      m_boolProps.push_back(&moveRootNoteWithRegionMoved);
85        m_intProps.push_back(&mainWindowX);
86        m_intProps.push_back(&mainWindowY);
87        m_intProps.push_back(&mainWindowW);
88        m_intProps.push_back(&mainWindowH);
89        m_intProps.push_back(&scriptEditorWindowX);
90        m_intProps.push_back(&scriptEditorWindowY);
91        m_intProps.push_back(&scriptEditorWindowW);
92        m_intProps.push_back(&scriptEditorWindowH);
93  }  }
94    
95  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.2893

  ViewVC Help
Powered by ViewVC