Ryan Scott / menuSystemMbedBroken

Dependencies:   ANSITermMenuSystem

Fork of menuSystemMbed by Ryan Scott

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MainMenu.h Source File

MainMenu.h

00001 //
00002 //  MainMenu.h
00003 //  menuSystem
00004 //
00005 //  Created by BradDSmith on 2013-02-26.
00006 //  Copyright (c) 2013 BradDSmith. All rights reserved.
00007 //
00008 
00009 #ifndef __menuSystem__MainMenu__
00010 #define __menuSystem__MainMenu__
00011 
00012 #include "menuItem.h"
00013 
00014 class MainMenu {
00015     static const int MAXITEMS = 5;
00016     menuItem menuItem[MAXITEMS];
00017     string Title;
00018     int highlightedItem;
00019     int maxitems;
00020     int selecteditem;
00021     bool selectionstatus;
00022 
00023 public:
00024     MainMenu();
00025     void setMaxItems(int max);
00026     void setMenuItem(int locID, int menuID,const char * menuText, int x, int y);
00027     void setTitle(string);
00028     string getTitle();
00029     void highlightNextItem();
00030     void highlightPrevItem();
00031     void printMenu();
00032     int getHighlightedItem();
00033     void removeselection();  ////// Ask Brad -------------------------------------
00034     void selection();        ////// Ask Brad -------------------------------------
00035     void erase();
00036     void setselectstatus();
00037     int getselecteditem();
00038 };
00039 
00040 #endif /* defined(__menuSystem__MainMenu__) */