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);
275 out <<
" // tool bar" << std::endl;
277 out <<
" TGToolBar *";
283 out <<
");" << std::endl;
290 if (option && strstr(option,
"keep_names"))
291 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
305 out << std::endl <<
" ToolBarData_t t;" << std::endl;
311 out <<
" t.fPixmap = " << quote
313 << quote <<
";" << std::endl;
314 out <<
" t.fTipText = " << quote
317 out <<
" t.fStayDown = kTRUE;" << std::endl;
319 out <<
" t.fStayDown = kFALSE;" << std::endl;
321 out <<
" t.fId = " << i+1 <<
";" << std::endl;
322 out <<
" t.fButton = 0;" << std::endl;
324 <<
",&t," <<
f->fLayout->GetPadLeft() <<
");" << std::endl;
326 out <<
" TGButton *" << pb->
GetName() <<
" = t.fButton;" << std::endl;
327 out <<
" " << pb->
GetName() <<
"->SetState(kButtonDown);" << std::endl;
330 out <<
" TGButton *" << pb->
GetName() <<
" = t.fButton;" << std::endl;
331 out <<
" " << pb->
GetName() <<
"->SetState(kButtonDisabled);" << std::endl;
334 out <<
" TGButton *" << pb->
GetName() <<
" = t.fButton;" << std::endl;
335 out <<
" " << pb->
GetName() <<
"->SetState(kButtonEngaged);" << std::endl;
339 f->fFrame->SavePrimitive(out, option);
340 out <<
" " <<
GetName()<<
"->AddFrame(" <<
f->fFrame->GetName();
341 f->fLayout->SavePrimitive(out, option);
342 out <<
");"<< std::endl;
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.
virtual TList * GetList() const
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
virtual Int_t MustCleanup() const
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().
const char * GetName() const
Returns name of object.
const char * GetString() const
virtual void SetWindowName(const char *name=0)
Set window name.
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
const TGWindow * GetParent() const
virtual void Add(TObject *obj)
virtual void Clear(Option_t *option="")
Remove all objects from the list.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
void Add(TObject *obj)
This function may not be used (but we need to provide it since it is a pure virtual in TCollection).
TObject * GetValue(const char *keyname) const
Returns a pointer to the value associated with keyname as name of the key.
TObject * FindObject(const char *keyname) const
Check if a (key,value) pair exists with keyname as name of the key.
Mother of all ROOT objects.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
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 Unix pathname to a local pathname.