nux-1.14.0
nux::TableItem Class Reference
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

List of all members.

Public Member Functions

 TableItem (const TCHAR *name, NodeParameterType type=NODE_TYPE_STATICTEXT)
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 (Color const &color)
Color const & GetItemTextColor () const
virtual void SetBackgroundColor (Color const &c)
Color const & 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)
 Unlik a node from the Tree. The node becomes independent (no parent) but it keeps it own children.
TableCtrlGetTable ()

Public Attributes

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
Color m_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

Detailed Description

Definition at line 70 of file TableItem.h.


Member Function Documentation

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

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

Definition at line 111 of file TableItem.h.

    {
      return 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.

Definition at line 126 of file TableItem.h.

    {
      m_isOpen = false;
    }
void nux::TableItem::Hide ( ) [inline]

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

Definition at line 140 of file TableItem.h.

References m_bParentOpen.

    {
      m_bParentOpen = false;
    }
bool nux::TableItem::isOpen ( ) const [inline]
Returns:
True if the item is open.

Definition at line 133 of file TableItem.h.

Referenced by nux::TableCtrl::PaintDecoration(), and nux::TableCtrl::ResetTable().

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

Definition at line 154 of file TableItem.h.

References m_bParentOpen.

    {
      return 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.

Definition at line 119 of file TableItem.h.

Referenced by nux::TableCtrl::TableCtrl().

    {
      m_isOpen = true;
    }
void nux::TableItem::SetAlwaysShowOpeningButton ( bool  b) [inline]

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

Definition at line 104 of file TableItem.h.

    {
      m_AlwaysShowOpeningButton = b;
    }
void nux::TableItem::Show ( ) [inline]

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

Definition at line 147 of file TableItem.h.

References m_bParentOpen.

Referenced by nux::TableCtrl::ResetTable(), nux::TableCtrl::setTableItems(), and nux::TableCtrl::TableCtrl().

    {
      m_bParentOpen = true;
    }

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends