CentralWidget Class Reference

The central component in the Gui. More...

#include <centralwidget.h>

List of all members.

Public Types

enum  ModeSelector {

Public Slots

void printSlot (QPrinter *printer)
void updateScreen (int screenIndex)


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)
MferReadergetReader () const

Detailed Description

The central component in the Gui.

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.

Member Enumeration Documentation

Mode Selector constants, describing the display mode.

NODATA_MODE  Indicates no open file, thus nothing to display.
SINGLECHANNEL_MODE  Indicates display of one channel at a time.
MULTICHANNEL_MODE  Indicates display of multiple channels at once.
LIVE_MODE  Indicates display of a live signal (for future implementation).

Definition at line 55 of file centralwidget.h.

Constructor & Destructor Documentation

CentralWidget::CentralWidget ( QWidget *  parent = 0  ) 


parent The parent widget.

Definition at line 34 of file centralwidget.cpp.

Member Function Documentation

ModeSelector CentralWidget::getActiveMode (  )  const [inline]

gets the active display mode.

The active display mode.

Definition at line 83 of file centralwidget.h.

MferReader * CentralWidget::getReader (  )  const [inline]

Pointer to the mfer reader.

Definition at line 136 of file centralwidget.h.

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.
Always true at the moment.
fix missing return values on this function (they are static).

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.
See also:

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.

The documentation for this class was generated from the following files:

Generated on Wed May 20 14:28:20 2009 for CardioCurves by  doxygen 1.5.9