Release 1.01
EditTimeMenu.h@5:9f4d4f8ffc00, 2019-09-17 (annotated)
- Committer:
- foxbrianr
- Date:
- Tue Sep 17 13:48:22 2019 +0000
- Revision:
- 5:9f4d4f8ffc00
- Parent:
- 4:7226c43320b5
Beta 2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
foxbrianr | 5:9f4d4f8ffc00 | 1 | /************************************************************************** |
foxbrianr | 5:9f4d4f8ffc00 | 2 | * @file EditTimeMenu.h |
foxbrianr | 5:9f4d4f8ffc00 | 3 | * @brief Base class for implementing the Edit Time Menu display |
foxbrianr | 5:9f4d4f8ffc00 | 4 | * @version: V1.0 |
foxbrianr | 5:9f4d4f8ffc00 | 5 | * @date: 9/17/2019 |
foxbrianr | 5:9f4d4f8ffc00 | 6 | |
foxbrianr | 5:9f4d4f8ffc00 | 7 | * |
foxbrianr | 5:9f4d4f8ffc00 | 8 | * @note |
foxbrianr | 5:9f4d4f8ffc00 | 9 | * Copyright (C) 2019 E3 Design. All rights reserved. |
foxbrianr | 5:9f4d4f8ffc00 | 10 | * |
foxbrianr | 5:9f4d4f8ffc00 | 11 | * @par |
foxbrianr | 5:9f4d4f8ffc00 | 12 | * E3 Designers LLC is supplying this software for use with Cortex-M3 LPC1768 |
foxbrianr | 5:9f4d4f8ffc00 | 13 | * processor based microcontroller for the ESCM 2000 Monitor and Display. |
foxbrianr | 5:9f4d4f8ffc00 | 14 | * * |
foxbrianr | 5:9f4d4f8ffc00 | 15 | * @par |
foxbrianr | 5:9f4d4f8ffc00 | 16 | * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED |
foxbrianr | 5:9f4d4f8ffc00 | 17 | * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF |
foxbrianr | 5:9f4d4f8ffc00 | 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. |
foxbrianr | 5:9f4d4f8ffc00 | 19 | * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR |
foxbrianr | 5:9f4d4f8ffc00 | 20 | * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. |
foxbrianr | 5:9f4d4f8ffc00 | 21 | * |
foxbrianr | 5:9f4d4f8ffc00 | 22 | ******************************************************************************/ |
foxbrianr | 3:8395f7ab6d3e | 23 | #ifndef EDITTIME_MENU_H |
foxbrianr | 3:8395f7ab6d3e | 24 | #define EDITTIME_MENU_H |
foxbrianr | 3:8395f7ab6d3e | 25 | |
foxbrianr | 3:8395f7ab6d3e | 26 | #include "mbed.h" |
foxbrianr | 3:8395f7ab6d3e | 27 | #include "Menu.h" |
foxbrianr | 3:8395f7ab6d3e | 28 | #include "LCD.h" |
foxbrianr | 3:8395f7ab6d3e | 29 | |
foxbrianr | 4:7226c43320b5 | 30 | class EditTimeMenu : public Menu |
foxbrianr | 3:8395f7ab6d3e | 31 | { |
foxbrianr | 3:8395f7ab6d3e | 32 | public : |
foxbrianr | 3:8395f7ab6d3e | 33 | int row; |
foxbrianr | 3:8395f7ab6d3e | 34 | int column; |
foxbrianr | 3:8395f7ab6d3e | 35 | |
foxbrianr | 3:8395f7ab6d3e | 36 | int active_selection; |
foxbrianr | 3:8395f7ab6d3e | 37 | int hours; |
foxbrianr | 3:8395f7ab6d3e | 38 | int mins; |
foxbrianr | 3:8395f7ab6d3e | 39 | int secs; |
foxbrianr | 3:8395f7ab6d3e | 40 | |
foxbrianr | 3:8395f7ab6d3e | 41 | int months; |
foxbrianr | 3:8395f7ab6d3e | 42 | int days; |
foxbrianr | 3:8395f7ab6d3e | 43 | int years; |
foxbrianr | 3:8395f7ab6d3e | 44 | |
foxbrianr | 4:7226c43320b5 | 45 | EditTimeMenu(char* id); |
foxbrianr | 3:8395f7ab6d3e | 46 | |
foxbrianr | 4:7226c43320b5 | 47 | void display(LCD * lcd); |
foxbrianr | 3:8395f7ab6d3e | 48 | |
foxbrianr | 3:8395f7ab6d3e | 49 | virtual void pressMode(); |
foxbrianr | 3:8395f7ab6d3e | 50 | virtual void pressSet(); |
foxbrianr | 3:8395f7ab6d3e | 51 | virtual void pressDown(); |
foxbrianr | 4:7226c43320b5 | 52 | virtual void pressUp(); |
foxbrianr | 4:7226c43320b5 | 53 | virtual void init(); |
foxbrianr | 4:7226c43320b5 | 54 | |
foxbrianr | 4:7226c43320b5 | 55 | |
foxbrianr | 4:7226c43320b5 | 56 | virtual char* getText() { return "Edit Time"; } |
foxbrianr | 3:8395f7ab6d3e | 57 | }; |
foxbrianr | 3:8395f7ab6d3e | 58 | |
foxbrianr | 3:8395f7ab6d3e | 59 | |
foxbrianr | 3:8395f7ab6d3e | 60 | #endif |