CMS 3D CMS Logo

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

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

Inheritance diagram for FWTabularWidget:

Public Member Functions

void buttonPressed (Int_t row, Int_t column, Event_t *event, Int_t relX, Int_t relY)
 
void buttonReleased (Int_t row, Int_t column, Event_t *event, Int_t relX, Int_t relY)
 
 ClassDef (FWTabularWidget, 0)
 
void dataChanged ()
 
void disableGrowInWidth ()
 
void DoRedraw ()
 
 FWTabularWidget (FWTableManagerBase *iManager, const TGWindow *p=0, GContext_t context=getDefaultGC()())
 
TGDimension GetDefaultSize () const
 
virtual Bool_t HandleButton (Event_t *event)
 
UInt_t horizontalOffset () const
 
void needToRedraw ()
 
void setBackgroundAreaContext (GContext_t iContext)
 
void setHorizontalOffset (UInt_t)
 
void setLineContext (GContext_t iContext)
 
void setVerticalOffset (UInt_t)
 
void setWidthOfTextInColumns (const std::vector< unsigned int > &)
 
UInt_t verticalOffset () const
 
const std::vector< unsigned int > & widthOfTextInColumns () const
 
virtual ~FWTabularWidget ()
 

Static Public Member Functions

static const TGGC & getDefaultGC ()
 

Static Public Attributes

static const int kSeperatorWidth = 1
 
static const int kTextBuffer = 2
 

Private Member Functions

void translateToRowColumn (Int_t iX, Int_t iY, Int_t &oRow, Int_t &oCol, Int_t &oRelX, Int_t &oRelY) const
 

Private Attributes

GContext_t m_backgroundGC
 
bool m_growInWidth
 
unsigned int m_hOffset
 
GContext_t m_normGC
 
FWTableManagerBasem_table
 
int m_tableWidth
 
int m_textHeight
 
unsigned int m_vOffset
 
std::vector< unsigned int > m_widthOfTextInColumns
 
std::vector< unsigned int > m_widthOfTextInColumnsMax
 

Detailed Description

Description: Widget that draws part of a table [Implementation detail of FWTableWidget]

Usage: This class is used internally by FWTableWidget.

Definition at line 30 of file FWTabularWidget.h.

Constructor & Destructor Documentation

FWTabularWidget::FWTabularWidget ( FWTableManagerBase iManager,
const TGWindow *  p = 0,
GContext_t  context = getDefaultGC()() 
)

Definition at line 39 of file FWTabularWidget.cc.

FWTabularWidget::~FWTabularWidget ( )
virtual

Definition at line 70 of file FWTabularWidget.cc.

Member Function Documentation

void FWTabularWidget::buttonPressed ( Int_t  row,
Int_t  column,
Event_t *  event,
Int_t  relX,
Int_t  relY 
)
void FWTabularWidget::buttonReleased ( Int_t  row,
Int_t  column,
Event_t *  event,
Int_t  relX,
Int_t  relY 
)

Definition at line 233 of file FWTabularWidget.cc.

FWTabularWidget::ClassDef ( FWTabularWidget  ,
 
)
void FWTabularWidget::dataChanged ( void  )

Definition at line 91 of file FWTabularWidget.cc.

void FWTabularWidget::disableGrowInWidth ( )
inline

Definition at line 70 of file FWTabularWidget.h.

References m_growInWidth.

70 { m_growInWidth = false; }
void FWTabularWidget::DoRedraw ( )

Definition at line 246 of file FWTabularWidget.cc.

const TGGC & FWTabularWidget::getDefaultGC ( )
static

Definition at line 354 of file FWTabularWidget.cc.

TGDimension FWTabularWidget::GetDefaultSize ( ) const

Definition at line 333 of file FWTabularWidget.cc.

Bool_t FWTabularWidget::HandleButton ( Event_t *  event)
virtual

Definition at line 151 of file FWTabularWidget.cc.

UInt_t FWTabularWidget::horizontalOffset ( ) const
inline

Definition at line 45 of file FWTabularWidget.h.

References m_hOffset.

45 { return m_hOffset;}
unsigned int m_hOffset
void FWTabularWidget::needToRedraw ( )

Definition at line 98 of file FWTabularWidget.cc.

void FWTabularWidget::setBackgroundAreaContext ( GContext_t  iContext)

Definition at line 324 of file FWTabularWidget.cc.

void FWTabularWidget::setHorizontalOffset ( UInt_t  iH)

Definition at line 142 of file FWTabularWidget.cc.

void FWTabularWidget::setLineContext ( GContext_t  iContext)

Definition at line 319 of file FWTabularWidget.cc.

void FWTabularWidget::setVerticalOffset ( UInt_t  iV)

Definition at line 134 of file FWTabularWidget.cc.

void FWTabularWidget::setWidthOfTextInColumns ( const std::vector< unsigned int > &  iNew)

Definition at line 105 of file FWTabularWidget.cc.

void FWTabularWidget::translateToRowColumn ( Int_t  iX,
Int_t  iY,
Int_t &  oRow,
Int_t &  oCol,
Int_t &  oRelX,
Int_t &  oRelY 
) const
private

Definition at line 183 of file FWTabularWidget.cc.

UInt_t FWTabularWidget::verticalOffset ( ) const
inline

Definition at line 44 of file FWTabularWidget.h.

References m_vOffset.

44 {return m_vOffset;}
unsigned int m_vOffset
const std::vector<unsigned int>& FWTabularWidget::widthOfTextInColumns ( ) const
inline

Definition at line 43 of file FWTabularWidget.h.

References m_widthOfTextInColumns.

43 { return m_widthOfTextInColumns;}
std::vector< unsigned int > m_widthOfTextInColumns

Member Data Documentation

const int FWTabularWidget::kSeperatorWidth = 1
static

Definition at line 37 of file FWTabularWidget.h.

const int FWTabularWidget::kTextBuffer = 2
static
GContext_t FWTabularWidget::m_backgroundGC
private

Definition at line 91 of file FWTabularWidget.h.

bool FWTabularWidget::m_growInWidth
private

Definition at line 93 of file FWTabularWidget.h.

Referenced by disableGrowInWidth().

unsigned int FWTabularWidget::m_hOffset
private

Definition at line 88 of file FWTabularWidget.h.

Referenced by horizontalOffset().

GContext_t FWTabularWidget::m_normGC
private

Definition at line 90 of file FWTabularWidget.h.

FWTableManagerBase* FWTabularWidget::m_table
private

Definition at line 81 of file FWTabularWidget.h.

int FWTabularWidget::m_tableWidth
private

Definition at line 85 of file FWTabularWidget.h.

int FWTabularWidget::m_textHeight
private

Definition at line 84 of file FWTabularWidget.h.

unsigned int FWTabularWidget::m_vOffset
private

Definition at line 87 of file FWTabularWidget.h.

Referenced by verticalOffset().

std::vector<unsigned int> FWTabularWidget::m_widthOfTextInColumns
private

Definition at line 82 of file FWTabularWidget.h.

Referenced by widthOfTextInColumns().

std::vector<unsigned int> FWTabularWidget::m_widthOfTextInColumnsMax
private

Definition at line 83 of file FWTabularWidget.h.