Logo ROOT  
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-2021, 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 #include "TGFrame.h"
17 
18 class TGTextView;
19 class TGTextButton;
20 
21 
23 
24 private:
25  TGTextView *fView; ///< text view
26  TGTextButton *fOK; ///< OK button
27  TGLayoutHints *fL1; ///< layout of TGTextView
28  TGLayoutHints *fL2; ///< layout of OK button
29 
30 private:
31  TRootHelpDialog(const TRootHelpDialog&) = delete;
33 
34 public:
35  TRootHelpDialog(const TGWindow *main = nullptr, const char *title = "ROOT Help Dialog",
36  UInt_t w = 1, UInt_t h = 1);
37  virtual ~TRootHelpDialog();
38 
39  void SetText(const char *helpText);
40  void AddText(const char *helpText);
41 
42  void Popup();
43  void CloseWindow();
44  Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
45 
46  ClassDef(TRootHelpDialog,0) //Dialog to display help text
47 };
48 
49 #endif
TRootHelpDialog::Popup
void Popup()
Show help dialog.
Definition: TRootHelpDialog.cxx:69
TGTransientFrame
Defines transient windows that typically are used for dialogs windows.
Definition: TGFrame.h:498
TGWindow
ROOT GUI Window base class.
Definition: TGWindow.h:23
TRootHelpDialog::ProcessMessage
Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process OK button.
Definition: TRootHelpDialog.cxx:103
TRootHelpDialog::TRootHelpDialog
TRootHelpDialog(const TRootHelpDialog &)=delete
TGTextButton
Yield an action as soon as it is clicked.
Definition: TGButton.h:142
TRootHelpDialog::SetText
void SetText(const char *helpText)
Set help text from helpText buffer in TGTextView.
Definition: TRootHelpDialog.cxx:77
TRootHelpDialog::fOK
TGTextButton * fOK
OK button.
Definition: TRootHelpDialog.h:26
bool
h
#define h(i)
Definition: RSha256.hxx:106
TRootHelpDialog::~TRootHelpDialog
virtual ~TRootHelpDialog()
Delete help text dialog.
Definition: TRootHelpDialog.cxx:58
TGFrame.h
Long_t
long Long_t
Definition: RtypesCore.h:54
TGLayoutHints
This class describes layout hints used by the layout classes.
Definition: TGLayout.h:50
TRootHelpDialog::CloseWindow
void CloseWindow()
Called when closed via window manager action.
Definition: TRootHelpDialog.cxx:95
TRootHelpDialog::operator=
TRootHelpDialog & operator=(const TRootHelpDialog &)=delete
unsigned int
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGTextView
A TGTextView is a text viewer widget.
Definition: TGTextView.h:22
TRootHelpDialog::AddText
void AddText(const char *helpText)
Add help text from helpText buffer to already existing text in TGTextView.
Definition: TRootHelpDialog.cxx:85
TRootHelpDialog::fView
TGTextView * fView
text view
Definition: TRootHelpDialog.h:25
TRootHelpDialog::fL1
TGLayoutHints * fL1
layout of TGTextView
Definition: TRootHelpDialog.h:27
TRootHelpDialog::fL2
TGLayoutHints * fL2
layout of OK button
Definition: TRootHelpDialog.h:28
TRootHelpDialog
A TRootHelpDialog is used to display help text (or any text in a dialog window).
Definition: TRootHelpDialog.h:22
main
int main(int argc, char *argv[])
Definition: cef_main.cxx:54