Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TRootDialog.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   20/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_TRootDialog
0013 #define ROOT_TRootDialog
0014 
0015 
0016 #include "TGFrame.h"
0017 
0018 class TRootContextMenu;
0019 
0020 
0021 class TRootDialog : public TGTransientFrame {
0022 
0023 private:
0024    TRootContextMenu *fMenu;    ///< associated context menu
0025    TGLayoutHints    *fL1;      ///< label layout
0026    TGLayoutHints    *fL2;      ///< text entry layout
0027    TList            *fWidgets; ///< label and text field widgets created in dialog
0028    Bool_t            fOk;      ///< if true show OK button
0029    Bool_t            fCancel;  ///< if true show Cancel button
0030    Bool_t            fApply;   ///< if true show Apply button
0031    Bool_t            fHelp;    ///< if true show Online Help button
0032 
0033 public:
0034    TRootDialog(TRootContextMenu *cmenu = nullptr, const TGWindow *main = nullptr,
0035                const char *title = "ROOT Dialog", Bool_t okB = kTRUE,
0036                Bool_t cancelB = kTRUE, Bool_t applyB = kFALSE,
0037                Bool_t helpB = kTRUE);
0038    ~TRootDialog() override;
0039 
0040    virtual void Add(const char *argname, const char *value, const char *type);
0041    //virtual void Add(TGComboBox *optionSel);
0042 
0043    virtual const char *GetParameters();
0044 
0045    void   CloseWindow() override;
0046    virtual void   Popup();
0047    Bool_t HandleKey(Event_t *event) override;
0048 
0049    void TabPressed();
0050 
0051    ClassDefOverride(TRootDialog,0)  //Native GUI method argument prompt dialog box
0052 };
0053 
0054 #endif
0055