Logo ROOT   6.07/09
Reference Guide
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 #ifndef ROOT_TGFrame
26 #include "TGFrame.h"
27 #endif
28 
29 class TGTextView;
30 class TGTextButton;
31 
32 
34 
35 private:
36  TGTextView *fView; // text view
37  TGTextButton *fOK; // OK button
38  TGLayoutHints *fL1; // layout of TGTextView
39  TGLayoutHints *fL2; // layout of OK button
40 
41 private:
42  TRootHelpDialog(const TRootHelpDialog&); // not implemented
43  TRootHelpDialog& operator=(const TRootHelpDialog&); // not implemented
44 
45 public:
46  TRootHelpDialog(const TGWindow *main = 0, const char *title = "ROOT Help Dialog",
47  UInt_t w = 1, UInt_t h = 1);
48  virtual ~TRootHelpDialog();
49 
50  void SetText(const char *helpText);
51  void AddText(const char *helpText);
52 
53  void Popup();
54  void CloseWindow();
55  Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
56 
57  ClassDef(TRootHelpDialog,0) //Dialog to display help text
58 };
59 
60 #endif
TH1 * h
Definition: legend2.C:5
bool Bool_t
Definition: RtypesCore.h:59
TGTextButton * fOK
TGTextView * fView
virtual ~TRootHelpDialog()
Delete help text dialog.
void SetText(const char *helpText)
Set help text from helpText buffer in TGTextView.
#define ClassDef(name, id)
Definition: Rtypes.h:254
Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process OK button.
TRootHelpDialog & operator=(const TRootHelpDialog &)
void Popup()
Show help dialog.
unsigned int UInt_t
Definition: RtypesCore.h:42
TRootHelpDialog(const TRootHelpDialog &)
void AddText(const char *helpText)
Add help text from helpText buffer to already existing text in TGTextView.
TGLayoutHints * fL2
long Long_t
Definition: RtypesCore.h:50
TGLayoutHints * fL1
int main(int argc, char **argv)
void CloseWindow()
Called when closed via window manager action.