Baseline for testing

Revision:
3:8395f7ab6d3e
Parent:
1:84d263c8932d
--- a/Menu.h	Tue Mar 05 21:24:37 2013 +0000
+++ b/Menu.h	Thu Jul 25 00:42:49 2019 +0000
@@ -3,7 +3,10 @@
 
 #include "mbed.h"
 #include "Selection.h"
+#include "LCD.h"
+
 #include <vector>
+#include <string>
 
 class Selection;
 
@@ -11,12 +14,42 @@
     private:
                
     public:
+        
+        LCD  * lcd;
+        Menu * parent;
+        
+        int update_needed;
+        
+        int cursorPos;  // what selection the cursor points to
+        int cursorLine; // what line of the lcd the cursor is one
+    
         vector<Selection> selections;
-        char *menuID;
+        string menuID;
         
-        Menu(char *);
+        Menu(char *id);
+        Menu(string id);
+        
+    
         
         void add(const Selection &toAdd);
-        char *getText(int);
+        
+        virtual void select();
+        
+        //char * getText() { return menuID.c_str(); };
+        
+        virtual void display(LCD * lcd);
+        
+        void moveUp();
+        void moveDown();
+        
+        virtual void pressClear();  
+        virtual void pressMode();        
+        virtual void pressSet();    
+        virtual void pressDown();    
+        virtual void pressUp();
+        
+        void printMenu();
+        void printCursor();
+        
 };
 #endif
\ No newline at end of file