eVaf
eVaf::GUI::Internal::FatalErr Class Reference

Fatal error message dialog box. More...

#include </var/tmp/work/evaf/src/main/GUI/fatalerr.h>

Public Types

enum  Result { Abort = 0, Ignore = 1 }
 Returns values. More...
 

Public Member Functions

 FatalErr (QString const &title, QString const &text, QWidget *parent=0)
 Creates the fatal error message dialog box. More...
 

Static Public Member Functions

static int message (QString const &title, QString const &text, QWidget *parent=0)
 Shows a fatal error message dialog box. More...
 

Protected Member Functions

virtual void timerEvent (QTimerEvent *)
 Timer event handler. More...
 

Detailed Description

Fatal error message dialog box.

The fatal error message dialog box shows a fatal error message and starts a count-down to close the dialog box and abort the application. Users can click on the Ignore button to keep the application running for diagnostics.

Definition at line 38 of file fatalerr.h.

Member Enumeration Documentation

Returns values.

Enumerator
Abort 

User clicked on the Abort button or the dialog box timed out.

Ignore 

User clicked on the Ignore button.

Definition at line 45 of file fatalerr.h.

Constructor & Destructor Documentation

eVaf::GUI::Internal::FatalErr::FatalErr ( QString const &  title,
QString const &  text,
QWidget parent = 0 
)

Creates the fatal error message dialog box.

Parameters
titleTitle of the dialog box
textText shown on the dialog box
parentOptional parent widget

Member Function Documentation

static int eVaf::GUI::Internal::FatalErr::message ( QString const &  title,
QString const &  text,
QWidget parent = 0 
)
static

Shows a fatal error message dialog box.

Parameters
titleTitle of the dialog box
textText shown on the dialog box
parentOptional parent widget
Returns
The result code
virtual void eVaf::GUI::Internal::FatalErr::timerEvent ( QTimerEvent *  )
protectedvirtual

Timer event handler.


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