Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_TableGeometry_Base Class Reference

A helper class for CP_Tables that provides geometry information about table rows and columnns.

Inheritance diagram for CP_TableGeometry_Base:

CP_Object CP_NoCopy CP_TableGeometry_Mixed CP_TableGeometry_Mono CP_TableGeometry_Multi List of all members.

Public Member Functions

void SetID (FourCharCode inIdentifier)
FourCharCode GetID ()
void RegisterSignal (const CP_SignalHolder &inSignal)
CP_DataValueSignalFindSignal (const CP_String &inSignalName)
UInt32 GetNumberSignals ()
CP_String GetNthSignalName (UInt32 inSignalIndex)
void RegisterSlot (const CP_SlotHolder &inSlot)
CP_DataValueSlot FindSlot (const CP_String &inSlotName)
UInt32 GetNumberSlots ()
CP_String GetNthSlotName (UInt32 inSlotIndex)
template<class R, class P1, class P2>
CP_CommandHandlerSignalConnect (CPLAT::CP_CommandNo cmd, void(R::*handler)(P1, P2), SInt32 mode)
template<class R, class P1, class P2>
void Connect (CP_Object *control, const CPLAT::CP_String &signalName, void(R::*handler)(P1, P2))
Constructor / Destructor
 CP_TableGeometry_Base (CP_TableView *inTableView)
 Constructor.
virtual ~CP_TableGeometry_Base () throw ()
 Destructor.
Columns
virtual SInt32 GetNumberColumns (SInt32 inRow)=0
virtual void SetNumberColumns (SInt32 inRow, SInt32 inNumberColumns)=0
virtual SInt32 GetColumnWidth (SInt32 inRow, SInt32 inColumn)=0
virtual void SetColumnWidth (SInt32 inRow, SInt32 inColumn, SInt32 inColumnWidth)=0
virtual CP_Rect GetColumnBounds (const CP_Rect &inRowBounds, SInt32 inRow, SInt32 inColumn)=0
virtual CP_Rect GetColumnBounds (SInt32 inRow, SInt32 inColumn)=0
Rows
virtual SInt32 GetNumberRows ()=0
virtual void SetNumberRows (SInt32 inNumberRows)=0
virtual SInt32 GetRowHeight (SInt32 inRow)=0
virtual void SetRowHeight (SInt32 inRow, SInt32 inRowHeight)=0
virtual CP_Point GetRowLocation (SInt32 inRow)=0
virtual void AddRow ()=0
Testers
virtual SInt32 GetRowHitBy (const CP_Point &inHitPoint)=0
virtual SInt32 GetColumnHitBy (const CP_Point &inHitPoint)=0

Static Public Member Functions

static void Connect (CP_Object *sender, const CP_String &signalName, CP_Object *receiver, const CP_String &slotName, const bool reciprocal=false)
static void Connect (CP_Object *sender, CP_Object *receiver, const bool reciprocal=false, const CP_String &signalName=kCP_Signal_ValueChanged, const CP_String &slotName=kCP_Slot_SetValue)

Protected Attributes

CP_TableViewfOwnerTableView
CP_DataValueSignal fRowHeightChangedSignal
CP_DataValueSignal fColumnWidthChangedSignal
CP_DataValueSignal fRowAddedSignal
CP_DataValueSignal fColumnAddedSignal
CP_Signals_ArrayfSignals
CP_Slots_ArrayfSlots
FourCharCode fObjectID

Static Protected Attributes

static FourCharCode fObjectIDCount = 0

Constructor & Destructor Documentation

CPLAT_Begin_Namespace_CPLAT CP_TableGeometry_Base::CP_TableGeometry_Base CP_TableView inTableView  ) 
 

Constructor.

CP_TableGeometry_Base::~CP_TableGeometry_Base  )  throw () [virtual]
 

Destructor.


Member Function Documentation

virtual SInt32 CP_TableGeometry_Base::GetNumberColumns SInt32  inRow  )  [pure virtual]
 

Implemented in CP_TableGeometry_Mixed, CP_TableGeometry_Mono, and CP_TableGeometry_Multi.

