Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
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
18class TGTextView;
19class TGTextButton;
20
21
23
24private:
25 TGTextView *fView; ///< text view
26 TGTextButton *fOK; ///< OK button
27 TGLayoutHints *fL1; ///< layout of TGTextView
28 TGLayoutHints *fL2; ///< layout of OK button
29
30private:
33
34public:
35 TRootHelpDialog(const TGWindow *main = nullptr, const char *title = "ROOT Help Dialog",
36 UInt_t w = 1, UInt_t h = 1);
37 ~TRootHelpDialog() override;
38
39 void SetText(const char *helpText);
40 void AddText(const char *helpText);
41
42 void Popup();
43 void CloseWindow() override;
44 Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override;
45
46 ClassDefOverride(TRootHelpDialog,0) //Dialog to display help text
47};
48
49#endif
#define h(i)
Definition RSha256.hxx:106
long Longptr_t
Integer large enough to hold a pointer (platform-dependent).
Definition RtypesCore.h:89
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
Definition RtypesCore.h:60
bool Bool_t
Boolean (0=false, 1=true) (bool).
Definition RtypesCore.h:77
#define ClassDefOverride(name, id)
Definition Rtypes.h:348
This class describes layout hints used by the layout classes.
Definition TGLayout.h:50
Yield an action as soon as it is clicked.
Definition TGButton.h:142
A TGTextView is a text viewer widget.
Definition TGTextView.h:22
TGTransientFrame(const TGTransientFrame &)=delete
ROOT GUI Window base class.
Definition TGWindow.h:23
void SetText(const char *helpText)
Set help text from helpText buffer in TGTextView.
TGTextView * fView
text view
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
Process OK button.
TRootHelpDialog(const TRootHelpDialog &)=delete
void Popup()
Show help dialog.
TGLayoutHints * fL1
layout of TGTextView
TGLayoutHints * fL2
layout of OK button
void CloseWindow() override
Called when closed via window manager action.
~TRootHelpDialog() override
Delete help text dialog.
TRootHelpDialog & operator=(const TRootHelpDialog &)=delete
void AddText(const char *helpText)
Add help text from helpText buffer to already existing text in TGTextView.
TGTextButton * fOK
OK button.
int main(int argc, char **argv)
Definition hadd.cxx:631