TarzaNN
TarzaNN neural network simulator
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes
UI_Message Class Reference

#include <UI_Message.h>

List of all members.

Public Types

enum  Type {
  Info = 0, Warning = 1, Error = 2, Popup = 3,
  UI_Update = 4, UI_Repaint = 5
}

Public Member Functions

 UI_Message (const Type &tmpType, const QString &tmpText, UI_Widget *theWidget)
QString getText ()
QString getType ()

Static Public Member Functions

static void echo (const Type &msg_type, const char *msg,...)
static void postRepaint (UI_Widget *theWidget)
static void postUpdate (UI_Widget *theWidget)

Public Attributes

QString text
Type type
UI_Widgetwidget

Member Enumeration Documentation

Enumerator:
Info 
Warning 
Error 
Popup 
UI_Update 
UI_Repaint 

Constructor & Destructor Documentation

UI_Message::UI_Message ( const Type tmpType,
const QString &  tmpText,
UI_Widget theWidget 
)

Member Function Documentation

void UI_Message::echo ( const Type msg_type,
const char *  msg,
  ... 
) [static]
QString UI_Message::getText ( )
QString UI_Message::getType ( )

To properly handle the different type, code has to be written in UI_MainWindow::customEvent

void UI_Message::postRepaint ( UI_Widget theWidget) [static]

Posts a CustomEvent in the event queue of qApp->mainWidget()

void UI_Message::postUpdate ( UI_Widget theWidget) [static]

Posts a CustomEvent in the event queue of qApp->mainWidget()


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines