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

Committer:
charly
Date:
Fri Jan 16 22:23:34 2015 +0000
Revision:
8:fbaeab73fe1a
Parent:
6:819049708d51
Child:
9:c9df0b33d176
Save CurrentSelection of Menu to get back to the correct position.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pyeh9 0:577f0ec71f4c 1 #ifndef MENU_H
pyeh9 0:577f0ec71f4c 2 #define MENU_H
pyeh9 0:577f0ec71f4c 3
pyeh9 0:577f0ec71f4c 4 #include "mbed.h"
pyeh9 0:577f0ec71f4c 5 #include "Selection.h"
pyeh9 0:577f0ec71f4c 6 #include <vector>
pyeh9 0:577f0ec71f4c 7
pyeh9 1:84d263c8932d 8 class Selection;
pyeh9 1:84d263c8932d 9
pyeh9 0:577f0ec71f4c 10 class Menu {
pyeh9 0:577f0ec71f4c 11 private:
pyeh9 0:577f0ec71f4c 12 public:
pyeh9 0:577f0ec71f4c 13 vector<Selection> selections;
pyeh9 1:84d263c8932d 14 char *menuID;
charly 8:fbaeab73fe1a 15
charly 8:fbaeab73fe1a 16 // currently selected Item in Menu (used to return to this point from submenu)
charly 8:fbaeab73fe1a 17 int CurrentSelection;
pyeh9 1:84d263c8932d 18
pyeh9 1:84d263c8932d 19 Menu(char *);
pyeh9 0:577f0ec71f4c 20
pyeh9 0:577f0ec71f4c 21 void add(const Selection &toAdd);
charly 6:819049708d51 22 void changeText(int position, char *newText);
pyeh9 0:577f0ec71f4c 23 char *getText(int);
pyeh9 0:577f0ec71f4c 24 };
pyeh9 0:577f0ec71f4c 25 #endif