12#ifndef ROOT_TGDockableFrame
13#define ROOT_TGDockableFrame
#define ClassDef(name, id)
The base class for composite widgets (menu bars, list boxes, etc.).
A frame with handles that allow it to be undocked (i.e.
void DockContainer(Int_t del=kTRUE)
Dock container back to TGDockableFrame.
Bool_t fEnableUndock
if frame can be undocked
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a dockable frame widget as a C++ statement(s) on output stream out.
TGCompositeFrame * fButtons
container containing dock and hide buttons
virtual ~TGDockableFrame()
Cleanup dockable frame.
TGUndockedFrame * fFrame
undocked frame
TGCompositeFrame * GetContainer() const
virtual Bool_t ProcessMessage(Longptr_t, Longptr_t, Longptr_t)
Process dockable frame messages.
virtual void AddFrame(TGFrame *f, TGLayoutHints *hints)
Add frame to dockable frame container. Frame and hints are NOT adopted.
TGCompositeFrame * fContainer
container containing dockable frame
Bool_t fHidden
if frame is hidden
TGDockableFrame(const TGDockableFrame &)=delete
void UndockContainer()
Undock container.
Bool_t fDeleted
kTRUE if it is being deleted
void HideContainer()
Hide dock container.
void SetFixedSize(Bool_t fixed)
Bool_t EnableUndock() const
Bool_t IsFixedSize() const
TGDockableFrame & operator=(const TGDockableFrame &)=delete
Bool_t fFixedSize
kTRUE if fixed size when undocked
TGLayoutHints * fHints
layout hints
void SetWindowName(const char *name)
Set window name so it appear as title of the undock window.
Bool_t fEnableHide
if frame can be hidden
Bool_t EnableHide() const
TGDockButton * fDockButton
dock button
void ShowContainer()
Show dock container.
TGDockHideButton * fHideButton
hide button
TString fDockName
name of frame
TGUndockedFrame * GetUndocked() const
TGLayoutHints * fLc
layout hints
Bool_t IsUndocked() const
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
This class describes layout hints used by the layout classes.
Defines transient windows that typically are used for dialogs windows.
TGUndockedFrame & operator=(const TGUndockedFrame &)=delete
void FixSize()
Fix the size of the undocked frame so it cannot be changed via the WM.
virtual ~TGUndockedFrame()
Delete undocked frame. Puts back dockable frame in its original container.
TGDockableFrame * fDockable
orignal dockable frame
TGUndockedFrame(const TGUndockedFrame &)=delete
void CloseWindow()
Close undocked frame (called via WM close button).
ROOT GUI Window base class.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.