The status bar observer displays the text on the status bar of the main window in an appropriate color. More...
#include <MainWindow.h>
Public Member Functions | |
void | Error (const char *m) |
get called when a Error is issued | |
void | Log (const char *) |
get called when a Log Message is issued | |
void | Message (const char *m) |
get called when a Message is issued | |
const char * | Name (void) |
name of the observer | |
void | OnChange (Base::Subject< const char * > &rCaller, const char *sReason) |
Observes its parameter group. | |
StatusBarObserver () | |
void | Warning (const char *m) |
get called when a Warning is issued | |
virtual | ~StatusBarObserver () |
The status bar observer displays the text on the status bar of the main window in an appropriate color.
Normal text messages are black, warnings are orange and error messages are in red. Log messages are completely ignored. The class is implemented to be thread-safe.
Definition at line 319 of file MainWindow.h.
StatusBarObserver::StatusBarObserver | ( | ) |
Definition at line 1540 of file MainWindow.cpp.
References Base::Console(), and Gui::WindowParameter::getWindowParameter().
StatusBarObserver::~StatusBarObserver | ( | ) | [virtual] |
Definition at line 1551 of file MainWindow.cpp.
References Base::Console(), and Gui::WindowParameter::getWindowParameter().
void StatusBarObserver::Error | ( | const char * | m | ) | [virtual] |
get called when a Error is issued
Get called when an error is issued.
The message is displayed on the ststus bar.
Implements Base::ConsoleObserver.
Definition at line 1599 of file MainWindow.cpp.
References Gui::CustomMessageEvent::Err, and Gui::getMainWindow().
void StatusBarObserver::Log | ( | const char * | m | ) | [virtual] |
get called when a Log Message is issued
Get called when a log message is issued.
The message is used to create an Inventor node for debug purposes.
Reimplemented from Base::ConsoleObserver.
Definition at line 1610 of file MainWindow.cpp.
References Gui::getMainWindow(), and Gui::CustomMessageEvent::Log.
void StatusBarObserver::Message | ( | const char * | m | ) | [virtual] |
get called when a Message is issued
Get called when a message is issued.
The message is displayed on the ststus bar.
Reimplemented from Base::ConsoleObserver.
Definition at line 1577 of file MainWindow.cpp.
References Gui::getMainWindow(), and Gui::CustomMessageEvent::Msg.
const char* Gui::StatusBarObserver::Name | ( | void | ) | [inline, virtual] |
name of the observer
Reimplemented from Base::ConsoleObserver.
Definition at line 337 of file MainWindow.h.
void StatusBarObserver::OnChange | ( | Base::Subject< const char * > & | rCaller, | |
const char * | sReason | |||
) |
Observes its parameter group.
Reimplemented from Gui::WindowParameter.
Definition at line 1557 of file MainWindow.cpp.
References ParameterGrp::GetUnsigned().
void StatusBarObserver::Warning | ( | const char * | m | ) | [virtual] |
get called when a Warning is issued
Get called when a warning is issued.
The message is displayed on the ststus bar.
Reimplemented from Base::ConsoleObserver.
Definition at line 1588 of file MainWindow.cpp.
References Gui::getMainWindow(), and Gui::CustomMessageEvent::Wrn.