SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUIMessageWindow Class Reference

A logging window for the gui. More...

#include <GUIMessageWindow.h>

Inheritance diagram for GUIMessageWindow:
FXText

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.

Detailed Description

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.


Constructor & Destructor Documentation

GUIMessageWindow::GUIMessageWindow ( FXComposite *  parent)

Constructor.

Parameters:
[in]parentThe parent window

Definition at line 43 of file GUIMessageWindow.cpp.

References myStyles.

GUIMessageWindow::~GUIMessageWindow ( )

Destructor.

Definition at line 90 of file GUIMessageWindow.cpp.

References myStyles.


Member Function Documentation

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

Parameters:
[in]eTypeThe type of the event the message was generated by
[in]msgThe message
See also:
GUIEventType

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().


Field Documentation

FXHiliteStyle* GUIMessageWindow::myStyles
private

The text colors used.

Definition at line 87 of file GUIMessageWindow.h.

Referenced by GUIMessageWindow(), and ~GUIMessageWindow().


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