Library to display menus on TextLCDs. Interaction with functions Up,Down and Select (Buttons or RPG) Based on menu-library from pyeh9

Fork of Menu by Peihsun Yeh

Library to display menus on TextLCDs. Interaction with functions Up,Down and Select (Buttons or RPG) Based on menu-library from pyeh9

Revision:
9:c9df0b33d176
Parent:
8:fbaeab73fe1a
diff -r fbaeab73fe1a -r c9df0b33d176 Menu.h
--- a/Menu.h	Fri Jan 16 22:23:34 2015 +0000
+++ b/Menu.h	Fri Mar 13 18:44:49 2015 +0000
@@ -2,24 +2,41 @@
 #define MENU_H
 
 #include "mbed.h"
-#include "Selection.h"
+#include "MenuItem.h"
 #include <vector>
 
-class Selection;
+class MenuItem;
 
+/** Menu: Create Menues with Submenues, MenuItems, actions,...
+*
+*/
 class Menu {
     private:
     public:
-        vector<Selection> selections;
+        /** vector of of Menu-Items
+        *
+        */
+        vector<MenuItem> selections;
+        
+        /** name of a menu
+        */
         char *menuID;
 
         // currently selected Item in Menu (used to return to this point from submenu)
         int  CurrentSelection;       
         
+        /** a menu
+        */
         Menu(char *);
         
-        void add(const Selection &toAdd);
+        /** add an Item to the menu
+        */
+        void add(const MenuItem &toAdd);
+        /** change the text of an menu-item
+        */
         void changeText(int position, char *newText);
+        /** get current text of menu-item
+        */
         char *getText(int);
 };
 #endif
\ No newline at end of file