28 #ifndef ROCKETCONTROLSELEMENTDATAGRIDROW_H
29 #define ROCKETCONTROLSELEMENTDATAGRIDROW_H
34 #include "../Core/Element.h"
40 class ElementDataGrid;
57 void SetChildIndex(
int child_index);
64 bool UpdateChildren();
67 int GetNumLoadedChildren();
83 int GetParentRelativeIndex();
85 int GetTableRelativeIndex();
92 virtual void OnDataSourceDestroy(
DataSource* data_source);
99 typedef std::queue< ElementDataGridRow* > RowQueue;
100 typedef std::vector< ElementDataGridRow* > RowList;
105 void ChildChanged(
int child_index);
108 void RefreshChildDependentCells();
112 void DirtyTableRelativeIndex();
114 int GetChildTableRelativeIndex(
int child_index);
119 void AddChildren(
int first_row_added = -1,
int num_rows_added = 1);
123 void RemoveChildren(
int first_row_removed = 0,
int num_rows_removed = -1);
125 void ChangeChildren(
int first_row_changed = 0,
int num_rows_changed = -1);
127 int GetNumDescendants();
133 void LoadChildren(
float time_slice);
135 void LoadChildren(
int first_row_to_load,
int num_rows_to_load,
Rocket::Core::Time time_slice);
139 void UpdateCellsAndChildren(RowQueue& dirty_rows);
156 int table_relative_index;
157 bool table_relative_index_dirty;
#define NULL
Definition: Types.h:33
Definition: DataQuery.h:48
Definition: Clipboard.h:33
Definition: ElementDataGridRow.h:48
Definition: ElementDataGrid.h:47
ROCKETCONTROLS_API void Initialise()
Registers the instancers for the custom controls.
Definition: DataSource.h:46
double Time
Definition: Types.h:52
Definition: DataSourceListener.h:46