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 | |
const char * | Name (void) override |
name of the observer More... | |
void | OnChange (Base::Subject< const char * > &rCaller, const char *sReason) override |
Observes its parameter group. More... | |
void | SendLog (const std::string &msg, Base::LogStyle level) override |
Used to send a Log message at the given level. More... | |
StatusBarObserver () | |
virtual | ~StatusBarObserver () |
Public Member Functions inherited from Gui::WindowParameter | |
ParameterGrp::handle | getWindowParameter (void) |
return the parameter group of this window More... | |
void | OnChange (Base::Subject< const char * > &rCaller, const char *sReason) |
bool | setGroupName (const char *name) |
Sets the group of the window to name. More... | |
WindowParameter (const char *name) | |
virtual | ~WindowParameter () |
Public Member Functions inherited from Base::ILogger | |
ILogger () | |
virtual const char * | Name () |
virtual void | SendLog (const std::string &msg, LogStyle level)=0 |
Used to send a Log message at the given level. More... | |
virtual | ~ILogger ()=0 |
Friends | |
class | MainWindow |
Additional Inherited Members | |
Static Public Member Functions inherited from Gui::WindowParameter | |
static ParameterGrp::handle | getDefaultParameter (void) |
get the parameters More... | |
Public Attributes inherited from Base::ILogger | |
bool | bErr |
bool | bLog |
bool | bMsg |
bool | bWrn |
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.
StatusBarObserver::StatusBarObserver | ( | ) |
|
virtual |
|
overridevirtual |
name of the observer
Reimplemented from Base::ILogger.
|
override |
Observes its parameter group.
References ParameterGrp::GetUnsigned().
|
overridevirtual |
Used to send a Log message at the given level.
Implements Base::ILogger.
References Gui::MainWindow::Err, Base::Error, Gui::getMainWindow(), Base::Log, Gui::MainWindow::Log, Base::Message, Gui::MainWindow::Msg, Base::Warning, and Gui::MainWindow::Wrn.
|
friend |