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;
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.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
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
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
void FreePicture(const TGPicture *pic)
Free picture resource.
The base class for composite widgets (menu bars, list boxes, etc.).
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.
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
ROOT GUI Window base class.
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.
void Clear(Option_t *option="") override
Remove all objects from the list.
void Add(TObject *obj) override
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
void Add(TObject *obj) override
This function may not be used (but we need to provide it since it is a pure virtual in TCollection).
TObject * FindObject(const char *keyname) const override
Check if a (key,value) pair exists with keyname as name of the key.
TObject * GetValue(const char *keyname) const
Returns a pointer to the value associated with keyname as name of the key.
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.
virtual Bool_t ExpandPathName(TString &path)
Expand a pathname getting rid of special shell characters like ~.
virtual const char * UnixPathName(const char *unixpathname)
Convert from a local pathname to a Unix pathname.