CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
FWTableWidget Class Reference

#include <Fireworks/TableWidget/interface/FWTableWidget.h>

Inheritance diagram for FWTableWidget:

Public Member Functions

FWTabularWidgetbody ()
 
void buttonPressedInRowHeader (Int_t row, Int_t column, Event_t *event, Int_t relX, Int_t relY)
 
void buttonReleasedInBody (Int_t row, Int_t column, Event_t *event, Int_t, Int_t)
 
void buttonReleasedInHeader (Int_t row, Int_t column, Event_t *event, Int_t, Int_t)
 
void buttonReleasedInRowHeader (Int_t row, Int_t column, Event_t *event, Int_t relX, Int_t relY)
 
void cellClicked (Int_t iRow, Int_t iColumn, Int_t iButton, Int_t iKeyMod, Int_t iGlobalX, Int_t iGlobalY)
 
void childrenEvent (Event_t *)
 
 ClassDef (FWTableWidget, 0)
 
void Clicked ()
 
void columnClicked (Int_t iColumn, Int_t iButton, Int_t iKeyMod)
 
void dataChanged ()
 
bool descendingSort () const
 
void disableGrowInWidth ()
 
void forceLayout ()
 
 FWTableWidget (FWTableManagerBase *iManager, const TGWindow *p=0)
 
TGDimension GetDefaultSize () const
 
