37 #ifdef CHECK_MEMORY_LEAKS
39 #endif // CHECK_MEMORY_LEAKS
46 FXText(parent, 0, 0, 0, 0, 0, 0, 50),
49 myMessageRetriever(0),
50 myWarningRetriever(0) {
55 myStyles[0].normalForeColor = FXRGB(0x00, 0x00, 0x88);
56 myStyles[0].normalBackColor = FXRGB(0xff, 0xff, 0xff);
57 myStyles[0].selectForeColor = FXRGB(0xff, 0xff, 0xff);
58 myStyles[0].selectBackColor = FXRGB(0x00, 0x00, 0x88);
59 myStyles[0].hiliteForeColor = FXRGB(0x00, 0x00, 0x88);
60 myStyles[0].hiliteBackColor = FXRGB(0xff, 0xff, 0xff);
61 myStyles[0].activeBackColor = FXRGB(0xff, 0xff, 0xff);
64 myStyles[1].normalForeColor = FXRGB(0x00, 0x88, 0x00);
65 myStyles[1].normalBackColor = FXRGB(0xff, 0xff, 0xff);
66 myStyles[1].selectForeColor = FXRGB(0xff, 0xff, 0xff);
67 myStyles[1].selectBackColor = FXRGB(0x00, 0x88, 0x00);
68 myStyles[1].hiliteForeColor = FXRGB(0x00, 0x88, 0x00);
69 myStyles[1].hiliteBackColor = FXRGB(0xff, 0xff, 0xff);
70 myStyles[1].activeBackColor = FXRGB(0xff, 0xff, 0xff);
73 myStyles[2].normalForeColor = FXRGB(0x88, 0x00, 0x00);
74 myStyles[2].normalBackColor = FXRGB(0xff, 0xff, 0xff);
75 myStyles[2].selectForeColor = FXRGB(0xff, 0xff, 0xff);
76 myStyles[2].selectBackColor = FXRGB(0x88, 0x00, 0x00);
77 myStyles[2].hiliteForeColor = FXRGB(0x88, 0x00, 0x00);
78 myStyles[2].hiliteBackColor = FXRGB(0xff, 0xff, 0xff);
79 myStyles[2].activeBackColor = FXRGB(0xff, 0xff, 0xff);
82 myStyles[3].normalForeColor = FXRGB(0xe6, 0x98, 0x00);
83 myStyles[3].normalBackColor = FXRGB(0xff, 0xff, 0xff);
84 myStyles[3].selectForeColor = FXRGB(0xff, 0xff, 0xff);
85 myStyles[3].selectBackColor = FXRGB(0xe6, 0x98, 0x00);
86 myStyles[3].hiliteForeColor = FXRGB(0xe6, 0x98, 0x00);
87 myStyles[3].hiliteBackColor = FXRGB(0xff, 0xff, 0xff);
88 myStyles[3].activeBackColor = FXRGB(0xff, 0xff, 0xff);
127 FXText::appendStyledText(msg.c_str(), (FXint) msg.length(), style + 1,
true);
128 FXText::setCursorPos(getLength() - 1);
129 FXText::setBottomLine(getLength() - 1);
139 std::string msg =
"----------------------------------------------------------------------------------------\n";
140 FXText::appendStyledText(msg.c_str(), (FXint) msg.length(), 1,
true);
141 FXText::setCursorPos(getLength() - 1);
142 FXText::setBottomLine(getLength() - 1);
152 if (getLength() == 0) {
155 FXText::removeText(0, getLength() - 1,
true);
static MsgHandler * getWarningInstance()
Returns the instance to add warnings to.
static MsgHandler * getErrorInstance()
Returns the instance to add errors to.
void appendMsg(GUIEventType eType, const std::string &msg)
Adds new text to the window.
send when a message occured
void registerMsgHandlers()
register and unregister message handlers
void addRetriever(OutputDevice *retriever)
Adds a further retriever to the instance responsible for a certain msg type.
void unregisterMsgHandlers()
~GUIMessageWindow()
Destructor.
void addSeparator()
Adds a a separator to this log window.
FXHiliteStyle * myStyles
The text colors used.
void removeRetriever(OutputDevice *retriever)
Removes the retriever from the handler.
GUIMessageWindow(FXComposite *parent)
Constructor.
static MsgHandler * getMessageInstance()
Returns the instance to add normal messages to.
send when a error occured
OutputDevice * myMessageRetriever
send when a warning occured
void clear()
Clears the window.
OutputDevice * myErrorRetriever
The instances of message retriever encapsulations.
OutputDevice * myWarningRetriever