QGUIWarnWindow.hh

00001 /*
00002  * APOLLO: A complete DAQ and Online Data Analysis Framework for Cuore
00003  * 
00004  * A.Giachero created 11/08/07 - <Andrea.Giachero@ge.infn.it> 
00005  * 
00006  $ $Id: $
00007  * $Revision: $
00008  *
00009  * Class QGUIWarnWindow: General Warning Window Frame for Apollo GUIs
00010  *
00011  */
00012 
00013 #ifndef _QGUI_WARN_WINDOW_HH_
00014 #define _QGUI_WARN_WINDOW_HH_
00015 
00016 
00017 
00018 // Apollo Includes
00019 #include "QGUIBaseFrame.hh"
00020 
00021 // Root Includes
00022 #include "Rtypes.h"
00023 
00024 // C/C++ Includes
00025 
00026 
00027 
00028 // Used class
00029 class TGButton;
00030 class TGIcon;
00031 
00032 
00033 class QGUIWarnWindow: public QGUIBaseFrame
00034 {
00035 
00036 public:
00037   
00038   // ctor
00039   QGUIWarnWindow(const TGWindow *p, const std::string& qMessage);
00040 
00041   // dtor
00042   virtual ~QGUIWarnWindow();
00043 
00044   // Close Exit Window
00045   void Close();
00046 
00047 protected:
00048 
00049 
00050 private:
00051   
00052   // message
00053   std::string fMessage;
00054 
00055   TGTextButton *fOKBtn;             // OK Button
00056   
00057   TGHorizontalFrame  *fEmptyHFrame; // Empty Frame 
00058   TGHorizontalFrame  *fMsgHFrame;   // Frame containing image and message text
00059   TGVerticalFrame    *fImgVFrame;   // Frame containing image
00060   TGHorizontalFrame  *fTxtHFrame;   // Frame containing message text
00061   TGHorizontalFrame  *fBtnHFrame;   // Frame containing buttons
00062 
00063   
00064   // Create Exit-Box Main Frame
00065   void PopUp();
00066 
00067   // Add YES and CANCEL Buttons to frame
00068   void AddButtonOKFrame(TGCompositeFrame* qFrame);
00069 
00070   // Add Warning Image and Message to Frame 
00071   void AddImageAndMsgToFrame(TGCompositeFrame* qFrame);
00072 
00073 
00074   // To integrate QGUIWarnWindow class into the ROOT system
00075   ClassDef(QGUIWarnWindow,0)
00076 
00077 };
00078 
00079 #endif // _QGUI_WARN_WINDOW_HH_

Generated on Fri Mar 6 13:40:39 2009 for CUORE Software by  doxygen 1.5.1