Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TRootHelpDialog.h
Go to the documentation of this file.
1 // @(#)root/gui:$Id$
2 // Author: Fons Rademakers 24/02/98
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TRootHelpDialog
13 #define ROOT_TRootHelpDialog
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TRootHelpDialog //
19 // //
20 // A TRootHelpDialog is used to display help text (or any text in a //
21 // dialog window). There is on OK button to popdown the dialog. //
22 // //
23 //////////////////////////////////////////////////////////////////////////
24 
25 #include "TGFrame.h"
26 
27 class TGTextView;
28 class TGTextButton;
29 
30 
31 class TRootHelpDialog : public TGTransientFrame {
32 
33 private:
34  TGTextView *fView; // text view
35  TGTextButton *fOK; // OK button
36  TGLayoutHints *fL1; // layout of TGTextView
37  TGLayoutHints *fL2; // layout of OK button
38 
39 private:
40  TRootHelpDialog(const TRootHelpDialog&); // not implemented
41  TRootHelpDialog& operator=(const TRootHelpDialog&); // not implemented
42 
43 public:
44  TRootHelpDialog(const TGWindow *main = 0, const char *title = "ROOT Help Dialog",
45  UInt_t w = 1, UInt_t h = 1);
46  virtual ~TRootHelpDialog();
47 
48  void SetText(const char *helpText);
49  void AddText(const char *helpText);
50 
51  void Popup();
52  void CloseWindow();
53  Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
54 
55  ClassDef(TRootHelpDialog,0) //Dialog to display help text
56 };
57 
58 #endif