2018-06-23 22:35:42 -05:00
|
|
|
// 23 june 2018
|
|
|
|
#include "../ui.h"
|
|
|
|
#include "uipriv.h"
|
|
|
|
#include "table.h"
|
|
|
|
|
|
|
|
int uiprivTableModelNumColumns(uiTableModel *m)
|
|
|
|
{
|
|
|
|
uiTableModelHandler *mh;
|
|
|
|
|
|
|
|
mh = uiprivTableModelHandler(m);
|
|
|
|
return (*(mh->NumColumns))(mh, m);
|
|
|
|
}
|
|
|
|
|
|
|
|
uiTableValueType uiprivTableModelColumnType(uiTableModel *m, int column)
|
|
|
|
{
|
|
|
|
uiTableModelHandler *mh;
|
|
|
|
|
|
|
|
mh = uiprivTableModelHandler(m);
|
|
|
|
return (*(mh->ColumnType))(mh, m, column);
|
|
|
|
}
|
|
|
|
|
|
|
|
int uiprivTableModelNumRows(uiTableModel *m)
|
|
|
|
{
|
|
|
|
uiTableModelHandler *mh;
|
|
|
|
|
|
|
|
mh = uiprivTableModelHandler(m);
|
|
|
|
return (*(mh->NumRows))(mh, m);
|
|
|
|
}
|
|
|
|
|
|
|
|
uiTableValue *uiprivTableModelCellValue(uiTableModel *m, int row, int column)
|
|
|
|
{
|
|
|
|
uiTableModelHandler *mh;
|
|
|
|
|
|
|
|
mh = uiprivTableModelHandler(m);
|
|
|
|
return (*(mh->CellValue))(mh, m, row, column);
|
|
|
|
}
|
|
|
|
|
|
|
|
void uiprivTableModelSetCellValue(uiTableModel *m, int row, int column, const uiTableValue *value)
|
|
|
|
{
|
|
|
|
uiTableModelHandler *mh;
|
|
|
|
|
|
|
|
mh = uiprivTableModelHandler(m);
|
|
|
|
(*(mh->SetCellValue))(mh, m, row, column, value);
|
|
|
|
}
|
2018-06-23 23:45:54 -05:00
|
|
|
|
|
|
|
const uiTableTextColumnOptionalParams uiprivDefaultTextColumnOptionalParams = {
|
|
|
|
.ColorModelColumn = -1,
|
|
|
|
};
|