#include <Nux/TableItem.h>
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 Color & | GetItemTextColor () |
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) |
TableCtrl * | GetTable () |
Data Fields |
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 |
Constructor & Destructor Documentation
virtual nux::TableItem::~TableItem |
( |
| ) |
[virtual] |
Member Function Documentation
virtual void nux::TableItem::AddNextSibling |
( |
NodeItem * |
sibling | ) |
[virtual] |
virtual void nux::TableItem::AddPrevSibling |
( |
NodeItem * |
sibling | ) |
[virtual] |
bool nux::TableItem::AlwaysShowOpeningButton |
( |
| ) |
[inline] |
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.
virtual void nux::TableItem::ComputePropertyLayout |
( |
int |
x, |
|
|
int |
y, |
|
|
RowHeader * |
row, |
|
|
const std::vector< ColumnHeader > & |
column_vector |
|
) |
| [inline, virtual] |
Reimplemented in 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::SectionProperty, and nux::TreeItem.
Reimplemented in nux::FolderTreeItem, 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::SectionProperty, and nux::TreeItem.
Color nux::TableItem::GetBackgroundColor |
( |
| ) |
const [inline] |
virtual int nux::TableItem::GetItemBestHeight |
( |
| ) |
[virtual] |
Reimplemented in 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::Vector3ValuatorPropertyItem, nux::SectionProperty, and nux::TreeItem.
const Color& nux::TableItem::GetItemTextColor |
( |
| ) |
[inline] |
TableCtrl* nux::TableItem::GetTable |
( |
| ) |
[inline] |
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] |
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 long nux::TableItem::ProcessPropertyEvent |
( |
IEvent & |
ievent, |
|
|
long |
TraverseInfo, |
|
|
long |
ProcessEventInfo |
|
) |
| [virtual] |
Reimplemented in 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, and nux::TreeItem.
virtual void nux::TableItem::PushChildBack |
( |
NodeItem * |
child | ) |
[virtual] |
virtual void nux::TableItem::PushChildFront |
( |
NodeItem * |
child | ) |
[virtual] |
void nux::TableItem::RequestPropertyRedraw |
( |
| ) |
[inline] |
void nux::TableItem::SetAlwaysShowOpeningButton |
( |
bool |
b | ) |
[inline] |
virtual void nux::TableItem::SetBackgroundColor |
( |
Color |
c | ) |
[inline, virtual] |
void nux::TableItem::setDirtyItem |
( |
bool |
b | ) |
[inline] |
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] |
Friends And Related Function Documentation
Field Documentation
Geometry of the header of the row. Located at the left of the row.
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().
Array of geometries of the column inside the row.
The documentation for this class was generated from the following file: