MNE-CPP
beta 1.0
|
The RunWidget class provides the central widget for the run mode. More...
#include <runwidget.h>
Public Types | |
typedef QSharedPointer< RunWidget > | SPtr |
typedef QSharedPointer< const RunWidget > | ConstSPtr |
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 *) |
The RunWidget class provides the central widget for the run mode.
DECLARE CLASS RunWidget
Definition at line 78 of file runwidget.h.
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.
RunWidget::RunWidget | ( | QWidget * | dispWidget, |
QWidget * | parent = 0 |
||
) |
Constructs a RunWidget which is a child of parent.
[in] | dispWidget | pointer to widget which holds the real time displays. |
[in] | parent | pointer 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.
|
virtual |
Destroys the RunWidget.
Definition at line 87 of file runwidget.cpp.
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.
[in] | page | pointer to widget which should be added in a new tab. |
[in] | label | if 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. |
Definition at line 101 of file runwidget.cpp.
|
protectedvirtual |
This event handler is called when RunWidget is closed.
Definition at line 153 of file runwidget.cpp.
|
signal |
This signal is emitted when RunWidget is closed. Used when full screen mode is terminated.
|
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.
[in] | factor | zoom factor for vertical direction. |
Definition at line 117 of file runwidget.cpp.