88 t->
Connect(
"TabPressed()",
"TRootDialog",
this,
"TabPressed()");
122 while ((obj = next())) {
123 if (obj->IsA() != TGLabel::Class())
break;
130 const char *data = 0;
132 if (obj && obj->IsA() == TGTextEntry::Class())
133 data = ((
TGTextEntry *) obj)->GetBuffer()->GetString();
138 if (selfobjpos == nparam-1) {
139 if (params.
Length()) params +=
",";
145 if (params.
Length()) params +=
",";
147 if (!strncmp(
type,
"char*", 5))
158 if (selfobjpos == nparam) {
159 if (params.
Length()) params +=
",";
165 return params.
Data();
189 height =
b->GetDefaultHeight();
197 height =
b->GetDefaultHeight();
205 height =
b->GetDefaultHeight();
213 height =
b->GetDefaultHeight();
270 while (
TObject* obj = next() ) {
271 if ( obj->IsA() == TGTextEntry::Class() ) {
275 }
else if ( setNext ) {
284 while (
TObject* obj = next() ) {
285 if ( obj->IsA() == TGTextEntry::Class() ) {
307 while (
TObject* obj = next() ) {
308 if ( obj->IsA() == TGTextEntry::Class() ) {
const Mask_t kKeyPressMask
const Mask_t kLeaveWindowMask
const Mask_t kEnterWindowMask
include TDocParser_001 C image html pict1_TDocParser_001 png width
TGTextEntry * gBlinkingEntry
TGTextEntry * gBlinkingEntry
void WaitFor(TGWindow *w)
Wait for window to be destroyed.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual UInt_t GetDefaultWidth() const
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
virtual UInt_t GetDefaultHeight() const
virtual void SetEditDisabled(UInt_t on=1)
Set edit disable flag for this frame and subframes.
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
virtual UInt_t GetDefaultHeight() const
virtual void SendMessage(const TGWindow *w, Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
Send message (i.e.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void MapWindow()
map window
A composite frame that layout their children in horizontal way.
This class handles GUI labels.
This class describes layout hints used by the layout classes.
void SetIconName(const char *name)
Set window icon name. This is typically done via the window manager.
virtual Bool_t HandleKey(Event_t *event)
Handle keyboard events.
void SetWMSize(UInt_t w, UInt_t h)
Give the window manager a window size hint.
void SetMWMHints(UInt_t value, UInt_t funcs, UInt_t input)
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
void SetWMSizeHints(UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
Give the window manager minimum and maximum size hints.
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
TGClient * fClient
Connection to display server.
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
Yield an action as soon as it is clicked.
A TGTextEntry is a one line text input widget.
virtual void SetFocus()
Set focus to this text entry.
virtual void TabPressed()
This signal is emitted when the <TAB> key is pressed.
void End(Bool_t mark=kFALSE)
Moves the text cursor to the right end of the line.
Defines transient windows that typically are used for dialogs windows.
virtual void CenterOnParent(Bool_t croot=kTRUE, EPlacement pos=kCenter)
Position transient frame centered relative to the parent frame.
ROOT GUI Window base class.
@ kEditDisable
disable edit of this window
virtual void Add(TObject *obj)
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
Collectable string class.
const TString & GetString() const
Mother of all ROOT objects.
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
A TRootDialog is used to prompt for the arguments of an object's member function.
virtual Bool_t HandleKey(Event_t *event)
The key press event handler in this dialog.
TGLayoutHints * fL2
text entry layout
TGLayoutHints * fL1
label layout
virtual void Add(const char *argname, const char *value, const char *type)
Add a label and text input field.
TRootDialog(TRootContextMenu *cmenu=nullptr, const TGWindow *main=nullptr, const char *title="ROOT Dialog", Bool_t okB=kTRUE, Bool_t cancelB=kTRUE, Bool_t applyB=kFALSE, Bool_t helpB=kTRUE)
Create a method argument prompt dialog.
Bool_t fHelp
if true show Online Help button
virtual const char * GetParameters()
Get parameter string (called by contextmenu after OK or Apply has been selected).
void TabPressed()
Handle Tab keyboard navigation in this dialog.
Bool_t fCancel
if true show Cancel button
Bool_t fApply
if true show Apply button
TList * fWidgets
label and text field widgets created in dialog
virtual void Popup()
Popup dialog.
Bool_t fOk
if true show OK button
virtual ~TRootDialog()
Delete the dialog.
virtual void CloseWindow()
Called when closed via window manager action.
TRootContextMenu * fMenu
associated context menu
void Clear()
Clear string without changing its capacity.
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Short_t Max(Short_t a, Short_t b)