Austin Terrell / Menu

Files at this revision

API Documentation at this revision

Comitter:
austinterrell
Date:
Tue Dec 03 19:37:11 2019 +0000
Parent:
2:2654dc659298
Commit message:
Removed some unwanted debug code

Changed in this revision

Menu.cpp Show annotated file Show diff for this revision Revisions of this file
Navigator.cpp Show annotated file Show diff for this revision Revisions of this file
Selection.cpp Show annotated file Show diff for this revision Revisions of this file
Selection.h Show annotated file Show diff for this revision Revisions of this file
--- a/Menu.cpp	Tue Mar 05 21:24:37 2013 +0000
+++ b/Menu.cpp	Tue Dec 03 19:37:11 2019 +0000
@@ -10,6 +10,4 @@
 void Menu::add(const Selection &toAdd)
 {
     selections.push_back(toAdd);
-}
-
-
+}
\ No newline at end of file
--- a/Navigator.cpp	Tue Mar 05 21:24:37 2013 +0000
+++ b/Navigator.cpp	Tue Dec 03 19:37:11 2019 +0000
@@ -29,10 +29,7 @@
 }
 
 void Navigator::printCursor()
-{   
-    if(activeMenu->selections[cursorPos].childMenu == NULL) printf("No child menu\n");
-    else printf("child menu: %s\n", activeMenu->selections[cursorPos].childMenu->menuID);
-     
+{        
     lcd->locate(0,0);
     if(cursorLine == 1){
         lcd->putc('>');
--- a/Selection.cpp	Tue Mar 05 21:24:37 2013 +0000
+++ b/Selection.cpp	Tue Dec 03 19:37:11 2019 +0000
@@ -2,5 +2,5 @@
 #include "Selection.h"
 #include "TextLCD.h"
 
-Selection::Selection(void (*fun)(), int position, Menu *child, char* text) : 
-    fun(fun), selText(text), pos(position), childMenu(child) {}
+Selection::Selection(void (*fun)(), Menu *child, char* text) : 
+    fun(fun), selText(text), childMenu(child) {}
--- a/Selection.h	Tue Mar 05 21:24:37 2013 +0000
+++ b/Selection.h	Tue Dec 03 19:37:11 2019 +0000
@@ -10,12 +10,10 @@
         
     public:
         void (*fun)();   // pointer to a function to execute 
-        char* selText;   // selection text
-        int pos;         // selection position
+        char *selText;   // selection text
         Menu *childMenu; 
         
-        Selection(void (*)(), int, Menu *, char *); 
-         
+        Selection(void (*)(), Menu *, char *); 
 };
 
 #endif 
\ No newline at end of file