QGPLogger Class Reference
[Apollo GuiApollo]

List of all members.


Detailed Description

bottom frame for pulser gui showing log informations and currently loaded cfg file

Author:
Sergio Di Domizio

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
QGuiCompositeFrameGetFrame (const TGWindow *parent)
 get the read-only widget displaying the log messages

Static Public Member Functions

static QGPLoggerGetInstance ()
 singleton getter

Private Member Functions

 QGPLogger ()
 ctor
 ClassDef (QGPLogger, 0)

Private Attributes

size_t fMaxMsgSize
QGuiCompositeFramefContainerFrame
TGStatusBar * fLogFrame

Member Function Documentation

size_t QGPLogger::GetMaxMsgSize (  )  const [inline]

Returns:
max size for log messages to be accepted or 0 if the limit is not set

Bool_t QGPLogger::Log ( const std::string &  message,
MsgLevel  level 
)

print log message

Parameters:
message log message
level message level
Returns:
false if the message is too long or if this object is still to be initialized

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().


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

Generated on Tue Nov 16 10:50:06 2010 for CUORE Software by  doxygen 1.5.6