TGTableLayout Class Reference

#include <TGTableLayout.h>

Inheritance diagram for TGTableLayout:

TGLayoutManager TGLayoutManager TObject TObject TObject TObject List of all members.

Public Member Functions

 TGTableLayout (TGCompositeFrame *main, UInt_t nrows, UInt_t ncols, Bool_t homogeneous=kFALSE, Int_t sep=0, Int_t hints=0)
virtual ~TGTableLayout ()
virtual void Layout ()
virtual TGDimension GetDefaultSize () const
virtual void SavePrimitive (ostream &out, Option_t *="")
 TGTableLayout (TGCompositeFrame *main, UInt_t nrows, UInt_t ncols, Bool_t homogeneous=kFALSE, Int_t sep=0, Int_t hints=0)
virtual ~TGTableLayout ()
virtual void Layout ()
virtual TGDimension GetDefaultSize () const
virtual void SavePrimitive (ostream &out, Option_t *="")

Public Attributes

Int_t fSep
Int_t fHints
UInt_t fNrows
UInt_t fNcols

Protected Member Functions

void FindRowColSizes ()
void FindRowColSizesInit ()
void FindRowColSizesHomogeneous ()
void FindRowColSizesSinglyAttached ()
void FindRowColSizesMultiplyAttached ()
void SetRowColSizes ()
void SetRowColSizesInit ()
void CheckSanity ()
void FindRowColSizes ()
void FindRowColSizesInit ()
void FindRowColSizesHomogeneous ()
void FindRowColSizesSinglyAttached ()
void FindRowColSizesMultiplyAttached ()
void SetRowColSizes ()
void SetRowColSizesInit ()
void CheckSanity ()

Static Protected Member Functions

static void SetRowColResize (UInt_t real_size, UInt_t nthings, TableData_t *thing, Bool_t homogeneous)
static void SetRowColResize (UInt_t real_size, UInt_t nthings, TableData_t *thing, Bool_t homogeneous)

Protected Attributes

TableData_tfRow
TableData_tfCol
TGCompositeFramefMain
TListfList
Bool_t fHomogeneous
TableData_tfRow
TableData_tfCol
TGCompositeFramefMain
TListfList

Private Member Functions

 TGTableLayout (const TGTableLayout &)
TGTableLayoutoperator= (const TGTableLayout &)
 TGTableLayout (const TGTableLayout &)
TGTableLayoutoperator= (const TGTableLayout &)

Classes

struct  TableData_t

Detailed Description

Definition at line 87 of file TGTableLayout.h.


Constructor & Destructor Documentation

TGTableLayout::TGTableLayout ( const TGTableLayout  )  [private]

TGTableLayout::TGTableLayout ( TGCompositeFrame main,
UInt_t  nrows,
UInt_t  ncols,
Bool_t  homogeneous = kFALSE,
Int_t  sep = 0,
Int_t  hints = 0 
)

TGTableLayout::~TGTableLayout (  )  [virtual]

Definition at line 108 of file TGTableLayout.cxx.

References fCol, and fRow.

TGTableLayout::TGTableLayout ( const TGTableLayout  )  [private]

TGTableLayout::TGTableLayout ( TGCompositeFrame main,
UInt_t  nrows,
UInt_t  ncols,
Bool_t  homogeneous = kFALSE,
Int_t  sep = 0,
Int_t  hints = 0 
)

virtual TGTableLayout::~TGTableLayout (  )  [virtual]


Member Function Documentation

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

void TGTableLayout::FindRowColSizes (  )  [protected]

Definition at line 117 of file TGTableLayout.cxx.

References FindRowColSizesHomogeneous(), FindRowColSizesInit(), FindRowColSizesMultiplyAttached(), and FindRowColSizesSinglyAttached().

Referenced by Layout().

void TGTableLayout::FindRowColSizesInit (  )  [protected]

Definition at line 132 of file TGTableLayout.cxx.

References fCol, fNcols, fNrows, fRow, and i.

Referenced by FindRowColSizes().

void TGTableLayout::FindRowColSizesHomogeneous (  )  [protected]

Definition at line 182 of file TGTableLayout.cxx.

References fCol, fHomogeneous, fNcols, fNrows, fRow, TMath::Max(), and row.

Referenced by FindRowColSizes().

void TGTableLayout::FindRowColSizesSinglyAttached (  )  [protected]

Definition at line 149 of file TGTableLayout.cxx.

