BioSignalPi
v2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
PiFace-Interface
bluetoothmenu.cpp
Go to the documentation of this file.
1
#include "
bluetoothmenu.h
"
2
#include "
settingsmenu.h
"
3
4
BluetoothMenu::BluetoothMenu
()
5
{
6
numberOfOptions
=1;
7
options
={
"Default"
,
"Default"
};
8
9
}
10
14
AbstractMenu
*
BluetoothMenu::newMenu
(){
15
AbstractMenu
*
newMenu
=0;
16
switch
(
currentOption
){
17
case
0:
18
newMenu=
new
SettingsMenu
;
19
break
;
20
case
1:
21
newMenu=
new
BaseMenu
;
22
}
23
return
newMenu
;
24
25
26
}
27
28
bluetoothmenu.h
BaseMenu::BaseMenu
BaseMenu()
Definition:
basemenu.cpp:5
settingsmenu.h
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
BluetoothMenu::newMenu
virtual AbstractMenu * newMenu()
Does nothing.
Definition:
bluetoothmenu.cpp:14
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::BluetoothMenu
BluetoothMenu()
Definition:
bluetoothmenu.cpp:4
SettingsMenu
The SettingsMenu class for the PiFace GUI.
Definition:
settingsmenu.h:10
AbstractMenu::currentOption
int currentOption
Counter that keeps track of the option visible on the PiFace CAD.
Definition:
abstractmenu.h:82
Generated on Mon Feb 8 2016 10:21:30 for BioSignalPi by
1.8.11