54 fPictures =
new TList;
56 fMapOfButtons =
new TMap();
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()");
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;
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;
342 out <<
");"<< std::endl;
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
const TGWindow * GetParent() const
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
R__EXTERN void * gTQSender
void SetValue(TObject *val)
void Add(TObject *obj)
This function may not be used (but we need to provide it since it is a pure virtual in TCollection)...
virtual TList * GetList() const
virtual const char * UnixPathName(const char *unixpathname)
Convert from a Unix pathname to a local pathname.
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual UInt_t GetOptions() const
void FreePicture(const TGPicture *pic)
Free picture resource.
const char * GetName() const
Returns name of object.
TObject * GetValue(const char *keyname) const
Returns a pointer to the value associated with keyname as name of the key.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
TObject * FindObject(const char *keyname) const
Check if a (key,value) pair exists with keyname as name of the key.
virtual Int_t MustCleanup() const
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 void SavePrimitive(std::ostream &out, Option_t *option="")
Save a frame widget as a C++ statement(s) on output stream out.
R__EXTERN TSystem * gSystem
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
Class used by TMap to store (key,value) pairs.
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void Clear(Option_t *option="")
Remove all objects from the list.
Mother of all ROOT objects.
virtual void Add(TObject *obj)
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
const char * GetString() const
virtual Bool_t ExpandPathName(TString &path)
Expand a pathname getting rid of special shell characters like ~.
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().