59 Resize(10, GetDefaultHeight());
61 fNormBg = fBackground;
66 l = l + (1. -
l) * 45. / 100.;
130 for (
int i = 0; i < 5; i +=4) {
458 out << std::endl <<
" // dockable frame" << std::endl;
459 out <<
" TGDockableFrame *";
464 out <<
");" << std::endl;
466 out <<
"," <<
fWidgetId <<
");" << std::endl;
471 if (option && strstr(option,
"keep_names"))
472 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
476 <<
GetName() <<
"->GetContainer();" << std::endl;
485 out <<
");"<< std::endl;
488 out << std::endl <<
" // next lines belong to the dockable frame widget" << std::endl;
490 out <<
" " <<
GetName() <<
"->EnableUndock(kTRUE);" << std::endl;
492 out <<
" " <<
GetName() <<
"->EnableUndock(kFALSE);" << std::endl;
495 out <<
" " <<
GetName() <<
"->EnableHide(kTRUE);" << std::endl;
497 out <<
" " <<
GetName() <<
"->EnableHide(kFALSE);" << std::endl;
501 << quote <<
");" << std::endl;
504 out <<
" " <<
GetName() <<
"->UndockContainer();" << std::endl;
506 out <<
" " <<
GetName() <<
"->DockContainer();" << std::endl;
509 out <<
" " <<
GetName() <<
"->HideContainer();" << std::endl;
virtual void HideFrame(TGFrame *f)
Hide sub frame.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual ~TGUndockedFrame()
Delete undocked frame. Puts back dockable frame in its original container.
virtual void AddFrame(TGFrame *f, TGLayoutHints *hints)
Add frame to dockable frame container. Frame and hints are NOT adopted.
TGUndockedFrame(const TGUndockedFrame &)
virtual UInt_t GetOptions() const
void DockContainer(Int_t del=kTRUE)
Dock container back to TGDockableFrame.
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
static const TGGC & GetHilightGC()
Get highlight color graphics context.
const Mask_t kLeaveWindowMask
virtual void DrawBorder()
Draw frame border.
virtual void ShowFrame(TGFrame *f)
Show sub frame.
TGCompositeFrame * fButtons
TGDockableFrame * fDockable
virtual void Layout()
Layout the elements of the composite frame.
TGDockHideButton * fHideButton
Bool_t EnableUndock() const
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
Bool_t EnableHide() const
TGCompositeFrame * GetContainer() const
void SetWMSizeHints(UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
Give the window manager minimum and maximum size hints.
virtual void ReparentWindow(const TGWindow *p, Int_t x=0, Int_t y=0)
Reparent window, make p the new parent and position the window at position (x,y) in new parent...
TGCompositeFrame(const TGCompositeFrame &)
virtual void SendMessage(const TGWindow *w, Long_t msg, Long_t parm1, Long_t parm2)
Send message (i.e.
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class).
virtual TList * GetList() const
Bool_t IsUndocked() const
static ULong_t RGB2Pixel(Int_t r, Int_t g, Int_t b)
Convert r,g,b to graphics system dependent pixel value.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a dockable frame widget as a C++ statement(s) on output stream out.
virtual Bool_t ProcessMessage(Long_t, Long_t, Long_t)
Process dockable frame messages.
static void RGB2HLS(Float_t r, Float_t g, Float_t b, Float_t &h, Float_t &l, Float_t &s)
Static method to compute HLS from RGB.
static void HLS2RGB(Float_t h, Float_t l, Float_t s, Float_t &r, Float_t &g, Float_t &b)
Static method to compute RGB from HLS.
void CloseWindow()
Close undocked frame (called via WM close button).
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a frame widget as a C++ statement(s) on output stream out.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
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 ~TGDockableFrame()
Cleanup dockable frame.
virtual void ChangeOptions(UInt_t options)
Change composite frame options. Options is an OR of the EFrameTypes.
virtual UInt_t GetDefaultWidth() const
TGCompositeFrame * fContainer
static const TGGC & GetBlackGC()
Get black graphics context.
virtual void Move(Int_t x, Int_t y)
Move frame.
friend class TGUndockedFrame
TGDimension GetSize() const
const Mask_t kEnterWindowMask
virtual void SetEditDisabled(UInt_t on=1)
Set edit disable flag for this frame and subframes.
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
TGDockButton * fDockButton
void ShowContainer()
Show dock container.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
TGDockableFrame(const TGDockableFrame &)
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
void HideContainer()
Hide dock container.
Bool_t IsComposite() const
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
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
void SetWMSize(UInt_t w, UInt_t h)
Give the window manager a window size hint.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
void FixSize()
Fix the size of the undocked frame so it cannot be changed via the WM.
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
void SetWindowName(const char *name)
Set window name so it appear as title of the undock window.
virtual void DeleteWindow()
Delete window.
void SetMWMHints(UInt_t value, UInt_t funcs, UInt_t input)
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
virtual void ChangeOptions(UInt_t options)
Change frame options. Options is an OR of the EFrameTypes.
static const TGGC & GetShadowGC()
Get shadow color graphics context.
void UndockContainer()
Undock container.
static void Pixel2RGB(ULong_t pixel, Int_t &r, Int_t &g, Int_t &b)
Convert machine dependent pixel value (obtained via RGB2Pixel or via Number2Pixel() or via TColor::Ge...
virtual void SetWindowName(const char *name=0)
Set window name.