Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TRootHelpDialog.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/gui:$Id$
0002 // Author: Fons Rademakers   24/02/98
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TRootHelpDialog
0013 #define ROOT_TRootHelpDialog
0014 
0015 
0016 #include "TGFrame.h"
0017 
0018 class TGTextView;
0019 class TGTextButton;
0020 
0021 
0022 class TRootHelpDialog : public TGTransientFrame {
0023 
0024 private:
0025    TGTextView       *fView;   ///< text view
0026    TGTextButton     *fOK;     ///< OK button
0027    TGLayoutHints    *fL1;     ///< layout of TGTextView
0028    TGLayoutHints    *fL2;     ///< layout of OK button
0029 
0030 private:
0031    TRootHelpDialog(const TRootHelpDialog&) = delete;
0032    TRootHelpDialog& operator=(const TRootHelpDialog&) = delete;
0033 
0034 public:
0035    TRootHelpDialog(const TGWindow *main = nullptr, const char *title = "ROOT Help Dialog",
0036                    UInt_t w = 1, UInt_t h = 1);
0037    ~TRootHelpDialog() override;
0038 
0039    void   SetText(const char *helpText);
0040    void   AddText(const char *helpText);
0041 
0042    void   Popup();
0043    void   CloseWindow() override;
0044    Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override;
0045 
0046    ClassDefOverride(TRootHelpDialog,0)  //Dialog to display help text
0047 };
0048 
0049 #endif