TGDockableFrame Class Reference

#include <TGDockableFrame.h>

Inheritance diagram for TGDockableFrame:

TGCompositeFrame TGWidget TGCompositeFrame TGWidget TGFrame TGFrame TGFrame TGFrame TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow List of all members.

Public Member Functions

 TGDockableFrame (const TGWindow *p=0, Int_t id=-1, UInt_t options=kHorizontalFrame)
virtual ~TGDockableFrame ()
virtual void AddFrame (TGFrame *f, TGLayoutHints *hints)
virtual Bool_t ProcessMessage (Long_t, Long_t, Long_t)
virtual void Docked ()
virtual void Undocked ()
void UndockContainer ()
void DockContainer (Int_t del=kTRUE)
void HideContainer ()
void ShowContainer ()
void EnableUndock (Bool_t onoff)
Bool_t EnableUndock () const
void EnableHide (Bool_t onoff)
Bool_t EnableHide () const
void SetWindowName (const char *name)
Bool_t IsUndocked () const
Bool_t IsHidden () const
Bool_t IsFixedSize () const
void SetFixedSize (Bool_t fixed)
TGCompositeFrameGetContainer () const
TGUndockedFrameGetUndocked () const
virtual void SavePrimitive (ostream &out, Option_t *option="")
 TGDockableFrame (const TGWindow *p=0, Int_t id=-1, UInt_t options=kHorizontalFrame)
virtual ~TGDockableFrame ()
virtual void AddFrame (TGFrame *f, TGLayoutHints *hints)
virtual Bool_t ProcessMessage (Long_t, Long_t, Long_t)
virtual void Docked ()
virtual void Undocked ()
void UndockContainer ()
void DockContainer (Int_t del=kTRUE)
void HideContainer ()
void ShowContainer ()
void EnableUndock (Bool_t onoff)
Bool_t EnableUndock () const
void EnableHide (Bool_t onoff)
Bool_t EnableHide () const
void SetWindowName (const char *name)
Bool_t IsUndocked () const
Bool_t IsHidden () const
Bool_t IsFixedSize () const
void SetFixedSize (Bool_t fixed)
TGCompositeFrameGetContainer () const
TGUndockedFrameGetUndocked () const
virtual void SavePrimitive (ostream &out, Option_t *option="")

Protected Attributes

Bool_t fHidden
Bool_t fEnableHide
Bool_t fEnableUndock
Bool_t fDeleted
Bool_t fFixedSize
TString fDockName
TGCompositeFramefContainer
TGCompositeFramefButtons
TGDockButtonfDockButton
TGDockHideButtonfHideButton
TGUndockedFramefFrame
TGLayoutHintsfCl
TGLayoutHintsfHints
TGLayoutHintsfLb
TGLayoutHintsfLc
TGCompositeFramefContainer
TGCompositeFramefButtons
TGDockButtonfDockButton
TGDockHideButtonfHideButton
TGUndockedFramefFrame
TGLayoutHintsfCl
TGLayoutHintsfLb

Private Member Functions

 TGDockableFrame (const TGDockableFrame &)
TGDockableFrameoperator= (const TGDockableFrame &)
 TGDockableFrame (const TGDockableFrame &)
TGDockableFrameoperator= (const TGDockableFrame &)

Friends

class TGUndockedFrame

Detailed Description

Definition at line 101 of file TGDockableFrame.h.


Constructor & Destructor Documentation

TGDockableFrame::TGDockableFrame ( const TGDockableFrame  )  [private]

TGDockableFrame::TGDockableFrame ( const TGWindow p = 0,
Int_t  id = -1,
UInt_t  options = kHorizontalFrame 
)

Definition at line 216 of file TGDockableFrame.cxx.

