36 #ifdef CHECK_MEMORY_LEAKS
38 #endif // CHECK_MEMORY_LEAKS
45 FXText(parent, 0, 0, 0, 0, 0, 0, 50),
48 myMessageRetriever(0),
49 myWarningRetriever(0) {
54 myStyles[0].normalForeColor = FXRGB(0x00, 0x00, 0x88);
55 myStyles[0].normalBackColor = FXRGB(0xff, 0xff, 0xff);
56 myStyles[0].selectForeColor = FXRGB(0xff, 0xff, 0xff);
57 myStyles[0].selectBackColor = FXRGB(0x00, 0x00, 0x88);
58 myStyles[0].hiliteForeColor = FXRGB(0x00, 0x00, 0x88);
59 myStyles[0].hiliteBackColor = FXRGB(0xff, 0xff, 0xff);
60 myStyles[0].activeBackColor = FXRGB(0xff, 0xff, 0xff);
63 myStyles[1].normalForeColor = FXRGB(0x00, 0x88, 0x00);
64 myStyles[1].normalBackColor = FXRGB(0xff, 0xff, 0xff);
65 myStyles[1].selectForeColor = FXRGB(0xff, 0xff, 0xff);
66 myStyles[1].selectBackColor = FXRGB(0x00, 0x88, 0x00);
67 myStyles[1].hiliteForeColor = FXRGB(0x00, 0x88, 0x00);
68 myStyles[1].hiliteBackColor = FXRGB(0xff, 0xff, 0xff);
69 myStyles[1].activeBackColor = FXRGB(0xff, 0xff, 0xff);
72 myStyles[2].normalForeColor = FXRGB(0x88, 0x00, 0x00);
73 myStyles[2].normalBackColor = FXRGB(0xff, 0xff, 0xff);
74 myStyles[2].selectForeColor = FXRGB(0xff, 0xff, 0xff);
75 myStyles[2].selectBackColor = FXRGB(0x88, 0x00, 0x00);
76 myStyles[2].hiliteForeColor = FXRGB(0x88, 0x00, 0x00);
77 myStyles[2].hiliteBackColor = FXRGB(0xff, 0xff, 0xff);
78 myStyles[2].activeBackColor = FXRGB(0xff, 0xff, 0xff);
81 myStyles[3].normalForeColor = FXRGB(0xe6, 0x98, 0x00);
82 myStyles[3].normalBackColor = FXRGB(0xff, 0xff, 0xff);
83 myStyles[3].selectForeColor = FXRGB(0xff, 0xff, 0xff);
84 myStyles[3].selectBackColor = FXRGB(0xe6, 0x98, 0x00);
85 myStyles[3].hiliteForeColor = FXRGB(0xe6, 0x98, 0x00);
86 myStyles[3].hiliteBackColor = FXRGB(0xff, 0xff, 0xff);
87 myStyles[3].activeBackColor = FXRGB(0xff, 0xff, 0xff);
126 FXText::appendStyledText(msg.c_str(), (FXint) msg.length(), style + 1,
true);
127 FXText::setCursorPos(getLength() - 1);
128 FXText::setBottomLine(getLength() - 1);
138 std::string msg =
"----------------------------------------------------------------------------------------\n";
139 FXText::appendStyledText(msg.c_str(), (FXint) msg.length(), 1,
true);
140 FXText::setCursorPos(getLength() - 1);
141 FXText::setBottomLine(getLength() - 1);
151 if (getLength() == 0) {
154 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.
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.
GUIMessageWindow(FXComposite *parent)
Constructor.
static MsgHandler * getMessageInstance()
Returns the instance to add normal messages to.
send when a error occured
OutputDevice * myMessageRetriever
void appendText(GUIEventType eType, const std::string &msg)
Adds new text to the window.
send when a warning occured
void clear()
Clears the window.
OutputDevice * myErrorRetriever
The instances of message retriever encapsulations.
OutputDevice * myWarningRetriever