virtual void MoveResize (Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
 
virtual Bool_t ProcessMessage (Long_t msg, Long_t parm1, Long_t parm2)
 
virtual void Resize (UInt_t w, UInt_t h)
 
void rowClicked (Int_t iRow, Int_t iButton, Int_t iKeyMod, Int_t iGlobalX, Int_t iGlobalY)
 
void SetBackgroundColor (Pixel_t)
 
void SetHeaderBackgroundColor (Pixel_t)
 
void SetHeaderForegroundColor (Pixel_t)
 
void SetLineSeparatorColor (Pixel_t)
 
void sort (UInt_t iColumn, bool iDescendingSort)
 
int sortedColumn () const
 
virtual ~FWTableWidget ()
 

Protected Member Functions

virtual void DoRedraw ()
 

Private Member Functions

bool handleResize (UInt_t w, UInt_t h)
 

Private Attributes

FWTabularWidgetm_body
 
FWTableManagerBasem_bodyTable
 
bool m_descendingSort
 
bool m_forceLayout
 
FWTabularWidgetm_header
 
TGGC * m_headerBackground
 
TGGC * m_headerForeground
 
FWTableManagerBasem_headerTable
 
TGHScrollBar * m_hSlider
 
TGGC * m_lineSeparator
 
FWTabularWidgetm_rowHeader
 
FWTableManagerBasem_rowHeaderTable
 
bool m_showingHSlider
 
bool m_showingVSlider
 
int m_sortedColumn
 
TGVScrollBar * m_vSlider
 

Detailed Description

Description: ROOT widget for representing data in a tabular form where the data is accessed via a FWTableManagerBase

Usage: This widget creates a table made up of cells where the representation of the cells is controlled by the FWTableManagerBase instance passed to the FWTableWidget's constructor. If the data for the FWTableManagerBase changes, the view is automatically updated. See the documentation for FWTableManagerBase for further details.

Definition at line 35 of file FWTableWidget.h.

Constructor & Destructor Documentation

FWTableWidget::FWTableWidget ( FWTableManagerBase iManager,
const TGWindow *  p = 0 
)

Definition at line 40 of file FWTableWidget.cc.

FWTableWidget::~FWTableWidget ( )
virtual

Definition at line 118 of file FWTableWidget.cc.

Member Function Documentation

FWTabularWidget* FWTableWidget::body ( )
inline

Definition at line 92 of file FWTableWidget.h.

References m_body.

92 { return m_body; }
FWTabularWidget * m_body
void FWTableWidget::buttonPressedInRowHeader ( Int_t  row,
Int_t  column,
Event_t *  event,
Int_t  relX,
Int_t  relY 
)

Definition at line 484 of file FWTableWidget.cc.

void FWTableWidget::buttonReleasedInBody ( Int_t  row,
Int_t  column,
Event_t *  event,
Int_t  iRelX,
Int_t  iRelY 
)

Definition at line 354 of file FWTableWidget.cc.

void FWTableWidget::buttonReleasedInHeader ( Int_t  row,
Int_t  column,
Event_t *  event,
Int_t  ,
Int_t   
)

Definition at line 338 of file FWTableWidget.cc.

void FWTableWidget::buttonReleasedInRowHeader ( Int_t  row,
Int_t  column,
Event_t *  event,
Int_t  relX,
Int_t  relY 
)

Definition at line 491 of file FWTableWidget.cc.

void FWTableWidget::cellClicked ( Int_t  iRow,
Int_t  iColumn,
Int_t  iButton,
Int_t  iKeyMod,
Int_t  iGlobalX,
Int_t  iGlobalY 
)

Definition at line 392 of file FWTableWidget.cc.

void FWTableWidget::childrenEvent ( Event_t *  )

Definition at line 407 of file FWTableWidget.cc.

FWTableWidget::ClassDef ( FWTableWidget  ,
 
)
void FWTableWidget::Clicked ( )

Definition at line 413 of file FWTableWidget.cc.

void FWTableWidget::columnClicked ( Int_t  iColumn,
Int_t  iButton,
Int_t  iKeyMod 
)

Definition at line 433 of file FWTableWidget.cc.

void FWTableWidget::dataChanged ( void  )

Definition at line 445 of file FWTableWidget.cc.

bool FWTableWidget::descendingSort ( ) const
inline

Definition at line 90 of file FWTableWidget.h.

References m_descendingSort.

90 { return m_descendingSort; }
void FWTableWidget::disableGrowInWidth ( )

Definition at line 519 of file FWTableWidget.cc.

void FWTableWidget::DoRedraw ( )
protectedvirtual

Definition at line 527 of file FWTableWidget.cc.

void FWTableWidget::forceLayout ( )
inline

Definition at line 83 of file FWTableWidget.h.

References m_forceLayout.

83 { m_forceLayout = true; }
TGDimension FWTableWidget::GetDefaultSize ( ) const

Definition at line 502 of file FWTableWidget.cc.

bool FWTableWidget::handleResize ( UInt_t  w,
UInt_t  h 
)
private

Definition at line 227 of file FWTableWidget.cc.

void FWTableWidget::MoveResize ( Int_t  x,
Int_t  y,
UInt_t  w = 0,
UInt_t  h = 0 
)
virtual

Definition at line 292 of file FWTableWidget.cc.

Bool_t FWTableWidget::ProcessMessage ( Long_t  msg,
Long_t  parm1,
Long_t  parm2 
)
virtual

Definition at line 302 of file FWTableWidget.cc.

void FWTableWidget::Resize ( UInt_t  w,
UInt_t  h 
)
virtual

Definition at line 220 of file FWTableWidget.cc.

void FWTableWidget::rowClicked ( Int_t  iRow,
Int_t  iButton,
Int_t  iKeyMod,
Int_t  iGlobalX,
Int_t  iGlobalY 
)

This signal is emitted if the mouse button is 'clicked' while the cursor was over a row. Arguments: iRow: the unsorted row number (natural ordering) of the row clicked iButton: the ROOT button value for the click event (e.g. says which button used) iKeyMod: the ROOT key modifier value for the click event (e.g. says if a keyboard key was being held) iGlobalX: the X coordinate of the click in global coordinates iGlobalY: the Y coordinate of the click in global coordinates

Definition at line 419 of file FWTableWidget.cc.

void FWTableWidget::SetBackgroundColor ( Pixel_t  iColor)

Definition at line 163 of file FWTableWidget.cc.

void FWTableWidget::SetHeaderBackgroundColor ( Pixel_t  iColor)

Definition at line 180 of file FWTableWidget.cc.

void FWTableWidget::SetHeaderForegroundColor ( Pixel_t  iColor)

Definition at line 192 of file FWTableWidget.cc.

void FWTableWidget::SetLineSeparatorColor ( Pixel_t  iColor)

Definition at line 205 of file FWTableWidget.cc.

void FWTableWidget::sort ( UInt_t  iColumn,
bool  iDescendingSort 
)

Sorts the rows of data in the table based on values in column iColumn. If iDescendingSort is 'true' then the rows are sorted in descending order of the values.

Definition at line 149 of file FWTableWidget.cc.

int FWTableWidget::sortedColumn ( ) const
inline

Definition at line 89 of file FWTableWidget.h.

References m_sortedColumn.

89 { return m_sortedColumn; }

Member Data Documentation

FWTabularWidget* FWTableWidget::m_body
private

Definition at line 110 of file FWTableWidget.h.

Referenced by body().

FWTableManagerBase* FWTableWidget::m_bodyTable
private

Definition at line 106 of file FWTableWidget.h.

bool FWTableWidget::m_descendingSort
private

Definition at line 118 of file FWTableWidget.h.

Referenced by descendingSort().

bool FWTableWidget::m_forceLayout
private

Definition at line 119 of file FWTableWidget.h.

Referenced by forceLayout().

FWTabularWidget* FWTableWidget::m_header
private

Definition at line 109 of file FWTableWidget.h.

TGGC* FWTableWidget::m_headerBackground
private

Definition at line 121 of file FWTableWidget.h.

TGGC* FWTableWidget::m_headerForeground
private

Definition at line 122 of file FWTableWidget.h.

FWTableManagerBase* FWTableWidget::m_headerTable
private

Definition at line 107 of file FWTableWidget.h.

TGHScrollBar* FWTableWidget::m_hSlider
private

Definition at line 113 of file FWTableWidget.h.

TGGC* FWTableWidget::m_lineSeparator
private

Definition at line 123 of file FWTableWidget.h.

FWTabularWidget* FWTableWidget::m_rowHeader
private

Definition at line 111 of file FWTableWidget.h.

FWTableManagerBase* FWTableWidget::m_rowHeaderTable
private

Definition at line 108 of file FWTableWidget.h.

bool FWTableWidget::m_showingHSlider
private

Definition at line 115 of file FWTableWidget.h.

bool FWTableWidget::m_showingVSlider
private

Definition at line 114 of file FWTableWidget.h.

int FWTableWidget::m_sortedColumn
private

Definition at line 117 of file FWTableWidget.h.

Referenced by sortedColumn().

TGVScrollBar* FWTableWidget::m_vSlider
private

Definition at line 112 of file FWTableWidget.h.