References TGCompositeFrame::AddFrame(), TGWidget::Associate(), fButtons, fCl, fContainer, fDeleted, fDockButton, fEnableHide, fEnableUndock, fFixedSize, fFrame, fHidden, fHideButton, fLb, fLc, TGWidget::fMsgWindow, TGWindow::fParent, TGCompositeFrame::GetDefaultSize(), kFALSE, kLHintsExpandX, kLHintsExpandY, kLHintsLeft, kLHintsTop, kTRUE, kVerticalFrame, TGCompositeFrame::MapSubwindows(), TGFrame::Resize(), TGCompositeFrame::SetCleanup(), TGWindow::SetWindowName(), and TGCompositeFrame::TGCompositeFrame().

TGDockableFrame::~TGDockableFrame (  )  [virtual]

Definition at line 259 of file TGDockableFrame.cxx.

References fDeleted, fFrame, and kTRUE.

TGDockableFrame::TGDockableFrame ( const TGDockableFrame  )  [private]

TGDockableFrame::TGDockableFrame ( const TGWindow p = 0,
Int_t  id = -1,
UInt_t  options = kHorizontalFrame 
)

virtual TGDockableFrame::~TGDockableFrame (  )  [virtual]


Member Function Documentation

TGDockableFrame& TGDockableFrame::operator= ( const TGDockableFrame  )  [private]

void TGDockableFrame::AddFrame ( TGFrame f,
TGLayoutHints hints 
) [virtual]

Reimplemented from TGCompositeFrame.

Definition at line 272 of file TGDockableFrame.cxx.

References TGCompositeFrame::AddFrame(), fContainer, fHints, and TGCompositeFrame::Layout().

Referenced by TRootCanvas::ShowToolBar(), SplitGLView::SplitGLView(), and TRootGuiBuilder::TRootGuiBuilder().

Bool_t TGDockableFrame::ProcessMessage ( Long_t  ,
Long_t  ,
Long_t   
) [virtual]

Reimplemented from TGCompositeFrame.

Definition at line 387 of file TGDockableFrame.cxx.

References fHidden, GET_MSG(), GET_SUBMSG(), HideContainer(), kC_COMMAND, kCM_BUTTON, kTRUE, ShowContainer(), and UndockContainer().

virtual void TGDockableFrame::Docked (  )  [inline, virtual]

Definition at line 131 of file TGDockableFrame.h.

References TQObject::Emit().

Referenced by DockContainer().

virtual void TGDockableFrame::Undocked (  )  [inline, virtual]

Definition at line 132 of file TGDockableFrame.h.

References TQObject::Emit().

Referenced by UndockContainer().

void TGDockableFrame::UndockContainer (  ) 

Definition at line 282 of file TGDockableFrame.cxx.

References TGCompositeFrame::AddFrame(), fCl, TGObject::fClient, fContainer, fDockName, fEnableUndock, fFixedSize, fFrame, TGUndockedFrame::FixSize(), TGWidget::fMsgWindow, TGWindow::fParent, TGWidget::fWidgetId, TGFrame::fX, TGFrame::fY, TGClient::GetDefaultRoot(), TGFrame::GetHeight(), TGObject::GetId(), TGFrame::GetSize(), gVirtualX, TGCompositeFrame::IsComposite(), kC_DOCK, kDOCK_UNDOCK, TGCompositeFrame::Layout(), TGCompositeFrame::MapSubwindows(), TGFrame::MapWindow(), MK_MSG(), TGFrame::Move(), TGCompositeFrame::RemoveFrame(), TGFrame::ReparentWindow(), TGFrame::Resize(), TGFrame::SendMessage(), TGCompositeFrame::SetEditDisabled(), TGMainFrame::SetWindowName(), size, TGUndockedFrame, and Undocked().

Referenced by TestMainFrame::HandleMenu(), and ProcessMessage().

void TGDockableFrame::DockContainer ( Int_t  del = kTRUE  ) 

Definition at line 321 of file TGDockableFrame.cxx.

References TGCompositeFrame::AddFrame(), Docked(), fCl, fContainer, fDockButton, fFrame, TGWidget::fMsgWindow, TGWindow::fParent, TGWidget::fWidgetId, TGFrame::GetDefaultWidth(), TGCompositeFrame::IsComposite(), kC_DOCK, kDOCK_DOCK, TGCompositeFrame::Layout(), MK_MSG(), TGCompositeFrame::RemoveFrame(), TGFrame::ReparentWindow(), TGFrame::Resize(), and TGFrame::SendMessage().

