96 Error(
"AddButton",
"pixmap not found: %s",
button->fPixmap);
119 Connect(pbut,
"Pressed()" ,
"TGToolBar",
this,
"ButtonPressed()");
120 Connect(pbut,
"Released()",
"TGToolBar",
this,
"ButtonReleased()");
121 Connect(pbut,
"Clicked()" ,
"TGToolBar",
this,
"ButtonClicked()");
146 Connect(pbut,
"Pressed()" ,
"TGToolBar",
this,
"ButtonPressed()");
147 Connect(pbut,
"Released()",
"TGToolBar",
this,
"ButtonReleased()");
148 Connect(pbut,
"Clicked()" ,
"TGToolBar",
this,
"ButtonClicked()");
162 while ((item = (
TGButton*)next())) {
200 Error(
"ChangeIcon",
"pixmap not found: %s", new_icon);
276 out <<
" // tool bar" << std::endl;
278 out <<
" TGToolBar *";
284 out <<
");" << std::endl;
292 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
305 out << std::endl <<
" ToolBarData_t t;" << std::endl;
310 gSystem->ExpandPathName(picname);
312 out <<
" t.fPixmap = " << quote << picname << quote <<
";" << std::endl;
313 out <<
" t.fTipText = " << quote
316 out <<
" t.fStayDown = kTRUE;" << std::endl;
318 out <<
" t.fStayDown = kFALSE;" << std::endl;
320 out <<
" t.fId = " <<
i+1 <<
";" << std::endl;
321 out <<
" t.fButton = 0;" << std::endl;
323 <<
",&t," <<
f->fLayout->GetPadLeft() <<
");" << std::endl;
325 out <<
" TGButton *" << pb->
GetName() <<
" = t.fButton;" << std::endl;
326 out <<
" " << pb->
GetName() <<
"->SetState(kButtonDown);" << std::endl;
329 out <<
" TGButton *" << pb->
GetName() <<
" = t.fButton;" << std::endl;
330 out <<
" " << pb->
GetName() <<
"->SetState(kButtonDisabled);" << std::endl;
333 out <<
" TGButton *" << pb->
GetName() <<
" = t.fButton;" << std::endl;
334 out <<
" " << pb->
GetName() <<
"->SetState(kButtonEngaged);" << std::endl;
338 f->fFrame->SavePrimitive(out,
option);
339 out <<
" " <<
GetName()<<
"->AddFrame(" <<
f->fFrame->GetName();
340 f->fLayout->SavePrimitive(out,
option);
341 out <<
");"<< std::endl;
ULong_t Pixel_t
Pixel value.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void w
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t button
R__EXTERN void * gTQSender
R__EXTERN TSystem * gSystem
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
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual UInt_t GetOptions() const
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
Pixel_t fBackground
frame background color
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.