Gui::StatusBarObserver Class Reference

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
 

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
Author
Werner Mayer

Constructor & Destructor Documentation

◆ StatusBarObserver()

◆ ~StatusBarObserver()

Member Function Documentation

◆ Name()

const char * Gui::StatusBarObserver::Name ( void  )
overridevirtual

name of the observer

Reimplemented from Base::ILogger.

◆ OnChange()

void StatusBarObserver::OnChange ( Base::Subject< const char * > &  rCaller,
const char *  sReason 
)
override

Observes its parameter group.

References ParameterGrp::GetUnsigned().

◆ SendLog()

void StatusBarObserver::SendLog ( const std::string &  msg,
Base::LogStyle  level 
)
overridevirtual

Friends And Related Function Documentation

◆ MainWindow

friend class MainWindow
friend

The documentation for this class was generated from the following files: