nux-0.9.46

nux::TableItem Class Reference

#include <Nux/TableItem.h>

Inheritance diagram for nux::TableItem:
nux::NodeNetCom nux::NodeItem nux::SectionProperty nux::TreeItem nux::CheckBoxPropertyItem nux::ColorGradientPropertyItem nux::ColorPreviewPropertyItem nux::ComboBoxListPropertyItem nux::ComboBoxPropertyItem nux::DoubleValuatorPropertyItem nux::EditTextLinePropertyItem nux::FilePropertyItem nux::IntValuatorPropertyItem nux::Matrix3PreviewPropertyItem nux::Matrix4PreviewPropertyItem nux::RangeValueIntegerPropertyItem nux::RangeValuePropertyItem nux::RGBAPropertyItem nux::RGBPropertyItem nux::SpinBoxDoublePropertyItem nux::SpinBoxPropertyItem nux::SplineCurvePropertyItem nux::Vector3PropertyItem nux::Vector3ValuatorPropertyItem nux::Vector4PropertyItem nux::FolderTreeItem

Public Member Functions

 TableItem (const TCHAR *name, NodeParameterType type=NODE_TYPE_STATICTEXT)
virtual ~TableItem ()
virtual long ProcessPropertyEvent (IEvent &ievent, long TraverseInfo, long ProcessEventInfo)
virtual void DrawProperty (GraphicsEngine &GfxContext, TableCtrl *table, bool force_draw, Geometry geo, const BasePainter &Painter, RowHeader *row, const std::vector< ColumnHeader > &column_vector, Color ItemBackgroundColor=Color(0x0))
virtual void ComputePropertyLayout (int x, int y, RowHeader *row, const std::vector< ColumnHeader > &column_vector)
virtual int GetItemBestHeight ()
virtual void SetPropertyItemWidth ()
void SetItemTextColor (const Color &color)
void SetItemTextColor (const Color *color)
const ColorGetItemTextColor ()
virtual void SetBackgroundColor (Color c)
Color GetBackgroundColor () const
void SetAlwaysShowOpeningButton (bool b)
bool AlwaysShowOpeningButton ()
void Open ()
void Close ()
bool isOpen () const
void Hide ()
void Show ()
bool IsParentOpen () const
void setDirtyItem (bool b)
bool isDirtyItem () const
void RequestPropertyRedraw ()
virtual void PushChildFront (NodeItem *child)
virtual void PushChildBack (NodeItem *child)
virtual void AddNextSibling (NodeItem *sibling)
virtual void AddPrevSibling (NodeItem *sibling)
virtual void Unlink (void)
TableCtrlGetTable ()

Data Fields

sigc::signal< void > sigCellFocus
sigc::signal< void > sigRowFocus

Protected Attributes

TableCtrlm_Table
bool m_isOpen
bool m_bParentOpen
 This parameter is true if the item is not hidden by its hierarchy. That is a parent (direct or indirect parent) of this item is not closed.
int m_x
int m_y
int m_height
int m_width
int m_depth
bool m_bDirty
bool m_PropertyRedraw
Color m_ItemBackgroundColor
Colorm_PropertyTextColor
bool m_AlwaysShowOpeningButton
InputArea_row_header_area
 Geometry of the header of the row. Located at the left of the row.
std::vector< Geometrym_ItemGeometryVector
 Array of geometries of the column inside the row.
Geometry m_RowHeaderGeometry
Geometry m_FirstColumnUsableGeometry
Geometry m_TotalGeometry
bool m_bIsMouseInside
bool m_bIsFirstVisibleItem
bool m_bIsLastVisibleItem

Friends

class TableCtrl
class TreeControl
class ListControl

Constructor & Destructor Documentation

nux::TableItem::TableItem ( const TCHAR name,
NodeParameterType  type = NODE_TYPE_STATICTEXT 
)
virtual nux::TableItem::~TableItem ( ) [virtual]

