Functions | |
StatusInt | mdlListModel_setRowDestroyFunction (ListModel *pModel, ListRowDestroyFuncP destroyFunc, MdlDescP ownerMD) |
Sets the function to call for each ListRow during an mdlListModel_destroy or mdlListRow_destroy call. More... | |
int | mdlListColumn_getId (ListColumnCP pColumn) |
Returns the Id of a specified ListColumn. More... | |
StatusInt | mdlListColumn_setId (ListColumnP pColumn, int id) |
Sets the Id of a specified ListColumn. More... | |
WCharCP | mdlListColumn_getName (ListColumnCP pColumn) |
Get the name of the specified ListColumn. More... | |
StatusInt | mdlListColumn_setName (ListColumnP pColumn, WCharCP pwName) |
Set the name string on the specified ListColumn. More... | |
int | mdlListColumn_getInfoFieldCount (ListColumnCP pColumn) |
Returns the number of info fields for a specified ListColumn. More... | |
StatusInt | mdlListColumn_setInfoFieldCount (ListColumnP pColumn, int count) |
Sets the number of info fields in a specified ListColumn. More... | |
StatusInt | mdlListColumn_setSortFunction (ListColumnP pColumn, ListColumnSortFuncP sortFunc, MdlDescP ownerMD, int secondaryColumn) |
Sets the function to call during a ListModel sort when sorting on the column index associated with this ListColumn. More... | |
bool | mdlListColumn_hasSortFunction (ListColumnCP pColumn) |
Determines if a column already has a sort function. More... | |
int | mdlListColumn_getSecondarySortColumn (ListColumnCP pColumn) |
Gets the index of the secondary sort column from the specified column. More... | |
bool | mdlListColumn_isSortIgnoreCase (ListColumnCP pColumn) |
Determines whether the specified column has its Ignore Case attribute for sorts set. More... | |
int | mdlListColumn_setSortIgnoreCase (ListColumnP pColumn, bool bIgnoreCase) |
Sets the Ignore Case attribute for the specified column for sorts. More... | |
bool | mdlListColumn_isSecondarySortAlwaysDirectional (ListColumnCP pColumn, bool *pAscending) |
Determines whether the specified column has its Always Directional attribute for secondary column sorts is on, and the sort direction is the same as specified. More... | |
int | mdlListColumn_setSecondarySortAlwaysDirectional (ListColumnP pColumn, bool bAlwaysDirectional, bool bAscending) |
Sets the Always Directional attribute for secondary column sorts. More... | |
int | mdlListColumn_lexicographicSortFunc (ListModelP pListModel, ListRowP pRow1, ListRowP pRow2, bool ascending, int columnIndex) |
A utility sorting function for lexicographic sorts. More... | |
StatusInt | mdlListColumn_setSearchFunction (ListColumnP pColumn, ListColumnSearchFuncP searchFunc, MdlDescP ownerMD) |
Sets the function to call during a ListModel search when searching on the column index associated with this ListColumn. More... | |
int | mdlListColumn_getSecondarySearchColumn (ListColumnCP pColumn) |
Gets the secondary search column to search if an mdlListModel_search call finds no match. More... | |
int | mdlListColumn_setSecondarySearchColumn (ListColumnP pColumn, int iSecondaryColumn) |
Sets the secondary search column to search if an mdlListModel_search call finds no match. More... | |
bool | mdlListColumn_isSearchIgnoreCase (ListColumnCP pColumn) |
Determines whether the specified column has its Ignore Case attribute for searches. More... | |
StatusInt | mdlListColumn_setSearchIgnoreCase (ListColumnP pColumn, bool bIgnoreCase) |
Sets the Ignore Case attribute for the specified column for searches. More... | |
bool | mdlListColumn_hasSearchFunction (ListColumnCP pColumn) |
Determines if a column already has a search function. More... | |
StatusInt | mdlListColumn_setFilterFunction (ListColumnP pColumn, ListColumnFilterFuncP filterFunc, MdlDescP ownerMD) |
Sets the function to call during a ListModel filter on the column index associated with this ListColumn. More... | |
StatusInt | mdlListColumn_setCellDestroyFunction (ListColumnP pColumn, ListCellDestroyFuncP destroyFunc, MdlDescP ownerMD) |
Sets the function to call for each ListCell during an mdlListModel_destroy or mdlListRow_destroy call. More... | |
StatusInt | mdlTreeModel_setNodeDestroyFunction (GuiTreeModelP pModel, TreeNodeDestroyFuncP destroyFunc, MdlDesc *ownerMD) |
Sets the function to call for each GuiTreeNode during an mdlTreeModel_destroy or mdlTreeNode_destroy call. More... | |
StatusInt | mdlTreeColumn_setCellDestroyFunction (GuiTreeColumn *pColumn, TreeCellDestroyFuncP destroyFunc, MdlDesc *ownerMD) |
Sets the function to call for each GuiTreeCell during an mdlTreeModel_destroy or mdlTreeNode_destroy call. More... | |
int mdlListColumn_getId | ( | ListColumnCP | pColumn | ) |
Returns the Id of a specified ListColumn.
[in] | pColumn | points to the ListColumn. |
int mdlListColumn_getInfoFieldCount | ( | ListColumnCP | pColumn | ) |
Returns the number of info fields for a specified ListColumn.
[in] | pColumn | points to the ListColumn |
WCharCP mdlListColumn_getName | ( | ListColumnCP | pColumn | ) |
Get the name of the specified ListColumn.
[in] | pColumn | is a pointer to the ListColumn from which the name is returned. |
int mdlListColumn_getSecondarySearchColumn | ( | ListColumnCP | pColumn | ) |
Gets the secondary search column to search if an mdlListModel_search call finds no match.
[in] | pColumn | points to the ListColumn |
int mdlListColumn_getSecondarySortColumn | ( | ListColumnCP | pColumn | ) |
Gets the index of the secondary sort column from the specified column.
The secondary sort column is used in the case that values are equal when sorting on the specified function.
[in] | pColumn | specified the column to get the secondary column index from. |
bool mdlListColumn_hasSearchFunction | ( | ListColumnCP | pColumn | ) |
Determines if a column already has a search function.
[in] | pColumn | specified the column to check for a search function. |
bool mdlListColumn_hasSortFunction | ( | ListColumnCP | pColumn | ) |
Determines if a column already has a sort function.
[in] | pColumn | specified the column to check for a sort function. |
bool mdlListColumn_isSearchIgnoreCase | ( | ListColumnCP | pColumn | ) |
Determines whether the specified column has its Ignore Case attribute for searches.
[in] | pColumn | points to the ListColumn to process |
bool mdlListColumn_isSecondarySortAlwaysDirectional | ( | ListColumnCP | pColumn, |
bool * | pAscending | ||
) |
Determines whether the specified column has its Always Directional attribute for secondary column sorts is on, and the sort direction is the same as specified.
[in] | pColumn | points to the ListColumn to process |
[out] | pAscending | the sort direction |
bool mdlListColumn_isSortIgnoreCase | ( | ListColumnCP | pColumn | ) |
Determines whether the specified column has its Ignore Case attribute for sorts set.
[in] | pColumn | points to the ListColumn to process |
int mdlListColumn_lexicographicSortFunc | ( | ListModelP | pListModel, |
ListRowP | pRow1, | ||
ListRowP | pRow2, | ||
bool | ascending, | ||
int | columnIndex | ||
) |
A utility sorting function for lexicographic sorts.
Sorting is based on the display text of the column cells such that "level 9" is less than "level 11". Suitable for use with mdlListColumn_setSortFunction.
[in] | pListModel | the ListModel |
[in] | pRow1 | first row to consider |
[in] | pRow2 | second row to consider |
[in] | ascending | order |
[in] | columnIndex | column to sort by |
StatusInt mdlListColumn_setCellDestroyFunction | ( | ListColumnP | pColumn, |
ListCellDestroyFuncP | destroyFunc, | ||
MdlDescP | ownerMD | ||
) |
Sets the function to call for each ListCell during an mdlListModel_destroy or mdlListRow_destroy call.
This simply gives the called function a chance to destroy any user data attached to the cell.
[in] | pColumn | points to the ListColumn |
[in] | destroyFunc | A function pointer of the function to call for each ListCell during an mdlListModel_destroy or mdlListRow_destroy call |
[in] | ownerMD | MdlDesc pointer of the MDL application that owns the destroy function |
StatusInt mdlListColumn_setFilterFunction | ( | ListColumnP | pColumn, |
ListColumnFilterFuncP | filterFunc, | ||
MdlDescP | ownerMD | ||
) |
Sets the function to call during a ListModel filter on the column index associated with this ListColumn.
[in] | pColumn | points to the ListColumn |
[in] | filterFunc | A function pointer of the function to call when filtering on the column index of this ListColumn |
[in] | ownerMD | MdlDesc pointer of the MDL application that owns the filter function |
StatusInt mdlListColumn_setId | ( | ListColumnP | pColumn, |
int | id | ||
) |
Sets the Id of a specified ListColumn.
[in] | pColumn | points to the ListColumn |
[in] | id | New Id of ListColumn |
StatusInt mdlListColumn_setInfoFieldCount | ( | ListColumnP | pColumn, |
int | count | ||
) |
Sets the number of info fields in a specified ListColumn.
[in] | pColumn | points to the ListColumn |
[in] | count | New number of info fields in a ListColumn |
StatusInt mdlListColumn_setName | ( | ListColumnP | pColumn, |
WCharCP | pwName | ||
) |
Set the name string on the specified ListColumn.
[in] | pColumn | points to the ListColumn to set the name on. |
[in] | pwName | specifies the name to give the ListColumn. |
StatusInt mdlListColumn_setSearchFunction | ( | ListColumnP | pColumn, |
ListColumnSearchFuncP | searchFunc, | ||
MdlDescP | ownerMD | ||
) |
Sets the function to call during a ListModel search when searching on the column index associated with this ListColumn.
[in] | pColumn | points to the ListColumn |
[in] | searchFunc | A function pointer of the function to call when searching on the column index of this ListColumn |
[in] | ownerMD | MdlDesc pointer of the MDL application that owns the search function |
StatusInt mdlListColumn_setSearchIgnoreCase | ( | ListColumnP | pColumn, |
bool | bIgnoreCase | ||
) |
Sets the Ignore Case attribute for the specified column for searches.
[in] | pColumn | points to the ListColumn to process |
[in] | bIgnoreCase | true to ignore case, false to force case matching. |
int mdlListColumn_setSecondarySearchColumn | ( | ListColumnP | pColumn, |
int | iSecondaryColumn | ||
) |
Sets the secondary search column to search if an mdlListModel_search call finds no match.
[in] | pColumn | points to the ListColumn |
[in] | iSecondaryColumn | Index of the secondary search column |
int mdlListColumn_setSecondarySortAlwaysDirectional | ( | ListColumnP | pColumn, |
bool | bAlwaysDirectional, | ||
bool | bAscending | ||
) |
Sets the Always Directional attribute for secondary column sorts.
[in] | pColumn | points to the ListColumn to process |
[in] | bAlwaysDirectional | true secondary column sorts will always be in direction of bAscending, false secondary column sorts will be in the same direction as the primary column sort. |
[in] | bAscending | true for Ascending, or false for Descending. |
StatusInt mdlListColumn_setSortFunction | ( | ListColumnP | pColumn, |
ListColumnSortFuncP | sortFunc, | ||
MdlDescP | ownerMD, | ||
int | secondaryColumn | ||
) |
Sets the function to call during a ListModel sort when sorting on the column index associated with this ListColumn.
[in] | pColumn | points to the ListColumn. |
[in] | sortFunc | A function pointer of the function to call when sorting on the column index of this ListColumn. |
[in] | ownerMD | MdlDesc pointer of the MDL application that owns the sort function. |
[in] | secondaryColumn | Column index of the column to sort on if values are the same. |
int mdlListColumn_setSortIgnoreCase | ( | ListColumnP | pColumn, |
bool | bIgnoreCase | ||
) |
Sets the Ignore Case attribute for the specified column for sorts.
[in] | pColumn | points to the ListColumn to process |
[in] | bIgnoreCase | true to ignore case, false to force case matching. |
StatusInt mdlListModel_setRowDestroyFunction | ( | ListModel * | pModel, |
ListRowDestroyFuncP | destroyFunc, | ||
MdlDescP | ownerMD | ||
) |
Sets the function to call for each ListRow during an mdlListModel_destroy or mdlListRow_destroy call.
This simply gives the called function a chance to destroy any user data attached to the row.
[in] | pModel | points to the ListModel |
[in] | destroyFunc | A function pointer of the function to call for each ListRow during an mdlListModel_destroy or mdlListRow_destroy call |
[in] | ownerMD | MdlDesc pointer of the MDL application that owns the destroy function |
StatusInt mdlTreeColumn_setCellDestroyFunction | ( | GuiTreeColumn * | pColumn, |
TreeCellDestroyFuncP | destroyFunc, | ||
MdlDesc * | ownerMD | ||
) |
Sets the function to call for each GuiTreeCell during an mdlTreeModel_destroy or mdlTreeNode_destroy call.
This simply gives the called function a chance to destroy any user data attached to the cell.
[in] | pColumn | points to the GuiTreeColumn |
[in] | destroyFunc | A function pointer of the function to call for each GuiTreeCell during an mdlTreeModel_destroy or mdlTreeNode_destroy call |
[in] | ownerMD | MdlDescr pointer of the MDL application that owns the destroy function |
StatusInt mdlTreeModel_setNodeDestroyFunction | ( | GuiTreeModelP | pModel, |
TreeNodeDestroyFuncP | destroyFunc, | ||
MdlDesc * | ownerMD | ||
) |
Sets the function to call for each GuiTreeNode during an mdlTreeModel_destroy or mdlTreeNode_destroy call.
This simply gives the called function a chance to destroy any user data attached to the node.
[in] | pModel | points to the GuiTreeModel |
[in] | destroyFunc | A function pointer of the function to call for each GuiTreeNode during an mdlTreeModel_destroy or mdlTreeNode_destroy call |
[in] | ownerMD | MdlDescr pointer of the MDL application that owns the destroy function |