BioSignalPi
v2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
PiFace-Interface
basemenu.cpp
Go to the documentation of this file.
1
#include "
basemenu.h
"
2
#include "
ecgcapturemenu.h
"
3
#include "
bluetoothmenu.h
"
4
5
BaseMenu::BaseMenu
()
6
{
7
numberOfOptions
=1;
8
options
={
"Ecg Capture"
,
"Bluetooth"
};
9
}
10
11
AbstractMenu
*
BaseMenu::newMenu
(){
12
AbstractMenu
*
newMenu
=0;
13
switch
(
currentOption
){
14
case
0:
15
setUpperText
();
16
newMenu=
new
EcgCaptureMenu
;
17
break
;
18
19
case
1:
20
setUpperText
();
21
newMenu=
new
BluetoothMenu
;
22
break
;
23
}
24
return
newMenu
;
25
26
27
}
28
29
bluetoothmenu.h
ecgcapturemenu.h
BaseMenu::BaseMenu
BaseMenu()
Definition:
basemenu.cpp:5
EcgCaptureMenu
Menu were the user can chosse between SettingsMenu or starting ECG-capture The start menu starts the ...
Definition:
ecgcapturemenu.h:14
AbstractMenu
Abstract menu object for PiFace CAD.
Definition:
abstractmenu.h:17
AbstractMenu::numberOfOptions
int numberOfOptions
number of elements stored in the options vector. To be set by the derived AbstractMenu object ...
Definition:
abstractmenu.h:76
BaseMenu::newMenu
virtual AbstractMenu * newMenu()
Pure virtual function, creates the next Menu object Pure virtual function, that is meant to create a ...
Definition:
basemenu.cpp:11
AbstractMenu::options
std::vector< std::string > options
std::vector containing the different options to display on the PiFace CAD To be set by the derived Ab...
Definition:
abstractmenu.h:70
BluetoothMenu
The BluetoothMenu class.
Definition:
bluetoothmenu.h:10
AbstractMenu::setUpperText
virtual void setUpperText()
Sets the first row of the PiFace CAD to the current option choosen Uses the C library pifacecad...
Definition:
abstractmenu.cpp:9
AbstractMenu::currentOption
int currentOption
Counter that keeps track of the option visible on the PiFace CAD.
Definition:
abstractmenu.h:82
basemenu.h
Generated on Mon Feb 8 2016 10:21:30 for BioSignalPi by
1.8.11