virtual void CP_TableGeometry_Base::SetNumberColumns SInt32  inRow,
SInt32  inNumberColumns
[pure virtual]
 

Implemented in CP_TableGeometry_Mixed, CP_TableGeometry_Mono, and CP_TableGeometry_Multi.

virtual SInt32 CP_TableGeometry_Base::GetColumnWidth SInt32  inRow,
SInt32  inColumn
[pure virtual]
 

Implemented in CP_TableGeometry_Mixed, CP_TableGeometry_Mono, and CP_TableGeometry_Multi.

virtual void CP_TableGeometry_Base::SetColumnWidth SInt32  inRow,
SInt32  inColumn,
SInt32  inColumnWidth
[pure virtual]
 

Implemented in CP_TableGeometry_Mixed, CP_TableGeometry_Mono, and CP_TableGeometry_Multi.

virtual CP_Rect CP_TableGeometry_Base::GetColumnBounds const CP_Rect inRowBounds,
SInt32  inRow,
SInt32  inColumn
[pure virtual]
 

Implemented in CP_TableGeometry_Mixed, CP_TableGeometry_Mono, and CP_TableGeometry_Multi.

virtual CP_Rect CP_TableGeometry_Base::GetColumnBounds SInt32  inRow,
SInt32  inColumn
[pure virtual]
 

Implemented in CP_TableGeometry_Mixed, CP_TableGeometry_Mono, and CP_TableGeometry_Multi.

CP_TableView* CP_TableGeometry_Base::GetOwnerTable  ) 
 

virtual SInt32 CP_TableGeometry_Base::GetNumberRows  )  [pure virtual]
 

Implemented in CP_TableGeometry_Mixed, CP_TableGeometry_Mono, and CP_TableGeometry_Multi.

virtual void CP_TableGeometry_Base::SetNumberRows SInt32  inNumberRows  )  [pure virtual]
 

Implemented in CP_TableGeometry_Mixed, CP_TableGeometry_Mono, and CP_TableGeometry_Multi.

virtual SInt32 CP_TableGeometry_Base::GetRowHeight SInt32  inRow  )  [pure virtual]
 

Implemented in CP_TableGeometry_Mixed, CP_TableGeometry_Mono, and CP_TableGeometry_Multi.

virtual void CP_TableGeometry_Base::SetRowHeight SInt32  inRow,
SInt32  inRowHeight
[pure virtual]
 

Implemented in CP_TableGeometry_Mixed, CP_TableGeometry_Mono, and CP_TableGeometry_Multi.

virtual CP_Point CP_TableGeometry_Base::GetRowLocation SInt32  inRow  )  [pure virtual]
 

Implemented in CP_TableGeometry_Mixed, CP_TableGeometry_Mono, and CP_TableGeometry_Multi.

virtual void CP_TableGeometry_Base::AddRow  )  [pure virtual]
 

Implemented in CP_TableGeometry_Mixed, CP_TableGeometry_Mono, and CP_TableGeometry_Multi.

virtual SInt32 CP_TableGeometry_Base::GetRowHitBy const CP_Point inHitPoint  )  [pure virtual]
 

Implemented in CP_TableGeometry_Mixed, CP_TableGeometry_Mono, and CP_TableGeometry_Multi.

virtual SInt32 CP_TableGeometry_Base::GetColumnHitBy const CP_Point inHitPoint  )  [pure virtual]
 

Implemented in CP_TableGeometry_Mixed, CP_TableGeometry_Mono, and CP_TableGeometry_Multi.

void CP_TableGeometry_Base::SendRowAddedSignal  )  [protected]
 

void CP_TableGeometry_Base::SendColumnAddedSignal  )  [protected]
 

void CP_TableGeometry_Base::SendRowHeightChangedSignal SInt32  inRow  )  [protected]
 

void CP_TableGeometry_Base::SendColumnWidthChangedSignal SInt32  inColumn  )  [protected]
 

void CP_Object::SetID FourCharCode  inIdentifier  )  [inherited]
 

Sets the identifier for this object. If a specific identifier is not set with this function, then a default id is used, which is simply a running count of the number of objects created.

Parameters:
inIdentifier The objects identifier.
Returns:
void

