/[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 3831 by schoenebeck, Thu Oct 15 18:08:49 2020 UTC
# Line 1  Line 1 
1  /*  /*
2      Copyright (c) 2014-2016 Christian Schoenebeck      Copyright (c) 2014-2020 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.
6  */  */
# 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 45  public: Line 46  public:
46          MIDI_RULES,          MIDI_RULES,
47          FILE_PROPS,          FILE_PROPS,
48          INSTR_PROPS,          INSTR_PROPS,
49            SAMPLE_PROPS,
50          SAMPLE_REFS,          SAMPLE_REFS,
51            MACRO_EDITOR,
52            MACROS_SETUP,
53            MACROS,
54      };      };
55    
56      /**      /**
# Line 68  public: Line 73  public:
73                  sigc::bind(                  sigc::bind(
74                      sigc::bind(                      sigc::bind(
75                          sigc::bind(                          sigc::bind(
76                              sigc::mem_fun(m_settings, &Settings::onPropertyChanged),                              sigc::mem_fun(*m_settings, &Settings::onPropertyChanged),
77                              m_group                              m_group
78                          ),                          ),
79                          type                          type
# Line 88  public: Line 93  public:
93                  sigc::bind(                  sigc::bind(
94                      sigc::bind(                      sigc::bind(
95                          sigc::bind(                          sigc::bind(
96                              sigc::mem_fun(m_settings, &Settings::onPropertyChanged),                              sigc::mem_fun(*m_settings, &Settings::onPropertyChanged),
97                              m_group                              m_group
98                          ),                          ),
99                          type                          type
# Line 123  public: Line 128  public:
128      Property<bool> moveRootNoteWithRegionMoved; ///< if enabled, the root note(s) of regions are automatically moving when the user drags a region around at the virtual keyboard      Property<bool> moveRootNoteWithRegionMoved; ///< if enabled, the root note(s) of regions are automatically moving when the user drags a region around at the virtual keyboard
129      Property<bool> autoRestoreWindowDimension;      Property<bool> autoRestoreWindowDimension;
130      Property<bool> saveWithTemporaryFile; ///< If enabled and the user selects "Save" from the main menu, then the file is first saved as separate temporary file and after the save operation completed the temporary file is moved over the original file.      Property<bool> saveWithTemporaryFile; ///< If enabled and the user selects "Save" from the main menu, then the file is first saved as separate temporary file and after the save operation completed the temporary file is moved over the original file.
131        Property<bool> showTooltips; ///< Whether tooltips specifically intended for newbies should be displayed throughout the application (default: yes).
132        Property<bool> instrumentDoubleClickOpensProps; ///< If enabled then double clicking on an instrument of the instruments list view will show the selected instrument's properties dialog.
133    
134      // settings of "MainWindow" group      // settings of "MainWindow" group
135      Property<int> mainWindowX;      Property<int> mainWindowX;
136      Property<int> mainWindowY;      Property<int> mainWindowY;
137      Property<int> mainWindowW;      Property<int> mainWindowW;
138      Property<int> mainWindowH;      Property<int> mainWindowH;
139        Property<int> mainWindowSplitterPosX;
140    
141      // settings of "ScriptEditor" group      // settings of "ScriptEditor" group
142      Property<int> scriptEditorWindowX;      Property<int> scriptEditorWindowX;
# Line 173  public: Line 181  public:
181      Property<int> instrPropsWindowW;      Property<int> instrPropsWindowW;
182      Property<int> instrPropsWindowH;      Property<int> instrPropsWindowH;
183    
184        // settings of "SampleProps" group
185        Property<int> samplePropsWindowX;
186        Property<int> samplePropsWindowY;
187        Property<int> samplePropsWindowW;
188        Property<int> samplePropsWindowH;
189    
190      // settings of "SampleRefs" group      // settings of "SampleRefs" group
191      Property<int> sampleRefsWindowX;      Property<int> sampleRefsWindowX;
192      Property<int> sampleRefsWindowY;      Property<int> sampleRefsWindowY;
193      Property<int> sampleRefsWindowW;      Property<int> sampleRefsWindowW;
194      Property<int> sampleRefsWindowH;      Property<int> sampleRefsWindowH;
195    
196        // settings of "MacroEditor" group
197        Property<int> macroEditorWindowX;
198        Property<int> macroEditorWindowY;
199        Property<int> macroEditorWindowW;
200        Property<int> macroEditorWindowH;
201    
202        // settings of "MacrosSetup" group
203        Property<int> macrosSetupWindowX;
204        Property<int> macrosSetupWindowY;
205        Property<int> macrosSetupWindowW;
206        Property<int> macrosSetupWindowH;
207    
208      static Settings* singleton();      static Settings* singleton();
209      Settings();      Settings();
210      void load();      void load();
211        void loadMacros(std::vector<Serialization::Archive>& macros);
212        void saveMacros(const std::vector<Serialization::Archive>& macros);
213    
214  protected:  protected:
215      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.3831

  ViewVC Help
Powered by ViewVC