TarzaNN
TarzaNN neural network simulator
|
#include <UI_Message.h>
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_Widget * | widget |
enum UI_Message::Type |
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()
QString UI_Message::text |