00001 // Author: Bertrand Bellenot 22/08/02 00002 00003 /************************************************************************* 00004 * Copyright (C) 1995-2002, Bertrand Bellenot. * 00005 * All rights reserved. * 00006 * * 00007 * For the licensing terms see the LICENSE file. * 00008 *************************************************************************/ 00009 00010 ////////////////////////////////////////////////////////////////////////// 00011 // // 00012 // Definition of a simple message box for the RootShower application // 00013 // // 00014 ////////////////////////////////////////////////////////////////////////// 00015 00016 #ifndef ROOTSHOWERMSGBOX_H 00017 #define ROOTSHOWERMSGBOX_H 00018 00019 #ifndef ROOT_TGFrame 00020 #include "TGFrame.h" 00021 #endif 00022 00023 #ifndef ROOT_TGButton 00024 #include "TGButton.h" 00025 #endif 00026 00027 #ifndef ROOT_TGPicture 00028 #include "TGPicture.h" 00029 #endif 00030 00031 #ifndef ROOT_TGIcon 00032 #include "TGIcon.h" 00033 #endif 00034 00035 #ifndef ROOT_TGLabel 00036 #include "TGLabel.h" 00037 #endif 00038 00039 00040 class RootShowerMsgBox : public TGTransientFrame { 00041 00042 private: 00043 TGVerticalFrame* fVFrame; 00044 TGHorizontalFrame* fHFrame; 00045 TGTextButton* fCancelButton; 00046 TGTextButton* fHelpButton; 00047 TGTextButton* fOkButton; 00048 TGLabel* fLabel1; 00049 TGLabel* fLabel2; 00050 00051 TGLayoutHints *fLogoLayout; 00052 00053 TGLayoutHints* fL1; 00054 TGLayoutHints* fL2; 00055 00056 TGLayoutHints* fBly; 00057 TGLayoutHints* fBfly; 00058 00059 public: 00060 RootShowerMsgBox(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h, 00061 UInt_t options = kMainFrame | kVerticalFrame); 00062 virtual ~RootShowerMsgBox(); 00063 00064 virtual void CloseWindow(); 00065 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2); 00066 }; 00067 00068 #endif // ROOTSHOWERMSGBOX_H