145 static int id = 1000;
387 const char *
text =
b->GetText()->GetString();
388 char hotpos =
b->GetText()->GetHotPos();
389 Int_t lentext =
b->GetText()->GetLength();
390 char *outext =
new char[lentext+2];
406 out <<
" // " << quote << outext << quote <<
" shutter item " << std::endl;
407 out <<
" TGShutterItem *";
409 <<
", new TGHotString(" << quote << outext << quote <<
"),"
413 if (option && strstr(option,
"keep_names"))
414 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
421 <<
" = (TGCompositeFrame *)" <<
GetName() <<
"->GetContainer();" << std::endl;
430 out <<
");"<< std::endl;
440 out <<
" // shutter" << std::endl;
442 out <<
" TGShutter *";
447 out <<
" " <<
GetName() <<
"->SetDefaultSize(";
450 if (option && strstr(option,
"keep_names"))
451 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
462 out <<
");"<< std::endl;
465 out <<
" " <<
GetName() <<
"->SetSelectedItem("
virtual Int_t GetEntries() const
virtual void SetContainer(TGFrame *f)
TGViewPort * GetViewPort() const
void SetScrolling(Int_t scrolling)
Set scrolling policy.
Pixel_t GetShadow(Pixel_t base_color) const
Return pixel value of shadow color based on base_color.
TGLayoutManager * fLayoutManager
virtual TList * GetList() const
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual Int_t MustCleanup() const
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
virtual void ShowFrame(TGFrame *f)
Show sub frame.
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
virtual void HideFrame(TGFrame *f)
Hide sub frame.
virtual UInt_t GetDefaultHeight() const
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a frame widget as a C++ statement(s) on output stream out.
TGFrameElement * GetFrameElement() const
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class).
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual UInt_t GetOptions() const
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move and/or resize the frame.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
TGShutterItem(const TGShutterItem &)
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a shutter item widget as a C++ statement(s) on output stream out.
virtual ~TGShutterItem()
Clan up shutter item.
TGButton * GetButton() const
TGFrame * GetContainer() const
virtual void AddItem(TGShutterItem *item)
Add shutter item to shutter frame.
virtual void RemovePage()
Remove selected page.
TGShutterItem * fClosingItem
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a shutter widget as a C++ statement(s) on output stream out.
TGShutterItem * GetItem(const char *name)
returns a shutter item by name (name is hot string of shutter item)
virtual void Layout()
Layout shutter items.
virtual Bool_t HandleTimer(TTimer *t)
Shutter item animation.
TGShutterItem * fSelectedItem
virtual void EnableItem(const char *name, Bool_t on=kTRUE)
Disable/enbale shutter item.
virtual void SetSelectedItem(TGShutterItem *item)
Set item to be the currently open shutter item.
virtual void SetDefaultSize(UInt_t w, UInt_t h)
Set the default / minimal size of the widget.
virtual TGDimension GetDefaultSize() const
Return the default / minimal size of the widget.
virtual void Selected(TGShutterItem *item)
TGShutterItem * GetSelectedItem() const
Int_t fClosingHadScrollbar
virtual TGShutterItem * AddPage(const char *item="Page")
Add new page (shutter item)
virtual ~TGShutter()
Cleanup shutter widget.
virtual Bool_t ProcessMessage(Long_t cmd, Long_t parm1, Long_t parm2)
Handle shutter messages.
virtual void RenamePage(const char *name)
Rename selected page.
TGShutter(const TGShutter &)
virtual void RemoveItem(const char *name)
Remove item from shutter.
virtual void SetText(TGHotString *new_label)
Set new button text.
TString GetString() const
TGVerticalFrame(const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
virtual void SetEditDisabled(UInt_t on=kEditDisable)
virtual void DestroyWindow()
destroy window
virtual void Add(TObject *obj)
virtual TObject * After(const TObject *obj) const
Returns the object after object obj.
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
virtual TObject * Before(const TObject *obj) const
Returns the object before object obj.
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
R__ALWAYS_INLINE Bool_t IsZombie() const
const char * Data() const
Handles synchronous and a-synchronous timer events.
virtual void TurnOff()
Remove timer from system timer list.
virtual void TurnOn()
Add the timer to the system timer list.
void Reset()
Reset the timer.
static constexpr double s