00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef _QGUI_WARN_WINDOW_HH_
00014 #define _QGUI_WARN_WINDOW_HH_
00015
00016
00017
00018
00019 #include "QGUIBaseFrame.hh"
00020
00021
00022 #include "Rtypes.h"
00023
00024
00025
00026
00027
00028
00029 class TGButton;
00030 class TGIcon;
00031
00032
00033 class QGUIWarnWindow: public QGUIBaseFrame
00034 {
00035
00036 public:
00037
00038
00039 QGUIWarnWindow(const TGWindow *p, const std::string& qMessage);
00040
00041
00042 virtual ~QGUIWarnWindow();
00043
00044
00045 void Close();
00046
00047 protected:
00048
00049
00050 private:
00051
00052
00053 std::string fMessage;
00054
00055 TGTextButton *fOKBtn;
00056
00057 TGHorizontalFrame *fEmptyHFrame;
00058 TGHorizontalFrame *fMsgHFrame;
00059 TGVerticalFrame *fImgVFrame;
00060 TGHorizontalFrame *fTxtHFrame;
00061 TGHorizontalFrame *fBtnHFrame;
00062
00063
00064
00065 void PopUp();
00066
00067
00068 void AddButtonOKFrame(TGCompositeFrame* qFrame);
00069
00070
00071 void AddImageAndMsgToFrame(TGCompositeFrame* qFrame);
00072
00073
00074
00075 ClassDef(QGUIWarnWindow,0)
00076
00077 };
00078
00079 #endif // _QGUI_WARN_WINDOW_HH_