Menu system broken
Dependencies: ANSITermMenuSystem
Fork of menuSystemMbed by
MainMenu.h
- Committer:
- Rybowonder
- Date:
- 2013-05-04
- Revision:
- 8:6ddb8c26387a
- Parent:
- 5:92389cf2106d
File content as of revision 8:6ddb8c26387a:
// // 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]; string Title; int highlightedItem; int maxitems; int selecteditem; bool selectionstatus; public: MainMenu(); void setMaxItems(int max); void setMenuItem(int locID, int menuID,const char * menuText, int x, int y); void setTitle(string); string getTitle(); void highlightNextItem(); void highlightPrevItem(); void printMenu(); int getHighlightedItem(); void removeselection(); ////// Ask Brad ------------------------------------- void selection(); ////// Ask Brad ------------------------------------- void erase(); void setselectstatus(); int getselecteditem(); }; #endif /* defined(__menuSystem__MainMenu__) */