Mercurial > hg > touchkeys
comparison Source/Mappings/MappingFactory.h @ 33:e8965409903e
First (incomplete) start on save/load presets.
author | Andrew McPherson <andrewm@eecs.qmul.ac.uk> |
---|---|
date | Thu, 20 Mar 2014 23:18:41 +0000 |
parents | 3580ffe87dc8 |
children | 90ce403d0dc5 |
comparison
equal
deleted
inserted
replaced
32:5f25a9b0139e | 33:e8965409903e |
---|---|
132 virtual bool hasBasicEditor() { return false; } | 132 virtual bool hasBasicEditor() { return false; } |
133 virtual MappingEditorComponent* createBasicEditor() { return nullptr; } | 133 virtual MappingEditorComponent* createBasicEditor() { return nullptr; } |
134 virtual bool hasExtendedEditor() { return false; } | 134 virtual bool hasExtendedEditor() { return false; } |
135 virtual MappingEditorComponent* createExtendedEditor() { return nullptr; } | 135 virtual MappingEditorComponent* createExtendedEditor() { return nullptr; } |
136 | 136 |
137 // ****** Preset Save/Load ****** | |
138 // These methods generate XML settings files and reload values from them | |
139 // The specific implementation is up to the subclass | |
140 | |
141 virtual XmlElement* getPreset() = 0; | |
142 virtual bool loadPreset(XmlElement const* preset) = 0; | |
143 | |
137 protected: | 144 protected: |
138 // ***** Member Variables ***** | 145 // ***** Member Variables ***** |
139 | 146 |
140 PianoKeyboard& keyboard_; // Reference to the main keyboard controller | 147 PianoKeyboard& keyboard_; // Reference to the main keyboard controller |
141 | 148 |