Abstract menu object for PiFace CAD.
More...
#include <abstractmenu.h>
|
| AbstractMenu () |
|
virtual | ~AbstractMenu () |
|
virtual AbstractMenu * | newMenu ()=0 |
| Pure virtual function, creates the next Menu object Pure virtual function, that is meant to create a the AbstractMenu object that comes after the MenuObject that called it. More...
|
|
virtual void | setUpperText () |
| Sets the first row of the PiFace CAD to the current option choosen Uses the C library pifacecad.h to control the display. More...
|
|
virtual void | setUpperText (const char *) |
| Sets the first row of the PiFace CAD to the current option choosen Uses the C library pifacecad.h to control the display. More...
|
|
virtual void | next () |
| Toggles the second row of the PiFace CAD to the next option Uses the C library pifacecad.h to control the display. More...
|
|
virtual void | setLowerText () |
| Sets the second row of the PiFace CAD to the current option choosen Uses the C library pifacecad.h to control the display. More...
|
|
Abstract menu object for PiFace CAD.
AbstractMenu is the base class for menu objects to be used to create a small logical menu that can be called from the PiFace CAD
- Author
- Martin
Definition at line 17 of file abstractmenu.h.
AbstractMenu::AbstractMenu |
( |
| ) |
|
virtual AbstractMenu::~AbstractMenu |
( |
| ) |
|
|
inlinevirtual |
Pure virtual function, creates the next Menu object Pure virtual function, that is meant to create a the AbstractMenu object that comes after the MenuObject that called it.
What AbstractMenu object that are created depends on in which object the function was called.
- Parameters
-
currentOption | inherited from AbstractMenu to realize what Object to create. |
Implemented in EcgCaptureMenu, BluetoothMenu, SettingsMenu, and BaseMenu.
void AbstractMenu::next |
( |
| ) |
|
|
virtual |
Toggles the second row of the PiFace CAD to the next option Uses the C library pifacecad.h to control the display.
Definition at line 27 of file abstractmenu.cpp.
void AbstractMenu::setLowerText |
( |
| ) |
|
|
virtual |
Sets the second row of the PiFace CAD to the current option choosen Uses the C library pifacecad.h to control the display.
Definition at line 21 of file abstractmenu.cpp.
void AbstractMenu::setUpperText |
( |
| ) |
|
|
virtual |
Sets the first row of the PiFace CAD to the current option choosen Uses the C library pifacecad.h to control the display.
Definition at line 9 of file abstractmenu.cpp.
void AbstractMenu::setUpperText |
( |
const char * |
input | ) |
|
|
virtual |
Sets the first row of the PiFace CAD to the current option choosen Uses the C library pifacecad.h to control the display.
- Parameters
-
text | to display on upper row of PiFace CAD |
Definition at line 15 of file abstractmenu.cpp.
int AbstractMenu::currentOption |
|
protected |
Counter that keeps track of the option visible on the PiFace CAD.
- Parameters
-
Definition at line 82 of file abstractmenu.h.
int AbstractMenu::numberOfOptions |
|
protected |
number of elements stored in the options vector. To be set by the derived AbstractMenu object
- Parameters
-
Definition at line 76 of file abstractmenu.h.
std::vector<std::string> AbstractMenu::options |
|
protected |
std::vector containing the different options to display on the PiFace CAD To be set by the derived AbstractMenu object
- Parameters
-
Definition at line 70 of file abstractmenu.h.
The documentation for this class was generated from the following files: