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

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

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

revision 2967 by schoenebeck, Mon Jul 18 11:22:38 2016 UTC revision 3157 by schoenebeck, Mon May 8 17:30:10 2017 UTC
# Line 1  Line 1 
1  /*  /*
2      Copyright (c) 2014-2016 Christian Schoenebeck      Copyright (c) 2014-2017 Christian Schoenebeck
3            
4      This file is part of "gigedit" and released under the terms of the      This file is part of "gigedit" and released under the terms of the
5      GNU General Public License version 2.      GNU General Public License version 2.
# Line 12  Line 12 
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.
# Line 46  public: Line 47  public:
47          FILE_PROPS,          FILE_PROPS,
48          INSTR_PROPS,          INSTR_PROPS,
49          SAMPLE_REFS,          SAMPLE_REFS,
50            MACRO_EDITOR,
51            MACROS_SETUP,
52            MACROS,
53      };      };
54    
55      /**      /**
# Line 179  public: Line 183  public:
183      Property<int> sampleRefsWindowW;      Property<int> sampleRefsWindowW;
184      Property<int> sampleRefsWindowH;      Property<int> sampleRefsWindowH;
185    
186        // settings of "MacroEditor" group
187        Property<int> macroEditorWindowX;
188        Property<int> macroEditorWindowY;
189        Property<int> macroEditorWindowW;
190        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);

Legend:
Removed from v.2967  
changed lines
  Added in v.3157

  ViewVC Help
Powered by ViewVC