MNE-CPP  beta 1.0
Public Types | Signals | Public Member Functions | Protected Member Functions | List of all members
MNEX::RunWidget Class Reference

The RunWidget class provides the central widget for the run mode. More...

#include <runwidget.h>

Inheritance diagram for MNEX::RunWidget:

Public Types

typedef QSharedPointer< RunWidgetSPtr
 
typedef QSharedPointer< const RunWidgetConstSPtr
 

Signals

void displayClosed ()
 

Public Member Functions

 RunWidget (QWidget *dispWidget, QWidget *parent=0)
 
virtual ~RunWidget ()
 
int addTab (QWidget *page, const QString &label)
 
void setStandardZoom ()
 
void zoomVert (float factor)
 

Protected Member Functions

virtual void resizeEvent (QResizeEvent *)
 
virtual void closeEvent (QCloseEvent *)
 

Detailed Description

The RunWidget class provides the central widget for the run mode.

DECLARE CLASS RunWidget

Definition at line 78 of file runwidget.h.

Member Typedef Documentation

typedef QSharedPointer<const RunWidget> MNEX::RunWidget::ConstSPtr

Const shared pointer type for RunWidget.

Definition at line 83 of file runwidget.h.

typedef QSharedPointer<RunWidget> MNEX::RunWidget::SPtr

Shared pointer type for RunWidget.

Definition at line 82 of file runwidget.h.

Constructor & Destructor Documentation

RunWidget::RunWidget ( QWidget *  dispWidget,
QWidget *  parent = 0 
)

Constructs a RunWidget which is a child of parent.

Parameters
[in]dispWidgetpointer to widget which holds the real time displays.
[in]parentpointer to parent widget; If parent is 0, the new RunWidget becomes a window. If parent is another widget, RunWidget becomes a child window inside parent. RunWidget is deleted when its parent is deleted.

Definition at line 62 of file runwidget.cpp.

RunWidget::~RunWidget ( )
virtual

Destroys the RunWidget.

Definition at line 87 of file runwidget.cpp.

Member Function Documentation

int RunWidget::addTab ( QWidget *  page,
const QString &  label 
)

Adds a tab with the given page and label to the RunWidget, and returns the index of the tab in the tab bar.

Parameters
[in]pagepointer to widget which should be added in a new tab.
[in]labelif the tab's label contains an ampersand, the letter following the ampersand is used as a shortcut for the tab, e.g. if the label is "Bro&wse" then Alt+W becomes a shortcut which will move the focus to this tab.
Returns
the index of the tab in the tab bar.

Definition at line 101 of file runwidget.cpp.

void RunWidget::closeEvent ( QCloseEvent *  )
protectedvirtual

This event handler is called when RunWidget is closed.

Definition at line 153 of file runwidget.cpp.

void MNEX::RunWidget::displayClosed ( )
signal

This signal is emitted when RunWidget is closed. Used when full screen mode is terminated.

void RunWidget::resizeEvent ( QResizeEvent *  )
protectedvirtual

This event handler is called when RunWidget is resized.

Definition at line 135 of file runwidget.cpp.

void RunWidget::setStandardZoom ( )

Sets zoom of display tab to standard.

Definition at line 109 of file runwidget.cpp.

void RunWidget::zoomVert ( float  factor)

Zooms display tab with given factor in vertical direction.

Parameters
[in]factorzoom factor for vertical direction.

Definition at line 117 of file runwidget.cpp.


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