References TObject::Error(), fCol, TGTableLayout::TableData_t::fDefSize, fList, fRow, TGTableLayoutHints::GetAttachBottom(), TGTableLayoutHints::GetAttachLeft(), TGTableLayoutHints::GetAttachRight(), TGTableLayoutHints::GetAttachTop(), TGLayoutHints::GetPadBottom(), TGLayoutHints::GetPadLeft(), TGLayoutHints::GetPadRight(), TGLayoutHints::GetPadTop(), TMath::Max(), ptr, and row.

Referenced by FindRowColSizes().

void TGTableLayout::FindRowColSizesMultiplyAttached (  )  [protected]

Definition at line 204 of file TGTableLayout.cxx.

References TObject::Error(), extra, fCol, TGTableLayout::TableData_t::fDefSize, fList, fRow, TGTableLayoutHints::GetAttachBottom(), TGTableLayoutHints::GetAttachLeft(), TGTableLayoutHints::GetAttachRight(), TGTableLayoutHints::GetAttachTop(), TGLayoutHints::GetPadBottom(), TGLayoutHints::GetPadLeft(), TGLayoutHints::GetPadRight(), TGLayoutHints::GetPadTop(), height, ptr, row, top(), and width.

Referenced by FindRowColSizes().

void TGTableLayout::SetRowColSizes (  )  [protected]

Definition at line 342 of file TGTableLayout.cxx.

References fCol, fHomogeneous, fMain, fNcols, fNrows, fRow, fSep, TGFrame::GetBorderWidth(), TGFrame::GetHeight(), TGFrame::GetWidth(), SetRowColResize(), and SetRowColSizesInit().

Referenced by Layout().

void TGTableLayout::SetRowColSizesInit (  )  [protected]

Definition at line 357 of file TGTableLayout.cxx.

References TObject::Error(), fCol, TGTableLayout::TableData_t::fEmpty, TGTableLayout::TableData_t::fExpand, fList, fNcols, TGTableLayout::TableData_t::fNeedExpand, TGTableLayout::TableData_t::fNeedShrink, fNrows, fRow, TGTableLayout::TableData_t::fShrink, TGTableLayoutHints::GetAttachBottom(), TGTableLayoutHints::GetAttachLeft(), TGTableLayoutHints::GetAttachRight(), TGTableLayoutHints::GetAttachTop(), TGLayoutHints::GetLayoutHints(), kFALSE, kLHintsExpandX, kLHintsExpandY, kLHintsShrinkX, kLHintsShrinkY, kTRUE, ptr, TIter::Reset(), row, and top().

Referenced by SetRowColSizes().

void TGTableLayout::CheckSanity (  )  [protected]

Definition at line 489 of file TGTableLayout.cxx.

References TObject::Error(), fList, fNcols, fNrows, TGTableLayoutHints::GetAttachBottom(), TGTableLayoutHints::GetAttachLeft(), TGTableLayoutHints::GetAttachRight(), TGTableLayoutHints::GetAttachTop(), ptr, and top().

Referenced by Layout().

void TGTableLayout::SetRowColResize ( UInt_t  real_size,
UInt_t  nthings,
TableData_t thing,
Bool_t  homogeneous 
) [static, protected]

Definition at line 261 of file TGTableLayout.cxx.

References extra, TGTableLayout::TableData_t::fRealSize, TGTableLayout::TableData_t::fShrink, kFALSE, TMath::Max(), and size.

Referenced by SetRowColSizes().

void TGTableLayout::Layout (  )  [virtual]

Implements TGLayoutManager.

Definition at line 550 of file TGTableLayout.cxx.

References CheckSanity(), TObject::Error(), fCol, FindRowColSizes(), fList, fMain, fRow, fSep, TGTableLayoutHints::GetAttachBottom(), TGTableLayoutHints::GetAttachLeft(), TGTableLayoutHints::GetAttachRight(), TGTableLayoutHints::GetAttachTop(), TGFrame::GetBorderWidth(), TGLayoutHints::GetLayoutHints(), TGLayoutHints::GetPadBottom(), TGLayoutHints::GetPadLeft(), TGLayoutHints::GetPadRight(), TGLayoutHints::GetPadTop(), kLHintsBottom, kLHintsCenterX, kLHintsCenterY, kLHintsFillX, kLHintsFillY, kLHintsRight, ptr, row, SetRowColSizes(), size, and top().

TGDimension TGTableLayout::GetDefaultSize (  )  const [virtual]

Implements TGLayoutManager.

