QGuiUtils.hh

Go to the documentation of this file.
00001 
00002 #ifndef _Q_GUI_UTILS_HH_
00003 #define _Q_GUI_UTILS_HH_
00004 
00005 #include <Rtypes.h>
00006 #include <GuiTypes.h>
00007 #include <TGLayout.h>
00008 
00009 #include <list>
00010 
00011 enum QGuiStatus_t {
00012    STATUS_IDLE,
00013    STATUS_CONFIG,
00014    STATUS_RUNNING
00015 };
00016 
00017 
00026 class QGuiUtils
00027 {
00028 public:
00029 
00034    enum FrameType_t {
00035       WIDGET,
00036       CONTAINER_INNER,
00037       CONTAINER_OUTER
00038    };
00039    
00041    static QGuiUtils& GetInstance();
00042 
00044    virtual ~QGuiUtils();
00045 
00047    TGLayoutHints* GetHints(ULong_t hints,
00048                            Int_t padLeft,
00049                            Int_t padRight,
00050                            Int_t padTop,
00051                            Int_t padBottom);
00052 
00054    TGLayoutHints* GetDefaultHints() const { return fDefaultHints; }
00055 
00057    Int_t GetBackgroundColor(FrameType_t type) const;
00058 
00059 private:
00061    std::list<TGLayoutHints*> fHints;
00062 
00063    TGLayoutHints *fDefaultHints;
00064    const UInt_t kDefaultWidth;
00065    const UInt_t kDefaultHeight;
00066    const UInt_t kDefaultOptions;
00067    const Pixel_t kDefaultBkgColor;   
00068 
00070    QGuiUtils();
00071 
00073    TGLayoutHints* FindHints(ULong_t hints   = kLHintsNormal,
00074                             Int_t padLeft   = 0,
00075                             Int_t padRight  = 0,
00076                             Int_t padTop    = 0,
00077                             Int_t padBottom = 0) const;
00078 
00080    void CleanHints();
00081 };
00082 #endif

Generated on Tue Nov 16 10:49:55 2010 for CUORE Software by  doxygen 1.5.6