MNE-CPP
beta 1.0
|
The MainWindow class provides the main application user interface. More...
#include <mainwindow.h>
Public Types | |
typedef QSharedPointer< MainWindow > | SPtr |
typedef QSharedPointer< const MainWindow > | ConstSPtr |
Public Member Functions | |
MainWindow (QWidget *parent=0) | |
virtual | ~MainWindow () |
void | clear () |
void | closeEvent (QCloseEvent *event) |
void | startTimer (int msec) |
void | stopTimer () |
void | writeToLog (const QString &logMsg, LogKind lgknd=_LogKndMessage, LogLevel lglvl=_LogLvNormal) |
The MainWindow class provides the main application user interface.
DECLARE CLASS MainWindow
Definition at line 119 of file mainwindow.h.
typedef QSharedPointer<const MainWindow> MNEX::MainWindow::ConstSPtr |
Const shared pointer type for MainWindow.
Definition at line 124 of file mainwindow.h.
typedef QSharedPointer<MainWindow> MNEX::MainWindow::SPtr |
Shared pointer type for MainWindow.
Definition at line 123 of file mainwindow.h.
MainWindow::MainWindow | ( | QWidget * | parent = 0 | ) |
Constructs a MainWindow which is a child of parent.
[in] | parent | pointer to parent widget; If parent is 0, the new MainWindow becomes a window. If parent is another widget, MainWindow becomes a child window inside parent. MainWindow is deleted when its parent is deleted. |
Definition at line 90 of file mainwindow.cpp.
|
virtual |
Destroys the MainWindow. All MainWindow's children are deleted first. The application exits if MainWindow is the main widget.
Definition at line 138 of file mainwindow.cpp.
void MainWindow::clear | ( | ) |
Garbage collection
Definition at line 161 of file mainwindow.cpp.
void MainWindow::closeEvent | ( | QCloseEvent * | event | ) |
This event handler is called when Qt receives a window close request from the window system.
[in] | event | close event |
Definition at line 170 of file mainwindow.cpp.
void MainWindow::startTimer | ( | int | msec | ) |
Starts or restarts the main application timer with a timeout interval of msec milliseconds.
[in] | msec | timeout interval in milliseconds |
Definition at line 761 of file mainwindow.cpp.
void MainWindow::stopTimer | ( | ) |
Stops the main application timer.
Definition at line 774 of file mainwindow.cpp.
void MainWindow::writeToLog | ( | const QString & | logMsg, |
LogKind | lgknd = _LogKndMessage , |
||
LogLevel | lglvl = _LogLvNormal |
||
) |
Writes to MainWindow log.
[in] | logMsg | message |
[in] | lgknd | message kind; Message is formated depending on its kind. |
[in] | lglvl | message level; Message is displayed depending on its level. |
Definition at line 587 of file mainwindow.cpp.