00001 // @(#)root/gui:$Id: TRootHelpDialog.h 23115 2008-04-10 13:35:37Z rdm $ 00002 // Author: Fons Rademakers 24/02/98 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TRootHelpDialog 00013 #define ROOT_TRootHelpDialog 00014 00015 00016 ////////////////////////////////////////////////////////////////////////// 00017 // // 00018 // TRootHelpDialog // 00019 // // 00020 // A TRootHelpDialog is used to display help text (or any text in a // 00021 // dialog window). There is on OK button to popdown the dialog. // 00022 // // 00023 ////////////////////////////////////////////////////////////////////////// 00024 00025 #ifndef ROOT_TGFrame 00026 #include "TGFrame.h" 00027 #endif 00028 00029 class TGTextView; 00030 class TGTextButton; 00031 00032 00033 class TRootHelpDialog : public TGTransientFrame { 00034 00035 private: 00036 TGTextView *fView; // text view 00037 TGTextButton *fOK; // OK button 00038 TGLayoutHints *fL1; // layout of TGTextView 00039 TGLayoutHints *fL2; // layout of OK button 00040 00041 private: 00042 TRootHelpDialog(const TRootHelpDialog&); // not implemented 00043 TRootHelpDialog& operator=(const TRootHelpDialog&); // not implemented 00044 00045 public: 00046 TRootHelpDialog(const TGWindow *main = 0, const char *title = "ROOT Help Dialog", 00047 UInt_t w = 1, UInt_t h = 1); 00048 virtual ~TRootHelpDialog(); 00049 00050 void SetText(const char *helpText); 00051 void AddText(const char *helpText); 00052 00053 void Popup(); 00054 void CloseWindow(); 00055 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2); 00056 00057 ClassDef(TRootHelpDialog,0) //Dialog to display help text 00058 }; 00059 00060 #endif