diff testApp.mm @ 4:60b54ba87f6a

Preset save and recall works.
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Thu, 16 Oct 2014 14:34:14 +0100
parents 851833072cf1
children 213df0baed47
line wrap: on
line diff
--- a/testApp.mm	Fri Oct 10 18:22:14 2014 +0100
+++ b/testApp.mm	Thu Oct 16 14:34:14 2014 +0100
@@ -140,17 +140,17 @@
     bottomButtonPanel->addButton(submitButton);
     
     //  button - just for spacing pruposes
-    Buttron * spacerButton = new Buttron(ofGetWidth()*0.5 - p.buttonWidth*0.5,680, p);
-    spacerButton->setLabel("-");
-    messageOrganiser.mapButtonToAction(spacerButton, TRIGGER_CANDIDATE_ID);
-    bottomButtonPanel->addButton(spacerButton);
-    spacerButton->hide();
+    Buttron * saveButton = new Buttron(ofGetWidth()*0.5 - p.buttonWidth*0.5,680, p);
+    saveButton->setLabel("SAVE");
+    messageOrganiser.mapButtonToAction(saveButton, SAVE_PRESET_HIT);
+    bottomButtonPanel->addButton(saveButton);
+    saveButton->show();
     
-    Buttron * spacerButton2 = new Buttron(ofGetWidth()*0.5 - p.buttonWidth*0.5,680, p);
-    spacerButton2->setLabel("-");
-    messageOrganiser.mapButtonToAction(spacerButton2, TRIGGER_CANDIDATE_ID);
-    bottomButtonPanel->addButton(spacerButton2);
-    spacerButton2->hide();
+    Buttron * recallButton = new Buttron(ofGetWidth()*0.5 - p.buttonWidth*0.5,680, p);
+    recallButton->setLabel("RECALL");
+    messageOrganiser.mapButtonToAction(recallButton, RECALL_PRESET_HIT);
+    bottomButtonPanel->addButton(recallButton);
+    recallButton->show();
     
     messageOrganiser.setBottomPanel(bottomButtonPanel);
     UIElements.push_back(bottomButtonPanel);