Lucas Borges
/
MenuLCD_Copy
this locks like shit
Fork of MenuLCD_copy by
menbed/include/menbedNavigator.h@1:f105b690aeb7, 2017-05-19 (annotated)
- Committer:
- LucasMatBorges
- Date:
- Fri May 19 18:48:04 2017 +0000
- Revision:
- 1:f105b690aeb7
- Parent:
- 0:92357d1220f3
R?row mein
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ViniR | 0:92357d1220f3 | 1 | #ifndef _MENBEDNAVIGATOR_H_ |
ViniR | 0:92357d1220f3 | 2 | #define _MENBEDNAVIGATOR_H_ |
ViniR | 0:92357d1220f3 | 3 | |
ViniR | 0:92357d1220f3 | 4 | #include "menbedButtonEvent.h" |
ViniR | 0:92357d1220f3 | 5 | #include "menbedStructure.h" |
ViniR | 0:92357d1220f3 | 6 | #include "menbedDisplayer.h" |
ViniR | 0:92357d1220f3 | 7 | #include "menbedMenu.h" |
ViniR | 0:92357d1220f3 | 8 | |
ViniR | 0:92357d1220f3 | 9 | class MenbedNavigator { |
ViniR | 0:92357d1220f3 | 10 | public: |
ViniR | 0:92357d1220f3 | 11 | MenbedNavigator (MenbedMenu *rootMenu, MenbedDisplayer *displayer); |
ViniR | 0:92357d1220f3 | 12 | void updateDisplay (void); |
ViniR | 0:92357d1220f3 | 13 | void handleButtonEvent (MenbedButtonEvent buttonEvent); |
ViniR | 0:92357d1220f3 | 14 | protected: |
ViniR | 0:92357d1220f3 | 15 | MenbedMenu *activeMenu; |
ViniR | 0:92357d1220f3 | 16 | uint8_t numButtons; |
ViniR | 0:92357d1220f3 | 17 | uint8_t numLines; |
ViniR | 0:92357d1220f3 | 18 | uint8_t lineLength; |
ViniR | 0:92357d1220f3 | 19 | MenbedDisplayer *displayer; |
ViniR | 0:92357d1220f3 | 20 | |
ViniR | 0:92357d1220f3 | 21 | int8_t selectedItemIndex; |
ViniR | 0:92357d1220f3 | 22 | uint8_t topOfScreenItemIndex; |
ViniR | 0:92357d1220f3 | 23 | bool paramEditMode; |
ViniR | 0:92357d1220f3 | 24 | |
ViniR | 0:92357d1220f3 | 25 | void selectItem (void); |
ViniR | 0:92357d1220f3 | 26 | void gotoParent (void); |
ViniR | 0:92357d1220f3 | 27 | void moveUp (void); |
ViniR | 0:92357d1220f3 | 28 | void moveDown (void); |
ViniR | 0:92357d1220f3 | 29 | void incParam (void); |
ViniR | 0:92357d1220f3 | 30 | void decParam (void); |
ViniR | 0:92357d1220f3 | 31 | void saveParam (void); |
ViniR | 0:92357d1220f3 | 32 | void restoreParam (void); |
ViniR | 0:92357d1220f3 | 33 | void printMenu (char *menuStr); |
ViniR | 0:92357d1220f3 | 34 | void printItem (MenbedMenuItem *item, char *line, bool itemSel, bool paramSel); |
ViniR | 0:92357d1220f3 | 35 | bool checkConvSpec (const char *s); |
ViniR | 0:92357d1220f3 | 36 | }; |
ViniR | 0:92357d1220f3 | 37 | |
ViniR | 0:92357d1220f3 | 38 | #endif /* _MENBEDNAVIGATOR_H_ */ |