Referenced by TestMainFrame::HandleMenu(), TRootCanvas::ShowToolBar(), and TGUndockedFrame::~TGUndockedFrame().

void TGDockableFrame::HideContainer (  ) 

Definition at line 370 of file TGDockableFrame.cxx.

References fButtons, fContainer, fDockButton, fEnableHide, fHidden, fHideButton, TGWidget::fMsgWindow, TGWindow::fParent, TGWidget::fWidgetId, TGCompositeFrame::HideFrame(), TGCompositeFrame::IsComposite(), kC_DOCK, kDOCK_HIDE, kTRUE, MK_MSG(), TGFrame::SendMessage(), and TGDockHideButton::SetAspectRatio().

Referenced by ProcessMessage().

void TGDockableFrame::ShowContainer (  ) 

Definition at line 353 of file TGDockableFrame.cxx.

References fButtons, fContainer, fDockButton, fEnableUndock, fHidden, fHideButton, TGWidget::fMsgWindow, TGWindow::fParent, TGWidget::fWidgetId, TGCompositeFrame::IsComposite(), kC_DOCK, kDOCK_SHOW, kFALSE, MK_MSG(), TGFrame::SendMessage(), TGDockHideButton::SetAspectRatio(), and TGCompositeFrame::ShowFrame().

Referenced by ProcessMessage().

void TGDockableFrame::EnableUndock ( Bool_t  onoff  ) 

Definition at line 415 of file TGDockableFrame.cxx.

References fButtons, fDockButton, fEnableUndock, TGCompositeFrame::HideFrame(), TGCompositeFrame::Layout(), and TGCompositeFrame::ShowFrame().

Referenced by TestMainFrame::HandleMenu().

Bool_t TGDockableFrame::EnableUndock (  )  const [inline]

Definition at line 141 of file TGDockableFrame.h.

References fEnableUndock.

Referenced by SavePrimitive().

void TGDockableFrame::EnableHide ( Bool_t  onoff  ) 

Definition at line 428 of file TGDockableFrame.cxx.

References fButtons, fEnableHide, fHideButton, TGCompositeFrame::HideFrame(), TGCompositeFrame::Layout(), and TGCompositeFrame::ShowFrame().

Referenced by TRootCanvas::CreateCanvas(), TestMainFrame::HandleMenu(), and SplitGLView::SplitGLView().

Bool_t TGDockableFrame::EnableHide (  )  const [inline]

Definition at line 143 of file TGDockableFrame.h.

References fEnableHide.

Referenced by SavePrimitive().

void TGDockableFrame::SetWindowName ( const char *  name  )  [virtual]

Reimplemented from TGWindow.

Definition at line 441 of file TGDockableFrame.cxx.

References fDockName, fFrame, and TGMainFrame::SetWindowName().

Referenced by TRootCanvas::SetWindowTitle(), TRootCanvas::ShowToolBar(), and TRootGuiBuilder::TRootGuiBuilder().

Bool_t TGDockableFrame::IsUndocked (  )  const [inline]

Definition at line 147 of file TGDockableFrame.h.

References fFrame.

Referenced by TRootCanvas::AdjustSize(), TGuiBldDragManager::HandleButtonPress(), SavePrimitive(), TRootCanvas::ShowEditor(), and TRootCanvas::ShowToolBar().

Bool_t TGDockableFrame::IsHidden (  )  const [inline]

Definition at line 148 of file TGDockableFrame.h.

References fHidden.

Referenced by SavePrimitive().

Bool_t TGDockableFrame::IsFixedSize (  )  const [inline]

Definition at line 150 of file TGDockableFrame.h.

References fFixedSize.

void TGDockableFrame::SetFixedSize ( Bool_t  fixed  )  [inline]

Definition at line 151 of file TGDockableFrame.h.

References fFixedSize.

