147 static int id = 1000;
168 if (parm1 ==
child->WidgetId()) {
233 bh =
child->fButton->GetDefaultHeight();
241 bh =
child->fButton->GetDefaultHeight();
389 const char *
text =
b->GetText()->GetString();
390 char hotpos =
b->GetText()->GetHotPos();
391 Int_t lentext =
b->GetText()->GetLength();
392 char *outext =
new char[lentext+2];
408 out <<
" // " << quote << outext << quote <<
" shutter item " << std::endl;
409 out <<
" TGShutterItem *";
411 <<
", new TGHotString(" << quote << outext << quote <<
"),"
416 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
423 <<
" = (TGCompositeFrame *)" <<
GetName() <<
"->GetContainer();" << std::endl;
432 out <<
");"<< std::endl;
442 out <<
" // shutter" << std::endl;
444 out <<
" TGShutter *";
449 out <<
" " <<
GetName() <<
"->SetDefaultSize(";
453 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
464 out <<
");"<< std::endl;
467 out <<
" " <<
GetName() <<
"->SetSelectedItem("
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t sel
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t b
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t child
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t TPoint TPoint const char text
virtual Int_t GetEntries() const
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
virtual void SetContainer(TGFrame *f)
TGViewPort * GetViewPort() const
Pixel_t GetShadow(Pixel_t base_color) const
Return pixel value of shadow color based on base_color.
The base class for composite widgets (menu bars, list boxes, etc.).
TGLayoutManager * fLayoutManager
layout manager
virtual TList * GetList() const
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Int_t MustCleanup() const override
void MapSubwindows() override
Map all sub windows that are part of the composite frame.
TList * fList
container of frame elements
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
UInt_t fHeight
frame height
virtual UInt_t GetDefaultHeight() const
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a frame widget as a C++ statement(s) on output stream out.
Int_t fBorderWidth
frame border width
void SetBackgroundColor(Pixel_t back) override
Set background color (override from TGWindow base class).
TGFrameElement * GetFrameElement() const
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual UInt_t GetOptions() const
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
TGHotString is a string with a "hot" character underlined.
This class describes layout hints used by the layout classes.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save layout hints as a C++ statement(s) on output stream out.
TGClient * fClient
Connection to display server.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a shutter item widget as a C++ statement(s) on output stream out.
TGLayoutHints * fL2
positioning hints
TGFrame * fContainer
container in canvas containing shutter items
virtual ~TGShutterItem()
Clan up shutter item.
TGCanvas * fCanvas
canvas of shutter item
TGButton * GetButton() const
TGButton * fButton
shutter item button
TGShutterItem(const TGShutterItem &)=delete
TGFrame * GetContainer() const
A shutter widget contains a set of shutter items that can be open and closed like a shutter.
virtual void AddItem(TGShutterItem *item)
Add shutter item to shutter frame.
virtual void RemovePage()
Remove selected page.
TGShutterItem * fClosingItem
Item closing down.
TGDimension GetDefaultSize() const override
Return the default / minimal size of the widget.
TTimer * fTimer
Timer for animation.
Bool_t ProcessMessage(Longptr_t cmd, Longptr_t parm1, Longptr_t parm2) override
Handle shutter messages.
TGShutterItem * GetItem(const char *name)
returns a shutter item by name (name is hot string of shutter item)
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a shutter widget as a C++ statement(s) on output stream out.
UInt_t fDefHeight
Default height.
TGShutterItem * fSelectedItem
Item currently open.
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
TList * fTrash
Items that need to be cleaned up.
Int_t fHeightIncrement
Height delta.
virtual void SetDefaultSize(UInt_t w, UInt_t h)
Set the default / minimal size of the widget.
void Layout() override
Layout shutter items.
Int_t fClosingHeight
Closing items current height.
virtual void Selected(TGShutterItem *item)
TGShutterItem * GetSelectedItem() const
Int_t fClosingHadScrollbar
Closing item had a scroll bar.
virtual TGShutterItem * AddPage(const char *item="Page")
Add new page (shutter item)
virtual ~TGShutter()
Cleanup shutter widget.
virtual void RenamePage(const char *name)
Rename selected page.
UInt_t fDefWidth
Default width.
Bool_t HandleTimer(TTimer *t) override
Shutter item animation.
virtual void RemoveItem(const char *name)
Remove item from shutter.
Yield an action as soon as it is clicked.
virtual void SetText(TGHotString *new_label)
Set new button text.
TString GetString() const
A composite frame that layout their children in vertical way.
TGVerticalFrame(const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
ROOT GUI Window base class.
virtual void SetEditDisabled(UInt_t on=kEditDisable)
const TGWindow * fParent
Parent window.
@ kEditDisableLayout
window layout cannot be edited
@ kEditDisableBtnEnable
window can handle mouse button events
@ kEditDisableGrab
window grab cannot be edited
virtual void DestroyWindow()
destroy window
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
UInt_t fEditDisabled
flags used for "guibuilding"
TObject * After(const TObject *obj) const override
Returns the object after object obj.
TObject * Before(const TObject *obj) const override
Returns the object before object obj.
TObject * FindObject(const char *name) const override
Find an object in this list using its name.
void Add(TObject *obj) override
TObject * First() const override
Return the first object in the list. Returns 0 when list is empty.
void Delete(Option_t *option="") override
Remove all objects from the list AND delete all heap based objects.
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