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

The MainWindow class provides the main application user interface. More...

#include <mainwindow.h>

Inheritance diagram for MNEX::MainWindow:

Public Types

typedef QSharedPointer< MainWindowSPtr
 
typedef QSharedPointer< const MainWindowConstSPtr
 

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)
 

Detailed Description

The MainWindow class provides the main application user interface.

DECLARE CLASS MainWindow

Definition at line 119 of file mainwindow.h.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

MainWindow::MainWindow ( QWidget *  parent = 0)

Constructs a MainWindow which is a child of parent.

Parameters
[in]parentpointer 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.

MainWindow::~MainWindow ( )
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.

Member Function Documentation

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.

Parameters
[in]eventclose 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.

Parameters
[in]msectimeout 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.

Parameters
[in]logMsgmessage
[in]lgkndmessage kind; Message is formated depending on its kind.
[in]lglvlmessage level; Message is displayed depending on its level.

Definition at line 587 of file mainwindow.cpp.


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