E3 Designers / Menu

Dependents:   mbed_escm2000

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers EditAddressMenu.h Source File

EditAddressMenu.h

00001 /**************************************************************************
00002  * @file     EditAddressMenu.h
00003  * @brief    Base class for implementing the Edit Address Menu display
00004  * @version: V1.0
00005  * @date:    9/17/2019
00006 
00007  *
00008  * @note
00009  * Copyright (C) 2019 E3 Design. All rights reserved.
00010  *
00011  * @par
00012  * E3 Designers LLC is supplying this software for use with Cortex-M3 LPC1768
00013  * processor based microcontroller for the ESCM 2000 Monitor and Display.  
00014  *  *
00015  * @par
00016  * THIS SOFTWARE IS PROVIDED "AS IS".  NO WARRANTIES, WHETHER EXPRESS, IMPLIED
00017  * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
00018  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
00019  * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
00020  * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
00021  *
00022  ******************************************************************************/
00023 #ifndef EDITADDRESS_MENU_H
00024 #define EDITADDRESS_MENU_H
00025 
00026 #include "mbed.h"
00027 #include "Menu.h"
00028 #include "LCD.h"
00029 #include "AddressMap.h"
00030 
00031 class EditAddressMenu : public Menu 
00032 {
00033    public :
00034         int row;
00035         int column;
00036         int top;
00037         int bottom;
00038         
00039         
00040         char tmp_description[MAX_ADDR_LENGTH];
00041         
00042         
00043         int active_selection;
00044         int active_address;
00045         int active_position;
00046         
00047         EditAddressMenu(char* id);
00048    
00049         void display(LCD * lcd);
00050     
00051         virtual void pressMode();        
00052         virtual void pressSet();    
00053         virtual void pressDown();    
00054         virtual void pressUp();
00055         virtual void init();
00056         
00057         virtual char* getText() { return "Edit Addresses"; }
00058         
00059         void nextValidChar (char * c, int direction);
00060 };
00061 
00062 
00063 #endif