146 static int id = 1000;
388 const char *
text =
b->GetText()->GetString();
389 char hotpos =
b->GetText()->GetHotPos();
390 Int_t lentext =
b->GetText()->GetLength();
391 char *outext =
new char[lentext+2];
407 out <<
" // " << quote << outext << quote <<
" shutter item " << std::endl;
408 out <<
" TGShutterItem *";
410 <<
", new TGHotString(" << quote << outext << quote <<
"),"
414 if (option && strstr(option,
"keep_names"))
415 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
422 <<
" = (TGCompositeFrame *)" <<
GetName() <<
"->GetContainer();" << std::endl;
431 out <<
");"<< std::endl;
441 out <<
" // shutter" << std::endl;
443 out <<
" TGShutter *";
448 out <<
" " <<
GetName() <<
"->SetDefaultSize(";
451 if (option && strstr(option,
"keep_names"))
452 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
463 out <<
");"<< std::endl;
466 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".
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
TGShutterItem(const TGShutterItem &)=delete
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.
TGShutter(const TGShutter &)=delete
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.
virtual void RemoveItem(const char *name)
Remove item from shutter.
virtual void SetText(TGHotString *new_label)
Set new button text.
TString GetString() const
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.