QGUIBaseFrame Class Reference
[Apollo GuiApollo]

Inheritance diagram for QGUIBaseFrame:

QGUIBasketSelector QGUIHistogramDisplay

List of all members.


Detailed Description

Base Frame for build Apollo GUIs.

Author:
Andrea Giachero <Andrea.Giachero@ge.infn.it> Some comments regarding the general approach in the development of graphical user interfaces using Root. Every graphical object should be declared as "new" and should not be deleted explicitly when it is no more needed, since the Root Gui development framework takes care of deleting it. The only thing to fix in mind is that this mechanism is based on a parent/child relationship among different graphical objects. This relationship is imposed in the constructor of every graphical object: every graphical object inherits from TGFrame, which in turn inherits from TGWindow. The first argument of the TGFrame constructor is a pointer to the parent TGWindow: once the parent is destroyed, all of its childs will be destroyed too. If a window is a "main" window, then the parent window should be set to gClient->GetRoot().

Public Types

enum  QGUIButtons_t {
  QGUI_CANCEL = 0, QGUI_YES = 1, QGUI_OK = 3, QGUI_NO = 4,
  QGUI_RETRY = 5, QGUI_CLOSE = 6, QGUI_IGNORE = 7
}

Public Member Functions

 QGUIBaseFrame (const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h, UInt_t Options)
virtual void CloseWindow ()
void Closed ()

Protected Member Functions

const bool IsColored () const
void SetDebugColor (bool isColored)
void EnableColor ()
void DisableColor ()
const std::string GetROOTVersion () const
void SetMainFrameName (const std::string &qName)
const std::string GetMainFrameName () const
void SetWho (const std::string &qWho)
const std::string & GetWho () const
void NoResizable ()
bool AddImageToFrame (const std::string &qPathName, TGCompositeFrame *qFrame, size_t qWidth, size_t qHeight, int qLeft, int qRight, int qTop, int qBottom, size_t qOptions)
bool AddImageToFrame (const std::string &qPathName, TGCompositeFrame *qFrame, size_t qWidth, size_t qHeight, size_t qOptions)
void AddWritingToFrame (TGCompositeFrame *qFrame, const std::string &qWriting)
void AddLogger (TGCompositeFrame *qParent, TGTextView *&qLog, TGGroupFrame *qGroup)
TGHorizontalFrame * CreateHFrame (TGCompositeFrame *qParent, size_t qWidth, size_t qHeight)
TGHorizontalFrame * CreateHFrame (TGCompositeFrame *qParent, int qLeft, int qRight, int qTop, int qBottom, size_t qWidth, size_t qHeight)
TGVerticalFrame * CreateVFrame (TGCompositeFrame *qParent, size_t qWidth, size_t qHeight)
TGVerticalFrame * CreateVFrame (TGCompositeFrame *qParent, int qLeft, int qRight, int qTop, int qBottom, size_t qWidth, size_t qHeight)
const std::string GetTime ()
void SendMsgOnScreen (const std::string &qWho, const std::string &qMsg, bool without)
void SendMsgOnScreen (const std::string &qMsg, bool without)
void SendMsgOnScreen (const std::string &qMsg)
void SetMessage (TGTextView *qLog, const std::string &qMsg, bool without)
void SetMessage (TGTextView *qLog, const std::string &qMsg)
std::string ToString (int Value, size_t nDigit)
std::string ToString (int Value)
TGLayoutHints * AddHints (const ULong_t &hints=kLHintsNormal, const Int_t &padLeft=2, const Int_t &padRight=2, const Int_t &padTop=2, const Int_t &padBottom=2)

Private Member Functions

TGLayoutHints * FindHints (const ULong_t &hints=kLHintsNormal, const Int_t &padLeft=0, const Int_t &padRight=0, const Int_t &padTop=0, const Int_t &padBottom=0) const
void CleanHints ()

Private Attributes

TGIcon * fIcon
const TGPicture * fPicture
std::string fWho
bool fIsColor
std::list< TGLayoutHints * > fHints

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