Member Function Documentation

virtual void nux::TableItem::AddNextSibling ( NodeItem sibling) [virtual]

Reimplemented from nux::NodeItem.

virtual void nux::TableItem::AddPrevSibling ( NodeItem sibling) [virtual]

Reimplemented from nux::NodeItem.

bool nux::TableItem::AlwaysShowOpeningButton ( ) [inline]

Return true if we must always show an opening button at the left of this item.

References m_AlwaysShowOpeningButton.

void nux::TableItem::Close ( ) [inline]

Close the item. All children (direct and indirect) of this item will have their flag m_bParentOpen set to false.

References m_isOpen.

Color nux::TableItem::GetBackgroundColor ( ) const [inline]

References m_ItemBackgroundColor.

const Color& nux::TableItem::GetItemTextColor ( ) [inline]
TableCtrl* nux::TableItem::GetTable ( ) [inline]

References m_Table.

void nux::TableItem::Hide ( ) [inline]

A parent of this item is closed. Set the item flag m_bParentOpen to false.

References m_bParentOpen.

bool nux::TableItem::isDirtyItem ( ) const [inline]

References m_bDirty.

bool nux::TableItem::isOpen ( ) const [inline]
Returns:
True if the item is open.

References m_isOpen.

bool nux::TableItem::IsParentOpen ( ) const [inline]
Returns:
True if all parents (direct or indirect) of this item are open. False otherwise.

References m_bParentOpen.

void nux::TableItem::Open ( ) [inline]

Open the item. The direct children of this item will have their flag m_bParentOpen set to true. The other children flag depends on their direct parent.

References m_isOpen.

virtual void nux::TableItem::PushChildBack ( NodeItem child) [virtual]

Reimplemented from nux::NodeItem.

virtual void nux::TableItem::PushChildFront ( NodeItem child) [virtual]

Reimplemented from nux::NodeItem.

void nux::TableItem::RequestPropertyRedraw ( ) [inline]

References m_PropertyRedraw.

void nux::TableItem::SetAlwaysShowOpeningButton ( bool  b) [inline]

Set if this item always show an opening button even if it has no children

References m_AlwaysShowOpeningButton.

virtual void nux::TableItem::SetBackgroundColor ( Color  c) [inline, virtual]
void nux::TableItem::setDirtyItem ( bool  b) [inline]

References m_bDirty.

void nux::TableItem::SetItemTextColor ( const Color color) [inline]
void nux::TableItem::SetItemTextColor ( const Color color) [inline]
virtual void nux::TableItem::SetPropertyItemWidth ( ) [virtual]
void nux::TableItem::Show ( ) [inline]

All parents of this item are open. Set the item flag m_bParentOpen to true.

References m_bParentOpen.

virtual void nux::TableItem::Unlink ( void  ) [virtual]

Reimplemented from nux::NodeItem.


Friends And Related Function Documentation

friend class ListControl [friend]
friend class TableCtrl [friend]
friend class TreeControl [friend]

Field Documentation

Geometry of the header of the row. Located at the left of the row.

bool nux::TableItem::m_bDirty [protected]

Referenced by isDirtyItem(), and setDirtyItem().

This parameter is true if the item is not hidden by its hierarchy. That is a parent (direct or indirect parent) of this item is not closed.

Referenced by Hide(), IsParentOpen(), and Show().

int nux::TableItem::m_depth [protected]
int nux::TableItem::m_height [protected]
bool nux::TableItem::m_isOpen [protected]

Referenced by Close(), isOpen(), and Open().

Array of geometries of the column inside the row.

Referenced by GetTable().

int nux::TableItem::m_width [protected]
int nux::TableItem::m_x [protected]
int nux::TableItem::m_y [protected]
sigc::signal<void> nux::TableItem::sigCellFocus
sigc::signal<void> nux::TableItem::sigRowFocus

The documentation for this class was generated from the following file: