#include <c4d_listview.h>
A class for simple list views. See ListView.cpp SDK example.
Additional Inherited Members | |
Protected Attributes inherited from GeListView | |
_GeListView * | lv |
GeDialog * | cd |
SimpleListView | ( | ) |
Constructor. Creates the list view, but does not attach it to any dialog.
|
virtual |
Destructor. Destroys the list view.
Bool SetLayout | ( | Int32 | columns, |
const BaseContainer & | data | ||
) |
Sets the current column layout.
The data is layed out linearly in the supplied container, i.e. the order of the columns is specified by the order in which the items are added to the container.
Each item in the container represents one column. The ID of the element is the column ID. The value of the item (of type Int32) should be one of the following:
Here is an example:
[in] | columns | The number of columns. |
[in] | data | The column data. |
Bool SetItem | ( | Int32 | id, |
const BaseContainer & | data | ||
) |
Sets the data for a list view line, inserting a new one if it is not found.
The container should be filled with proper values for each column ID that needs to be changed/set.
Here is an example:
[in] | id | The ID of the line. |
[in] | data | The data for the line. |
Bool GetItem | ( | Int32 | id, |
BaseContainer * | data | ||
) |
Retrieves the data for a list view line.
[out] | id | The ID of the line. |
[out] | data | For each column of the line an item with the column ID is inserted into data. |
Int32 GetItemCount | ( | void | ) |
Gets the number of lines.
Bool GetItemLine | ( | Int32 | num, |
Int32 * | id, | ||
BaseContainer * | data | ||
) |
Like GetItem(), but with the line number instead of line ID.
[in] | num | The number of the line. |
[out] | id | Assigned the line ID. |
[out] | data | For each column of the line an item with the column ID is inserted into data. |
Removes a line from the list view.
[in] | id | The ID of the line. |
Int32 GetSelection | ( | BaseSelect * | selection | ) |
Retrieves the current selection.
[out] | selection | Filled with the current selection. Multiple selections are possible (see SLV_MULTIPLESELECTION). The caller owns the pointed container. |
Bool SetSelection | ( | BaseSelect * | selection | ) |
Sets the current selection.
[in] | selection | The selection to set. Multiple selections are possible (see SLV_MULTIPLESELECTION). The caller owns the pointed container. |
Retrieves a property for the list view.
[in] | id | The ID of the property: SLV |
Sets a property for the list view.
[in] | id | The ID of the property: SLV_MULTIPLESELECTION. |
[in] | val | The property value. |
|
virtual |
Internal.
Reimplemented from GeListView.