Logo ROOT   6.14/05
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 #include "TGFrame.h"
26 
27 class TGTextView;
28 class TGTextButton;
29 
30 
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
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:320
int main(int argc, char **argv)
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.
#define h(i)
Definition: RSha256.hxx:106
TGLayoutHints * fL2
long Long_t
Definition: RtypesCore.h:50
TGLayoutHints * fL1
void CloseWindow()
Called when closed via window manager action.