TRootDialog.h

Go to the documentation of this file.
00001 // @(#)root/gui:$Id: TRootDialog.h 27999 2009-03-31 08:09:46Z bellenot $
00002 // Author: Fons Rademakers   20/02/98
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TRootDialog
00013 #define ROOT_TRootDialog
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TRootDialog                                                          //
00019 //                                                                      //
00020 // A TRootDialog is used to prompt for the arguments of an object's     //
00021 // member function. A TRootDialog is created via the context menu's     //
00022 // when selecting a member function taking arguments.                   //
00023 //                                                                      //
00024 //////////////////////////////////////////////////////////////////////////
00025 
00026 #ifndef ROOT_TGFrame
00027 #include "TGFrame.h"
00028 #endif
00029 
00030 class TRootContextMenu;
00031 
00032 
00033 class TRootDialog : public TGTransientFrame {
00034 
00035 private:
00036    TRootContextMenu *fMenu;    // associated context menu
00037    TGLayoutHints    *fL1;      // label layout
00038    TGLayoutHints    *fL2;      // text entry layout
00039    TList            *fWidgets; // label and text field widgets created in dialog
00040    Bool_t            fOk;      // if true show OK button
00041    Bool_t            fCancel;  // if true show Cancel button
00042    Bool_t            fApply;   // if true show Apply button
00043    Bool_t            fHelp;    // if true show Online Help button
00044 
00045 public:
00046    TRootDialog(TRootContextMenu *cmenu = 0, const TGWindow *main = 0, 
00047                const char *title = "ROOT Dialog", Bool_t okB = kTRUE, 
00048                Bool_t cancelB = kTRUE, Bool_t applyB = kFALSE, 
00049                Bool_t helpB = kTRUE);
00050    virtual ~TRootDialog();
00051 
00052    virtual void Add(const char *argname, const char *value, const char *type);
00053    //virtual void Add(TGComboBox *optionSel);
00054 
00055    virtual const char *GetParameters();
00056 
00057    virtual void   CloseWindow();
00058    virtual void   Popup();
00059    virtual Bool_t HandleKey(Event_t *event);
00060 
00061    void TabPressed();
00062 
00063    ClassDef(TRootDialog,0)  //Native GUI method argument prompt dialog box
00064 };
00065 
00066 #endif
00067 

Generated on Tue Jul 5 14:20:12 2011 for ROOT_528-00b_version by  doxygen 1.5.1