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