Release 1.01
EditAddressMenu.h@4:7226c43320b5, 2019-09-12 (annotated)
- Committer:
- foxbrianr
- Date:
- Thu Sep 12 11:27:50 2019 +0000
- Revision:
- 4:7226c43320b5
- Child:
- 5:9f4d4f8ffc00
beta1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
foxbrianr | 4:7226c43320b5 | 1 | #ifndef EDITADDRESS_MENU_H |
foxbrianr | 4:7226c43320b5 | 2 | #define EDITADDRESS_MENU_H |
foxbrianr | 4:7226c43320b5 | 3 | |
foxbrianr | 4:7226c43320b5 | 4 | #include "mbed.h" |
foxbrianr | 4:7226c43320b5 | 5 | #include "Menu.h" |
foxbrianr | 4:7226c43320b5 | 6 | #include "LCD.h" |
foxbrianr | 4:7226c43320b5 | 7 | #include "AddressMap.h" |
foxbrianr | 4:7226c43320b5 | 8 | |
foxbrianr | 4:7226c43320b5 | 9 | class EditAddressMenu : public Menu |
foxbrianr | 4:7226c43320b5 | 10 | { |
foxbrianr | 4:7226c43320b5 | 11 | public : |
foxbrianr | 4:7226c43320b5 | 12 | int row; |
foxbrianr | 4:7226c43320b5 | 13 | int column; |
foxbrianr | 4:7226c43320b5 | 14 | int top; |
foxbrianr | 4:7226c43320b5 | 15 | int bottom; |
foxbrianr | 4:7226c43320b5 | 16 | |
foxbrianr | 4:7226c43320b5 | 17 | |
foxbrianr | 4:7226c43320b5 | 18 | char tmp_description[MAX_ADDR_LENGTH]; |
foxbrianr | 4:7226c43320b5 | 19 | |
foxbrianr | 4:7226c43320b5 | 20 | |
foxbrianr | 4:7226c43320b5 | 21 | int active_selection; |
foxbrianr | 4:7226c43320b5 | 22 | int active_address; |
foxbrianr | 4:7226c43320b5 | 23 | int active_position; |
foxbrianr | 4:7226c43320b5 | 24 | |
foxbrianr | 4:7226c43320b5 | 25 | EditAddressMenu(char* id); |
foxbrianr | 4:7226c43320b5 | 26 | |
foxbrianr | 4:7226c43320b5 | 27 | void display(LCD * lcd); |
foxbrianr | 4:7226c43320b5 | 28 | |
foxbrianr | 4:7226c43320b5 | 29 | virtual void pressMode(); |
foxbrianr | 4:7226c43320b5 | 30 | virtual void pressSet(); |
foxbrianr | 4:7226c43320b5 | 31 | virtual void pressDown(); |
foxbrianr | 4:7226c43320b5 | 32 | virtual void pressUp(); |
foxbrianr | 4:7226c43320b5 | 33 | virtual void init(); |
foxbrianr | 4:7226c43320b5 | 34 | |
foxbrianr | 4:7226c43320b5 | 35 | virtual char* getText() { return "Edit Addresses"; } |
foxbrianr | 4:7226c43320b5 | 36 | |
foxbrianr | 4:7226c43320b5 | 37 | void nextValidChar (char * c, int direction); |
foxbrianr | 4:7226c43320b5 | 38 | }; |
foxbrianr | 4:7226c43320b5 | 39 | |
foxbrianr | 4:7226c43320b5 | 40 | |
foxbrianr | 4:7226c43320b5 | 41 | #endif |