95 Error(
"AddButton",
"pixmap not found: %s", button->
fPixmap);
118 Connect(pbut,
"Pressed()" ,
"TGToolBar",
this,
"ButtonPressed()");
119 Connect(pbut,
"Released()",
"TGToolBar",
this,
"ButtonReleased()");
120 Connect(pbut,
"Clicked()" ,
"TGToolBar",
this,
"ButtonClicked()");
145 Connect(pbut,
"Pressed()" ,
"TGToolBar",
this,
"ButtonPressed()");
146 Connect(pbut,
"Released()",
"TGToolBar",
this,
"ButtonReleased()");
147 Connect(pbut,
"Clicked()" ,
"TGToolBar",
this,
"ButtonClicked()");
161 while ((item = (
TGButton*)next())) {
199 Error(
"ChangeIcon",
"pixmap not found: %s", new_icon);
274 out <<
"\n // tool bar\n";
276 out <<
" TGToolBar *" <<
GetName() <<
" = new TGToolBar(" <<
fParent->GetName() <<
"," <<
GetWidth() <<
","
279 if (option && strstr(option,
"keep_names"))
280 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");\n";
290 out <<
" ToolBarData_t toolbardata;\n";
295 gSystem->ExpandPathName(picname);
298 out <<
" toolbardata.fTipText = \""
301 out <<
" toolbardata.fStayDown = kTRUE;\n";
303 out <<
" toolbardata.fStayDown = kFALSE;\n";
304 out <<
" toolbardata.fId = " << i + 1 <<
";\n";
305 out <<
" toolbardata.fButton = nullptr;\n";
307 <<
f->fLayout->GetPadLeft() <<
");\n";
309 out <<
" toolbardata.fButton->SetState(kButtonDown);\n";
312 out <<
" toolbardata.fButton->SetState(kButtonDisabled);\n";
315 out <<
" toolbardata.fButton->SetState(kButtonEngaged);\n";
319 f->fFrame->SavePrimitive(out, option);
320 out <<
" " <<
GetName() <<
"->AddFrame(" <<
f->fFrame->GetName();
321 f->fLayout->SavePrimitive(out, option);
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
long Longptr_t
Integer large enough to hold a pointer (platform-dependent).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
const char Option_t
Option string (const char).
Error("WriteTObject","The current directory (%s) is not associated with a file. The object (%s) has not been written.", GetName(), objname)
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
virtual TList * GetList() const
Int_t MustCleanup() const override
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
TGCompositeFrame(const TGCompositeFrame &)=delete
TString SaveCtorArgs(std::ostream &out, UInt_t dflt_options=kChildFrame, Bool_t check_white_pixel=kFALSE)
Return options and custom color as constructor args Used in the SavePrimitive methods,...
This class describes layout hints used by the layout classes.
TGClient * fClient
Connection to display server.
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
const char * GetName() const override
Returns name of object.
const char * GetString() const
const TGWindow * fParent
Parent window.
virtual void SetWindowName(const char *name=nullptr)
Set window name.
const TGWindow * GetParent() const
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Mother of all ROOT objects.
Class used by TMap to store (key,value) pairs.
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.
TString & ReplaceSpecialCppChars()
Find special characters which are typically used in printf() calls and replace them by appropriate es...