Public Member Functions | |
virtual | ~QGPLogger () |
dtor | |
void | SetMaxMsgSize (size_t maxSize) |
set max sixe for log message to be accepted. 0 means no limit | |
size_t | GetMaxMsgSize () const |
Bool_t | Log (const std::string &message, MsgLevel level) |
print log message | |
void | ShowBasket (UInt_t basket) |
show current settings basket in the middle part of the widget | |
void | ShowConfigFile (const std::string &filename) |
show currently loaded cfg file in the right part of the widget | |
void | Clear () |
clear message panel | |
QGuiCompositeFrame * | GetFrame (const TGWindow *parent) |
get the read-only widget displaying the log messages | |
Static Public Member Functions | |
static QGPLogger & | GetInstance () |
singleton getter | |
Private Member Functions | |
QGPLogger () | |
ctor | |
ClassDef (QGPLogger, 0) | |
Private Attributes | |
size_t | fMaxMsgSize |
QGuiCompositeFrame * | fContainerFrame |
TGStatusBar * | fLogFrame |
size_t QGPLogger::GetMaxMsgSize | ( | ) | const [inline] |
Bool_t QGPLogger::Log | ( | const std::string & | message, | |
MsgLevel | level | |||
) |
print log message
message | log message | |
level | message level |
Referenced by Clear(), QGuiPulserMain::FireSingleShot(), QGuiPulserMain::LoadFromFile(), QGuiPulserMain::SetSettingsBasket(), and QGuiPulserMain::WriteConfigFile().
QGuiCompositeFrame * QGPLogger::GetFrame | ( | const TGWindow * | parent | ) |
get the read-only widget displaying the log messages
This method can be called only once. Subsequent call will return NULL and will have no effect.
References QGuiCompositeFrame::AddFrame(), QGuiUtils::GetBackgroundColor(), QGuiUtils::GetHints(), and QGuiUtils::GetInstance().