Clarify uiTableModelRowInserted API documentation.
* Require the new row to have been added to the model before calling uiTableModelRowInserted. * Require the row count to be updated before calling uiTableModelRowInserted. Notes ----- darwin: does not care about row counts internally. From the docs: > The numberOfRows in the table view is automatically increased > by the count of indexes. unix: does not state anything regarding order in the documentation. windows: does not state anything in the documentation but does keep track of its own row count internally. So in theory we do not have to require increasing the row count before calling uiTableModelRowInserted, but just by the very nature of the function name (past tense) we should.
This commit is contained in:
parent
34d1d0ac48
commit
3f42463bf4
12
ui.h
12
ui.h
|
@ -1324,11 +1324,13 @@ _UI_EXTERN uiTableModel *uiNewTableModel(uiTableModelHandler *mh);
|
||||||
// free table models currently associated with a uiTable.
|
// free table models currently associated with a uiTable.
|
||||||
_UI_EXTERN void uiFreeTableModel(uiTableModel *m);
|
_UI_EXTERN void uiFreeTableModel(uiTableModel *m);
|
||||||
|
|
||||||
// uiTableModelRowInserted() tells any uiTable associated with m
|
// uiTableModelRowInserted() tell all uiTables associated with
|
||||||
// that a new row has been added to m at index index. You call
|
// the uiTableModel m that a new row has been added to m at
|
||||||
// this function when the number of rows in your model has
|
// index newIndex.
|
||||||
// changed; after calling it, NumRows() should returm the new row
|
// You must insert the row data in your model before calling this
|
||||||
// count.
|
// function.
|
||||||
|
// NumRows() must represent the new row count before you call
|
||||||
|
// this function.
|
||||||
_UI_EXTERN void uiTableModelRowInserted(uiTableModel *m, int newIndex);
|
_UI_EXTERN void uiTableModelRowInserted(uiTableModel *m, int newIndex);
|
||||||
|
|
||||||
// uiTableModelRowChanged() tells any uiTable associated with m
|
// uiTableModelRowChanged() tells any uiTable associated with m
|
||||||
|
|
Loading…
Reference in New Issue