library: libGui #include "TRootDialog.h"

# TRootDialog

class description - source file - inheritance tree (.pdf)

## class TRootDialog : public TGTransientFrame

| Inheritance Chart:

`TObject`

<-

`TGObject`

<-

`TGWindow`

`TQObject`

<-

`TGFrame`

<-

`TGCompositeFrame`

<-

`TGMainFrame`

<-

`TGTransientFrame`

<-

`TRootDialog`

        public:

                              TRootDialog(TRootContextMenu* cmenu = 0, const TGWindow* main = 0, const char* title = "ROOT Dialog", Bool_t okB = kTRUE, Bool_t cancelB = kTRUE, Bool_t applyB = kFALSE)
                              TRootDialog(const TRootDialog&)
                      virtual ~TRootDialog()
                 virtual void Add(const char* argname, const char* value, const char* type)
               static TClass* Class()
                 virtual void CloseWindow()
          virtual const char* GetParameters() const
              virtual TClass* IsA() const
                 virtual void Popup()
                 virtual void ShowMembers(TMemberInspector& insp, char* parent)
                 virtual void Streamer(TBuffer& b)
                         void StreamerNVirtual(TBuffer& b)

### Data Members

        private:

          TRootContextMenu* fMenu     associated context menu
             TGLayoutHints* fL1       label layout
             TGLayoutHints* fL2       text entry layout
                     TList* fWidgets  label and text field widgets created in dialog
                     Bool_t fOk       if true show OK button
                     Bool_t fCancel   if true show Cancel button
                     Bool_t fApply    if true show Apply button

## Class Description

     TRootDialog

     A TRootDialog is used to prompt for the arguments of an object's
     member function. A TRootDialog is created via the context menu's
     when selecting a member function taking arguments.

TRootDialog(TRootContextMenu *cmenu, const TGWindow *main, const char *title, Bool_t okB, Bool_t cancelB, Bool_t applyB) : TGTransientFrame(gClient->GetRoot(), main, 200, 100)

     Create a method argument prompt dialog.

~TRootDialog()

     Delete the dialog.

void Add(const char *argname, const char *value, const char *type)

     Add a label and text input field.

const char* GetParameters()

     Get parameter string (called by contextmenu after OK or Apply has
     been selected).

void Popup()

     Popup dialog.

void CloseWindow()

     Called when closed via window manager action.

### Inline Functions

                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
            TRootDialog TRootDialog(const TRootDialog&)

Author: Fons Rademakers 20/02/98
Last update: root/gui:$Name: $:$Id: TRootDialog.cxx,v 1.6 2004/09/13 09:10:56 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *