#include <GUIEvent_Message.h>

Definition at line 45 of file GUIEvent_Message.h.
Public Member Functions | |
| const std::string & | getMsg () const |
| Returns the message. | |
| GUIEventType | getOwnType () const |
| returns the event type | |
| GUIEvent_Message (MsgHandler::MsgType type, const std::string &msg) | |
| constructor | |
| ~GUIEvent_Message () | |
| destructor | |
Protected Attributes | |
| std::string | myMsg |
| The message. | |
| GUIEventType | myType |
| the type of the event | |
| GUIEvent_Message::GUIEvent_Message | ( | MsgHandler::MsgType | type, | |
| const std::string & | msg | |||
| ) | [inline] |
constructor
Definition at line 48 of file GUIEvent_Message.h.
References EVENT_ERROR_OCCURED, EVENT_MESSAGE_OCCURED, EVENT_WARNING_OCCURED, MsgHandler::MT_ERROR, MsgHandler::MT_MESSAGE, MsgHandler::MT_WARNING, and GUIEvent::myType.
00049 : GUIEvent(EVENT_MESSAGE_OCCURED), myMsg(msg) { 00050 switch (type) { 00051 case MsgHandler::MT_MESSAGE: 00052 myType = EVENT_MESSAGE_OCCURED; 00053 break; 00054 case MsgHandler::MT_WARNING: 00055 myType = EVENT_WARNING_OCCURED; 00056 break; 00057 case MsgHandler::MT_ERROR: 00058 myType = EVENT_ERROR_OCCURED; 00059 break; 00060 default: 00061 throw 1; 00062 } 00063 }
| GUIEvent_Message::~GUIEvent_Message | ( | ) | [inline] |
| const std::string& GUIEvent_Message::getMsg | ( | ) | const [inline] |
Returns the message.
Definition at line 69 of file GUIEvent_Message.h.
References myMsg.
Referenced by GUIApplicationWindow::handleEvent_Message().
00069 { 00070 return myMsg; 00071 }
| GUIEventType GUIEvent::getOwnType | ( | ) | const [inline, inherited] |
returns the event type
Definition at line 76 of file GUIEvent.h.
References GUIEvent::myType.
Referenced by GUIApplicationWindow::eventOccured(), and GUIApplicationWindow::handleEvent_Message().
00076 { 00077 return myType; 00078 }
std::string GUIEvent_Message::myMsg [protected] |
GUIEventType GUIEvent::myType [protected, inherited] |
the type of the event
Definition at line 91 of file GUIEvent.h.
Referenced by GUIEvent::getOwnType(), and GUIEvent_Message().
1.5.6