diff presetManager.h @ 27:27cdf475aa4b

more fiddling
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Wed, 29 Oct 2014 15:38:38 +0000
parents bd23c1b922be
children a677c027e3a0
line wrap: on
line diff
--- a/presetManager.h	Tue Oct 28 19:15:28 2014 +0000
+++ b/presetManager.h	Wed Oct 29 15:38:38 2014 +0000
@@ -38,6 +38,8 @@
     //bool isFilled;
     PresetIconView* iconView;
     // from save button press
+    Preset(){};
+    
     Preset(vector<int> aCCValues,
            string aname,
            int aID,
@@ -141,6 +143,7 @@
     void exitAndSaveAll(); // save stuff to the json file
     void printAll();
     void clearAll();
+    Preset* getNeutralPreset();
     
     Preset* getPresetAtIndex(int index);
     int getNumberOfPresets(){return thePresets.size();};
@@ -150,13 +153,15 @@
     int timesOpened;
     bool presetAlertShowing;
     void showOverwriteDialog();
-    vector<Preset *> thePresets; 
+    vector<Preset *> thePresets;
+
 
     Json::Value  allPresetsToJson();
     void loadPresetsFromJsonFile(const string &jsonFile);
     void updatePresetFile();
     void showNameDialog();
     
+    Preset neutralPreset;
 };