Referenced by SplitGLView::SplitGLView().

TGCompositeFrame* TGDockableFrame::GetContainer (  )  const [inline]

Definition at line 153 of file TGDockableFrame.h.

References fContainer.

Referenced by SavePrimitive().

TGUndockedFrame* TGDockableFrame::GetUndocked (  )  const [inline]

Definition at line 154 of file TGDockableFrame.h.

References fFrame.

Referenced by TGuiBldDragManager::HandleButtonPress().

void TGDockableFrame::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TGCompositeFrame.

Definition at line 453 of file TGDockableFrame.cxx.

References EnableHide(), EnableUndock(), fDockName, TGFrameElement::fFrame, TGFrameElement::fLayout, TGWindow::fParent, TGWidget::fWidgetId, GetContainer(), TGCompositeFrame::GetList(), TGWindow::GetName(), TGFrame::GetOptions(), TGFrame::GetOptionString(), IsHidden(), IsUndocked(), kHorizontalFrame, out, TGFrame::SavePrimitive(), and TGLayoutHints::SavePrimitive().

TGDockableFrame& TGDockableFrame::operator= ( const TGDockableFrame  )  [private]

virtual void TGDockableFrame::AddFrame ( TGFrame f,
TGLayoutHints hints 
) [virtual]

Reimplemented from TGCompositeFrame.

virtual Bool_t TGDockableFrame::ProcessMessage ( Long_t  ,
Long_t  ,
Long_t   
) [virtual]

Reimplemented from TGCompositeFrame.

virtual void TGDockableFrame::Docked (  )  [inline, virtual]

Definition at line 131 of file TGDockableFrame.h.

References TQObject::Emit().

virtual void TGDockableFrame::Undocked (  )  [inline, virtual]

Definition at line 132 of file TGDockableFrame.h.

References TQObject::Emit().

void TGDockableFrame::UndockContainer (  ) 

void TGDockableFrame::DockContainer ( Int_t  del = kTRUE  ) 

void TGDockableFrame::HideContainer (  ) 

void TGDockableFrame::ShowContainer (  ) 

void TGDockableFrame::EnableUndock ( Bool_t  onoff  ) 

Bool_t TGDockableFrame::EnableUndock (  )  const [inline]

Definition at line 141 of file TGDockableFrame.h.

References fEnableUndock.

void TGDockableFrame::EnableHide ( Bool_t  onoff  ) 

Bool_t TGDockableFrame::EnableHide (  )  const [inline]

Definition at line 143 of file TGDockableFrame.h.

References fEnableHide.

void TGDockableFrame::SetWindowName ( const char *  name  )  [virtual]

Reimplemented from TGWindow.

Bool_t TGDockableFrame::IsUndocked (  )  const [inline]

Definition at line 147 of file TGDockableFrame.h.

References fFrame.

Bool_t TGDockableFrame::IsHidden (  )  const [inline]

Definition at line 148 of file TGDockableFrame.h.

References fHidden.

Bool_t TGDockableFrame::IsFixedSize (  )  const [inline]

Definition at line 150 of file TGDockableFrame.h.

References fFixedSize.

void TGDockableFrame::SetFixedSize ( Bool_t  fixed  )  [inline]

Definition at line 151 of file TGDockableFrame.h.

References fFixedSize.

TGCompositeFrame* TGDockableFrame::GetContainer (  )  const [inline]

Definition at line 153 of file TGDockableFrame.h.

References fContainer.

TGUndockedFrame* TGDockableFrame::GetUndocked (  )  const [inline]

Definition at line 154 of file TGDockableFrame.h.

References fFrame.

virtual void TGDockableFrame::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TGCompositeFrame.


Friends And Related Function Documentation

TGUndockedFrame [friend]

Definition at line 102 of file TGDockableFrame.h.

Referenced by UndockContainer().


Member Data Documentation

Bool_t TGDockableFrame::fHidden [protected]

Definition at line 109 of file TGDockableFrame.h.

