Custom menu
Fork of Menu by
Menu.h@3:3fceb6ff921e, 2015-02-26 (annotated)
- Committer:
- LeoHsueh
- Date:
- Thu Feb 26 11:57:11 2015 +0000
- Revision:
- 3:3fceb6ff921e
- Parent:
- 1:84d263c8932d
Add title, action method.; Del input.
Who changed what in which revision?
User | Revision | Line number | New 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 | public: |
pyeh9 | 0:577f0ec71f4c | 12 | vector<Selection> selections; |
pyeh9 | 1:84d263c8932d | 13 | |
LeoHsueh | 3:3fceb6ff921e | 14 | Menu(const char *, Menu *parent); |
LeoHsueh | 3:3fceb6ff921e | 15 | const char *menuID; |
LeoHsueh | 3:3fceb6ff921e | 16 | Menu *parent; |
pyeh9 | 0:577f0ec71f4c | 17 | |
pyeh9 | 0:577f0ec71f4c | 18 | void add(const Selection &toAdd); |
pyeh9 | 0:577f0ec71f4c | 19 | char *getText(int); |
LeoHsueh | 3:3fceb6ff921e | 20 | private: |
LeoHsueh | 3:3fceb6ff921e | 21 | |
pyeh9 | 0:577f0ec71f4c | 22 | }; |
LeoHsueh | 3:3fceb6ff921e | 23 | #endif |