QGUIExitWindow.hh
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef _QGUI_EXIT_WINDOW_HH_
00014 #define _QGUI_EXIT_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 QGUIExitWindow: public QGUIBaseFrame
00034 {
00035
00036 public:
00037
00038
00039 QGUIExitWindow(const TGWindow *p, bool& RetVal);
00040 QGUIExitWindow(const TGWindow *p, bool& RetVal, const std::string& qMessage);
00041
00042
00043 virtual ~QGUIExitWindow();
00044
00045
00046 void CloseExitWindow(bool qStatus);
00047
00048
00049 protected:
00050
00051
00052 private:
00053
00054
00055 std::string fMessage;
00056
00057
00058 TGTextButton *fYesBtn, *fCancelBtn;
00059
00060
00061 TGHorizontalFrame *fMsgHFrame;
00062 TGVerticalFrame *fImgVFrame;
00063 TGVerticalFrame *fTxtVFrame;
00064 TGHorizontalFrame *fBtnHFrame;
00065
00066 bool &fRetVal;
00067
00068
00069
00070 void PopUp();
00071
00072
00073 void AddButtonsToFrame(TGCompositeFrame* qFrame);
00074
00075
00076 void AddImageAndMsgToFrame(TGCompositeFrame* qFrame);
00077
00078
00079
00080 ClassDef(QGUIExitWindow,0)
00081
00082 };
00083
00084 #endif // _QGUI_EXIT_WINDOW_HH_