CentralWidget Class Reference

The central component in the Gui. More...

#include <centralwidget.h>

List of all members.

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)
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.

Enumerator:
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  ) 

Constructor.

Parameters:
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.

Returns:
The active display mode.

Definition at line 83 of file centralwidget.h.

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

Returns:
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.

Parameters:
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.

Parameters:
fileName The name of the file to be read.
Returns:
Always true at the moment.
Todo:
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.

Parameters:
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.

Parameters:
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:
NavigationWidget::setupSliders()

void CentralWidget::updateScreen ( int  screenIndex  )  [slot]

Updates the data handler and notifies the display widgets.

Parameters:
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