SUMO - Simulation of Urban MObility
|
A logging window for the gui. More...
#include <GUIMessageWindow.h>
Public Member Functions | |
void | addSeparator () |
Adds a a separator to this log window. | |
void | appendText (GUIEventType eType, const std::string &msg) |
Adds new text to the window. | |
void | clear () |
Clears the window. | |
GUIMessageWindow (FXComposite *parent) | |
Constructor. | |
~GUIMessageWindow () | |
Destructor. | |
Private Attributes | |
FXHiliteStyle * | myStyles |
The text colors used. |
A logging window for the gui.
This class displays messages incoming to the gui from either the load or the run thread.
The text is colored in dependence to its type (messages: green, warnings: yellow, errors: red)
Each time a new message is passed, the window is reopened.
Definition at line 53 of file GUIMessageWindow.h.
GUIMessageWindow::GUIMessageWindow | ( | FXComposite * | parent | ) |
Constructor.
[in] | parent | The parent window |
Definition at line 43 of file GUIMessageWindow.cpp.
References myStyles.
void GUIMessageWindow::addSeparator | ( | ) |
Adds a a separator to this log window.
Definition at line 130 of file GUIMessageWindow.cpp.
Referenced by GUIApplicationWindow::closeAllWindows().
void GUIMessageWindow::appendText | ( | GUIEventType | eType, |
const std::string & | msg | ||
) |
Adds new text to the window.
The type of the text is determined by the first parameter
[in] | eType | The type of the event the message was generated by |
[in] | msg | The message |
Definition at line 96 of file GUIMessageWindow.cpp.
References EVENT_ERROR_OCCURED, EVENT_MESSAGE_OCCURED, and EVENT_WARNING_OCCURED.
Referenced by GUIApplicationWindow::handleEvent_Message(), and GUIApplicationWindow::handleEvent_SimulationLoaded().
void GUIMessageWindow::clear | ( | ) |
Clears the window.
Definition at line 143 of file GUIMessageWindow.cpp.
Referenced by GUIApplicationWindow::onCmdClearMsgWindow().
FXHiliteStyle* GUIMessageWindow::myStyles [private] |
The text colors used.
Definition at line 87 of file GUIMessageWindow.h.
Referenced by GUIMessageWindow(), and ~GUIMessageWindow().