#include <centralwidget.h>
Public Types | |
enum | ModeSelector { NODATA_MODE, SINGLECHANNEL_MODE, MULTICHANNEL_MODE, LIVE_MODE } |
Public Slots | |
void | printSlot (QPrinter *printer) |
void | updateScreen (int screenIndex) |
Signals | |
void | setupSliders (int screens, int patientId, QDateTime *startingPoint) |
Public Member Functions | |
CentralWidget (QWidget *parent=0) | |
void | setActiveMode (ModeSelector newMode) |
ModeSelector | getActiveMode () const |
bool | readFile (const QString &fileName) |
MferReader * | getReader () const |
CentralWidget is the central component of the Gui, containing the plotting widgets and their data handler class. It also contains the file reader classes. As such it takes on the role of model in the traditional model-view-controller design paradigm, although it also contains parts of the view.
Definition at line 50 of file centralwidget.h.
Mode Selector constants, describing the display mode.
Definition at line 55 of file centralwidget.h.
CentralWidget::CentralWidget | ( | QWidget * | parent = 0 |
) |
ModeSelector CentralWidget::getActiveMode | ( | ) | const [inline] |
gets the active display mode.
Definition at line 83 of file centralwidget.h.
MferReader * CentralWidget::getReader | ( | ) | const [inline] |
void CentralWidget::printSlot | ( | QPrinter * | printer | ) | [slot] |
Paints the centralwidget on a printer object.
printer | The printer object to be painted upon. |
Definition at line 137 of file centralwidget.cpp.
bool CentralWidget::readFile | ( | const QString & | fileName | ) |
Reads and parses the selected file.
fileName | The name of the file to be read. |
Definition at line 106 of file centralwidget.cpp.
void CentralWidget::setActiveMode | ( | ModeSelector | newMode | ) |
Sets the active display mode.
newMode | The new display mode. |
Definition at line 75 of file centralwidget.cpp.
void CentralWidget::setupSliders | ( | int | screens, | |
int | patientId, | |||
QDateTime * | startingPoint | |||
) | [signal] |
Sets up the navigation widget.
Signals the navigation widget with information about the currently parsed file.
screens | The total number of screens in the file. | |
patientId | The patient identification number, if present. | |
startingPoint | Starting date and time of the file. |
void CentralWidget::updateScreen | ( | int | screenIndex | ) | [slot] |
Updates the data handler and notifies the display widgets.
screenIndex | The screen number we want to see. |
Definition at line 155 of file centralwidget.cpp.