menu system menus complete

Fork of menuSystemMbed by Brad Smith

Revision:
0:a5ece7312edc
diff -r 000000000000 -r a5ece7312edc MainMenu.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MainMenu.h	Thu Feb 28 00:38:31 2013 +0000
@@ -0,0 +1,31 @@
+//
+//  MainMenu.h
+//  menuSystem
+//
+//  Created by BradDSmith on 2013-02-26.
+//  Copyright (c) 2013 BradDSmith. All rights reserved.
+//
+
+#ifndef __menuSystem__MainMenu__
+#define __menuSystem__MainMenu__
+
+#include "menuItem.h"
+
+class MainMenu {
+    static const int MAXITEMS = 5;
+    menuItem menuItem[MAXITEMS];
+    int highlightedItem;
+    int maxitems;
+
+public:
+    MainMenu();
+    void setMaxItems(int max);
+    void setMenuItem(int locID, int menuID,const char * menuText, int x, int y);
+    void highlightNextItem();
+    void highlightPrevItem();
+    void printMenu();
+    int getHighlightedItem();
+    void erase();
+};
+
+#endif /* defined(__menuSystem__MainMenu__) */