nux-1.14.0
|
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. | |
TableCtrl * | GetTable () |
Public Attributes | |
sigc::signal< void > | sigCellFocus |
sigc::signal< void > | sigRowFocus |
Protected Attributes | |
TableCtrl * | m_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< Geometry > | m_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 |
Definition at line 70 of file TableItem.h.
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] |
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] |
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; }