FourCharCode CP_Object::GetID  )  [inherited]
 

Returns the objects identifier.

Returns:
FourCharCode The identifier of this object.

void CP_Object::RegisterSignal const CP_SignalHolder inSignal  )  [inherited]
 

Registers the signal / signal name contained in the passed in inSignal object.

Parameters:
inSignal CP_SignalHolder that holds a signal and string identifier.
Returns:
void

CP_DataValueSignal * CP_Object::FindSignal const CP_String inSignalName  )  [inherited]
 

Finds the CP_DataValueSignal object that matches the passed in inSignalName.

Parameters:
inSignalName CP_String containing the identifier of the signal to return.
Returns:
CP_DataValueSignal * Returns a pointer to a CP_DataValueSignal object.

UInt32 CP_Object::GetNumberSignals  )  [inherited]
 

Returns the number of signals for this object.

Returns:
UInt32 The number of signals.

CP_String CP_Object::GetNthSignalName UInt32  inSignalIndex  )  [inherited]
 

Returns the signal name of the passed in signal index.

Parameters:
inSignalIndex Index of the name of the signal to return.
Returns:
CP_String The name of the nth signal being returned.

void CP_Object::RegisterSlot const CP_SlotHolder inSlot  )  [inherited]
 

Registers the slot / slot name contained in the passed in inSlot object.

Parameters:
inSlot CP_SignalHolder that holds a slot and string identifier.
Returns:
void

CP_DataValueSlot CP_Object::FindSlot const CP_String inSlotName  )  [inherited]
 

Finds the CP_Slot1 object that matches the passed in inSlotName.

Parameters:
inSlotName CP_String containing the identifier of the slot to return.
Returns:
CP_DataValueSlot Returns a pointer to a CP_DataValueSlot object.

UInt32 CP_Object::GetNumberSlots  )  [inherited]
 

Returns the number of slots for this object.

Returns:
UInt32 The number of slots.

CP_String CP_Object::GetNthSlotName UInt32  inSlotIndex  )  [inherited]
 

Returns the slot name of the passed in signal index.

Parameters:
inSlotIndex Index of the name of the slot to return.
Returns:
CP_String The name of the nth slot being returned.

template<class R, class P1, class P2>
CP_CommandHandlerSignal* CP_Object::Connect CPLAT::CP_CommandNo  cmd,
void(R::*)(P1, P2)  handler,
SInt32  mode
[inherited]
 

template<class R, class P1, class P2>
void CP_Object::Connect CP_Object control,
const CPLAT::CP_String &  signalName,
void(R::*)(P1, P2)  handler
[inherited]
 

void CP_Object::Connect CP_Object sender,
const CP_String signalName,
CP_Object receiver,
const CP_String slotName,
const bool  reciprocal = false
[static, inherited]
 

void CP_Object::Connect CP_Object sender,
CP_Object receiver,
const bool  reciprocal = false,
const CP_String signalName = kCP_Signal_ValueChanged,
const CP_String slotName = kCP_Slot_SetValue
[static, inherited]
 


Member Data Documentation

CP_TableView* CP_TableGeometry_Base::fOwnerTableView [protected]
 

CP_DataValueSignal CP_TableGeometry_Base::fRowHeightChangedSignal [protected]
 

CP_DataValueSignal CP_TableGeometry_Base::fColumnWidthChangedSignal [protected]
 

CP_DataValueSignal CP_TableGeometry_Base::fRowAddedSignal [protected]
 

CP_DataValueSignal CP_TableGeometry_Base::fColumnAddedSignal [protected]
 

CP_Signals_Array* CP_Object::fSignals [protected, inherited]
 

CP_Slots_Array* CP_Object::fSlots [protected, inherited]
 

List of registered signals for this object.

FourCharCode CP_Object::fObjectID [protected, inherited]
 

List of registered slots for this object.

CPLAT_Begin_Namespace_CPLAT FourCharCode CP_Object::fObjectIDCount = 0 [static, protected, inherited]
 

Object identifier.


The documentation for this class was generated from the following files:
Generated on Sat Sep 17 20:02:17 2005 for CPLAT by  doxygen 1.4.0