Logo ROOT   6.16/01
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
27class TGTextView;
28class TGTextButton;
29
30
32
33private:
34 TGTextView *fView; // text view
35 TGTextButton *fOK; // OK button
36 TGLayoutHints *fL1; // layout of TGTextView
37 TGLayoutHints *fL2; // layout of OK button
38
39private:
40 TRootHelpDialog(const TRootHelpDialog&); // not implemented
41 TRootHelpDialog& operator=(const TRootHelpDialog&); // not implemented
42
43public:
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
#define h(i)
Definition: RSha256.hxx:106
unsigned int UInt_t
Definition: RtypesCore.h:42
long Long_t
Definition: RtypesCore.h:50
bool Bool_t
Definition: RtypesCore.h:59
#define ClassDef(name, id)
Definition: Rtypes.h:324
void SetText(const char *helpText)
Set help text from helpText buffer in TGTextView.
TGTextView * fView
virtual ~TRootHelpDialog()
Delete help text dialog.
TRootHelpDialog(const TRootHelpDialog &)
void Popup()
Show help dialog.
TGLayoutHints * fL1
TGLayoutHints * fL2
Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process OK button.
void CloseWindow()
Called when closed via window manager action.
void AddText(const char *helpText)
Add help text from helpText buffer to already existing text in TGTextView.
TRootHelpDialog & operator=(const TRootHelpDialog &)
TGTextButton * fOK
int main(int argc, char **argv)