Referenced by HideContainer(), IsHidden(), ProcessMessage(), ShowContainer(), and TGDockableFrame().

Bool_t TGDockableFrame::fEnableHide [protected]

Definition at line 110 of file TGDockableFrame.h.

Referenced by EnableHide(), HideContainer(), and TGDockableFrame().

Bool_t TGDockableFrame::fEnableUndock [protected]

Definition at line 111 of file TGDockableFrame.h.

Referenced by EnableUndock(), ShowContainer(), TGDockableFrame(), and UndockContainer().

Bool_t TGDockableFrame::fDeleted [protected]

Definition at line 112 of file TGDockableFrame.h.

Referenced by TGDockableFrame(), ~TGDockableFrame(), and TGUndockedFrame::~TGUndockedFrame().

Bool_t TGDockableFrame::fFixedSize [protected]

Definition at line 113 of file TGDockableFrame.h.

Referenced by IsFixedSize(), SetFixedSize(), TGDockableFrame(), and UndockContainer().

TString TGDockableFrame::fDockName [protected]

Definition at line 114 of file TGDockableFrame.h.

Referenced by SavePrimitive(), SetWindowName(), and UndockContainer().

TGCompositeFrame* TGDockableFrame::fContainer [protected]

Definition at line 115 of file TGDockableFrame.h.

Referenced by AddFrame(), DockContainer(), GetContainer(), HideContainer(), ShowContainer(), TGDockableFrame(), and UndockContainer().

TGCompositeFrame* TGDockableFrame::fButtons [protected]

Definition at line 116 of file TGDockableFrame.h.

Referenced by EnableHide(), EnableUndock(), HideContainer(), ShowContainer(), and TGDockableFrame().

TGDockButton* TGDockableFrame::fDockButton [protected]

Definition at line 117 of file TGDockableFrame.h.

Referenced by DockContainer(), EnableUndock(), HideContainer(), ShowContainer(), and TGDockableFrame().

TGDockHideButton* TGDockableFrame::fHideButton [protected]

Definition at line 118 of file TGDockableFrame.h.

Referenced by EnableHide(), HideContainer(), ShowContainer(), and TGDockableFrame().

TGUndockedFrame* TGDockableFrame::fFrame [protected]

Definition at line 119 of file TGDockableFrame.h.

Referenced by DockContainer(), GetUndocked(), IsUndocked(), SetWindowName(), TGDockableFrame(), UndockContainer(), and ~TGDockableFrame().

TGLayoutHints* TGDockableFrame::fCl [protected]

Definition at line 120 of file TGDockableFrame.h.

Referenced by DockContainer(), TGDockableFrame(), and UndockContainer().

TGLayoutHints * TGDockableFrame::fHints [protected]

Definition at line 120 of file TGDockableFrame.h.

Referenced by AddFrame().

TGLayoutHints* TGDockableFrame::fLb [protected]

Definition at line 121 of file TGDockableFrame.h.

Referenced by TGDockableFrame().

TGLayoutHints * TGDockableFrame::fLc [protected]

Definition at line 121 of file TGDockableFrame.h.

Referenced by TGDockableFrame().

TGCompositeFrame* TGDockableFrame::fContainer [protected]

Definition at line 115 of file TGDockableFrame.h.

TGCompositeFrame* TGDockableFrame::fButtons [protected]

Definition at line 116 of file TGDockableFrame.h.

TGDockButton* TGDockableFrame::fDockButton [protected]

Definition at line 117 of file TGDockableFrame.h.

TGDockHideButton* TGDockableFrame::fHideButton [protected]

Definition at line 118 of file TGDockableFrame.h.

TGUndockedFrame* TGDockableFrame::fFrame [protected]

Definition at line 119 of file TGDockableFrame.h.

TGLayoutHints* TGDockableFrame::fCl [protected]

Definition at line 120 of file TGDockableFrame.h.

TGLayoutHints* TGDockableFrame::fLb [protected]

Definition at line 121 of file TGDockableFrame.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:38:22 2011 for ROOT_528-00b_version by  doxygen 1.5.1