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 () | |
![]() | |
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 () | |
![]() | |
ILogger () | |
virtual ~ILogger ()=0 | |
Friends | |
class MainWindow | |
Additional Inherited Members | |
![]() | |
static ParameterGrp::handle getDefaultParameter (void) | |
get the parameters More... | |
![]() | |
bool bErr | |
bool bLog | |
bool bMsg | |
bool bWrn | |
Detailed Description
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.
- See also
- Console
- ILogger
Constructor & Destructor Documentation
◆ StatusBarObserver()
StatusBarObserver::StatusBarObserver | ( | ) |
◆ ~StatusBarObserver()
|
virtual |
Member Function Documentation
◆ Name()
|
overridevirtual |
name of the observer
Reimplemented from Base::ILogger.
◆ OnChange()
|
override |
Observes its parameter group.
References ParameterGrp::GetUnsigned().
◆ SendLog()
|
overridevirtual |
Used to send a Log message at the given level.
Implements Base::ILogger.
References Gui::MainWindow::Err, Base::Error, Gui::getMainWindow(), Gui::MainWindow::Log, Base::Log, Base::Message, Gui::MainWindow::Msg, Base::Warning, and Gui::MainWindow::Wrn.
Friends And Related Function Documentation
◆ MainWindow
|
friend |
The documentation for this class was generated from the following files:
- src/Gui/MainWindow.h
- src/Gui/MainWindow.cpp