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()");
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;
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 UInt_t GetOptions() const
const char * GetName() const
Returns name of object.
R__EXTERN void * gTQSender
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 const char * UnixPathName(const char *unixpathname)
Convert from a Unix pathname to a local pathname.
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
void FreePicture(const TGPicture *pic)
Free picture resource.
virtual TList * GetList() const
void SetValue(TObject *val)
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".
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
const char * GetString() const
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.
const TGWindow * GetParent() const
Mother of all ROOT objects.
TObject * FindObject(const char *keyname) const
Check if a (key,value) pair exists with keyname as name of the key.
virtual void Add(TObject *obj)
TObject * GetValue(const char *keyname) const
Returns a pointer to the value associated with keyname as name of the key.
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
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.
virtual Int_t MustCleanup() const