Definition at line 638 of file TGTableLayout.cxx.

References fCol, TGTableLayout::TableData_t::fDefSize, TGDimension::fHeight, fMain, fNcols, fNrows, fRow, fSep, TGDimension::fWidth, TGFrame::GetBorderWidth(), TGFrame::GetOptions(), TGFrame::GetSize(), if(), kFixedHeight, kFixedWidth, row, and size.

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

Reimplemented from TObject.

Definition at line 737 of file TGTableLayout.cxx.

References fHomogeneous, fMain, fNcols, fNrows, fSep, TGWindow::GetName(), and kTRUE.

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

void TGTableLayout::FindRowColSizes (  )  [protected]

void TGTableLayout::FindRowColSizesInit (  )  [protected]

void TGTableLayout::FindRowColSizesHomogeneous (  )  [protected]

void TGTableLayout::FindRowColSizesSinglyAttached (  )  [protected]

void TGTableLayout::FindRowColSizesMultiplyAttached (  )  [protected]

void TGTableLayout::SetRowColSizes (  )  [protected]

void TGTableLayout::SetRowColSizesInit (  )  [protected]

void TGTableLayout::CheckSanity (  )  [protected]

static void TGTableLayout::SetRowColResize ( UInt_t  real_size,
UInt_t  nthings,
TableData_t thing,
Bool_t  homogeneous 
) [static, protected]

virtual void TGTableLayout::Layout (  )  [virtual]

Implements TGLayoutManager.

virtual TGDimension TGTableLayout::GetDefaultSize (  )  const [virtual]

Implements TGLayoutManager.

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

Reimplemented from TObject.


Member Data Documentation

TableData_t* TGTableLayout::fRow [protected]

Definition at line 103 of file TGTableLayout.h.

Referenced by FindRowColSizesHomogeneous(), FindRowColSizesInit(), FindRowColSizesMultiplyAttached(), FindRowColSizesSinglyAttached(), GetDefaultSize(), Layout(), SetRowColSizes(), SetRowColSizesInit(), and ~TGTableLayout().

TableData_t* TGTableLayout::fCol [protected]

Definition at line 104 of file TGTableLayout.h.

Referenced by FindRowColSizesHomogeneous(), FindRowColSizesInit(), FindRowColSizesMultiplyAttached(), FindRowColSizesSinglyAttached(), GetDefaultSize(), Layout(), SetRowColSizes(), SetRowColSizesInit(), and ~TGTableLayout().

TGCompositeFrame* TGTableLayout::fMain [protected]

Definition at line 105 of file TGTableLayout.h.

Referenced by GetDefaultSize(), Layout(), SavePrimitive(), and SetRowColSizes().

TList* TGTableLayout::fList [protected]

Definition at line 106 of file TGTableLayout.h.

Referenced by CheckSanity(), FindRowColSizesMultiplyAttached(), FindRowColSizesSinglyAttached(), Layout(), and SetRowColSizesInit().

Bool_t TGTableLayout::fHomogeneous [protected]

Definition at line 107 of file TGTableLayout.h.

Referenced by FindRowColSizesHomogeneous(), SavePrimitive(), and SetRowColSizes().

Int_t TGTableLayout::fSep

Definition at line 125 of file TGTableLayout.h.

Referenced by GetDefaultSize(), Layout(), SavePrimitive(), and SetRowColSizes().

Int_t TGTableLayout::fHints

Definition at line 126 of file TGTableLayout.h.

UInt_t TGTableLayout::fNrows

Definition at line 127 of file TGTableLayout.h.

Referenced by CheckSanity(), FindRowColSizesHomogeneous(), FindRowColSizesInit(), GetDefaultSize(), SavePrimitive(), SetRowColSizes(), and SetRowColSizesInit().

UInt_t TGTableLayout::fNcols

Definition at line 128 of file TGTableLayout.h.

Referenced by CheckSanity(), FindRowColSizesHomogeneous(), FindRowColSizesInit(), GetDefaultSize(), SavePrimitive(), SetRowColSizes(), and SetRowColSizesInit().

TableData_t* TGTableLayout::fRow [protected]

Definition at line 103 of file TGTableLayout.h.

TableData_t* TGTableLayout::fCol [protected]

Definition at line 104 of file TGTableLayout.h.

TGCompositeFrame* TGTableLayout::fMain [protected]

Definition at line 105 of file TGTableLayout.h.

TList* TGTableLayout::fList [protected]

Definition at line 106 of file TGTableLayout.h.


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