Menu system broken

Dependencies:   ANSITermMenuSystem

Fork of menuSystemMbed by Ryan Scott

Committer:
Rybowonder
Date:
Sun Apr 21 20:15:31 2013 +0000
Revision:
5:92389cf2106d
Parent:
4:1178a1905490
Error off the hop

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbedDevLondon 0:a5ece7312edc 1 //
mbedDevLondon 0:a5ece7312edc 2 // MainMenu.h
mbedDevLondon 0:a5ece7312edc 3 // menuSystem
mbedDevLondon 0:a5ece7312edc 4 //
mbedDevLondon 0:a5ece7312edc 5 // Created by BradDSmith on 2013-02-26.
mbedDevLondon 0:a5ece7312edc 6 // Copyright (c) 2013 BradDSmith. All rights reserved.
mbedDevLondon 0:a5ece7312edc 7 //
mbedDevLondon 0:a5ece7312edc 8
mbedDevLondon 0:a5ece7312edc 9 #ifndef __menuSystem__MainMenu__
mbedDevLondon 0:a5ece7312edc 10 #define __menuSystem__MainMenu__
mbedDevLondon 0:a5ece7312edc 11
mbedDevLondon 0:a5ece7312edc 12 #include "menuItem.h"
mbedDevLondon 0:a5ece7312edc 13
mbedDevLondon 0:a5ece7312edc 14 class MainMenu {
mbedDevLondon 0:a5ece7312edc 15 static const int MAXITEMS = 5;
mbedDevLondon 0:a5ece7312edc 16 menuItem menuItem[MAXITEMS];
Rybowonder 4:1178a1905490 17 string Title;
mbedDevLondon 0:a5ece7312edc 18 int highlightedItem;
mbedDevLondon 0:a5ece7312edc 19 int maxitems;
Rybowonder 4:1178a1905490 20 int selecteditem;
Rybowonder 4:1178a1905490 21 bool selectionstatus;
mbedDevLondon 0:a5ece7312edc 22
mbedDevLondon 0:a5ece7312edc 23 public:
mbedDevLondon 0:a5ece7312edc 24 MainMenu();
mbedDevLondon 0:a5ece7312edc 25 void setMaxItems(int max);
mbedDevLondon 0:a5ece7312edc 26 void setMenuItem(int locID, int menuID,const char * menuText, int x, int y);
Rybowonder 4:1178a1905490 27 void setTitle(string);
Rybowonder 4:1178a1905490 28 string getTitle();
mbedDevLondon 0:a5ece7312edc 29 void highlightNextItem();
mbedDevLondon 0:a5ece7312edc 30 void highlightPrevItem();
mbedDevLondon 0:a5ece7312edc 31 void printMenu();
mbedDevLondon 0:a5ece7312edc 32 int getHighlightedItem();
Rybowonder 4:1178a1905490 33 void removeselection(); ////// Ask Brad -------------------------------------
Rybowonder 4:1178a1905490 34 void selection(); ////// Ask Brad -------------------------------------
mbedDevLondon 0:a5ece7312edc 35 void erase();
Rybowonder 4:1178a1905490 36 void setselectstatus();
Rybowonder 5:92389cf2106d 37 int getselecteditem();
mbedDevLondon 0:a5ece7312edc 38 };
mbedDevLondon 0:a5ece7312edc 39
mbedDevLondon 0:a5ece7312edc 40 #endif /* defined(__menuSystem__MainMenu__) */