Entropy Piano Tuner
1.1.3 (documentation not yet complete)
An open-source experimental software for piano tuning by entropy minimization
|
The ModeSelectorAdapter class. More...
#include <modeselectoradapter.h>
Public Member Functions | |
ModeSelectorAdapter () | |
ModeSelectorAdapter::ModeSelectorAdapter. More... | |
~ModeSelectorAdapter () | |
Protected Member Functions | |
void | setMode (OperationMode m) |
Set operation mode. More... | |
Protected Attributes | |
OperationMode | mCurrentMode |
The ModeSelectorAdapter class.
The tuner operates in different modes (recording, calculating, tuning etc.). This class provides an abstract interface which allows the GUI to switch between the operation modes.
In Qt this class is implemented in ModeSelector (file modeselector.h).
Definition at line 39 of file modeselectoradapter.h.
ModeSelectorAdapter::ModeSelectorAdapter | ( | ) |
ModeSelectorAdapter::ModeSelectorAdapter.
The constructor initializes the mCurrentMode variable with MODE_COUNT, indicating that the operation mode has not yet been set.
Definition at line 42 of file modeselectoradapter.cpp.
|
inline |
Definition at line 43 of file modeselectoradapter.h.
|
protected |
Set operation mode.
This function has to be called by the GUI to change the operation mode. If the operation mode is different from the previous one, the function sends a corresponding message.
m | : New operation mode |
Definition at line 60 of file modeselectoradapter.cpp.
|
protected |
Definition at line 47 of file modeselectoradapter.h.