wxDataViewCtrl
Implements methods from the following classes
wxControl
Methods
wxDataViewCtrl
Constructor.
AppendBitmapColumn
Appends a column for rendering a bitmap.
AppendColumn
Appends a wxDataViewColumn to the control.
AppendDateColumn
Appends a column for rendering a date.
AppendIconTextColumn
Appends a column for rendering text with an icon.
AppendProgressColumn
Appends a column for rendering a progress indicator.
AppendTextColumn
Appends a column for rendering text.
AppendToggleColumn
Appends a column for rendering a toggle.
AssociateModel
Associates a wxDataViewModel with the control.
ClearColumns
Removes all columns.
Collapse
Collapses the item.
Create
Create the control.
DeleteColumn
Deletes given column.
EnableDragSource
Enable drag operations using the given format.
EnableDropTarget
Enable drop operations using the given format.
EnsureVisible
Call this to ensure that the given item is visible.
Expand
Expands the item.
ExpandAncestors
Expands all ancestors of the item.
GetColumn
Returns pointer to the column.
GetColumnCount
Returns the number of columns.
GetColumnPosition
Returns the position of the column or -1 if not found in the control.
GetCurrentItem
Returns the currently focused item.
GetExpanderColumn
Returns column containing the expanders.
GetIndent
Returns indentation.
GetItemRect
Returns item rectangle.
GetModel
Returns pointer to the data model associated with the control (if any).
GetSelectedItemsCount
Returns the number of currently selected items.
GetSelection
Returns first selected item or an invalid item if none is selected.
GetSortingColumn
Returns the wxDataViewColumn currently responsible for sorting or NULL if none has been selected.
HasSelection
Returns true if any items are currently selected.
HitTest
Hittest.
InsertColumn
Inserts a wxDataViewColumn to the control.
IsExpanded
Return true if the item is expanded.
IsSelected
Return true if the item is selected.
PrependColumn
Prepends a wxDataViewColumn to the control.
Select
Select the given item.
SelectAll
Select all items.
SetCurrentItem
Changes the currently focused item.
SetExpanderColumn
Set which column shall contain the tree-like expanders.
SetIndent
Sets the indentation.
SetRowHeight
Sets the row height.
Unselect
Unselect the given item.
UnselectAll
Unselect all item.
Static Methods
wxDataViewCtrl
wxDataViewCtrl
(
wxWindow
&
$parent
,
integer
$id
,
wxPoint
$pos
=
wxDefaultPosition
,
wxSize
$size
=
wxDefaultSize
,
integer
$style
,
wxValidator
$validator
=
wxDefaultValidator
,
string
$name
=
wxDataViewCtrlNameStr
)
Constructor.
wxDataViewCtrl
( )
Default Constructor.
AppendBitmapColumn
wxDataViewColumn
&
AppendBitmapColumn
(
string
$label
,
integer
$model_column
,
wxDataViewCellMode
$mode
=
wxDATAVIEW_CELL_INERT
,
integer
$width
=
-1
,
wxAlignment
$align
=
wxALIGN_CENTER
,
integer
$flags
=
wxDATAVIEW_COL_RESIZABLE
)
Appends a column for rendering a bitmap.
wxDataViewColumn
&
AppendBitmapColumn
(
wxBitmap
$label
,
integer
$model_column
,
wxDataViewCellMode
$mode
=
wxDATAVIEW_CELL_INERT
,
integer
$width
=
-1
,
wxAlignment
$align
=
wxALIGN_CENTER
,
integer
$flags
=
wxDATAVIEW_COL_RESIZABLE
)
Appends a column for rendering a bitmap.
AppendColumn
bool
AppendColumn
(
wxDataViewColumn
&
$col
)
Appends a wxDataViewColumn to the control.
AppendDateColumn
wxDataViewColumn
&
AppendDateColumn
(
string
$label
,
integer
$model_column
,
wxDataViewCellMode
$mode
=
wxDATAVIEW_CELL_ACTIVATABLE
,
integer
$width
=
-1
,
wxAlignment
$align
=
wxALIGN_NOT
,
integer
$flags
=
wxDATAVIEW_COL_RESIZABLE
)
Appends a column for rendering a date.
wxDataViewColumn
&
AppendDateColumn
(
wxBitmap
$label
,
integer
$model_column
,
wxDataViewCellMode
$mode
=
wxDATAVIEW_CELL_ACTIVATABLE
,
integer
$width
=
-1
,
wxAlignment
$align
=
wxALIGN_NOT
,
integer
$flags
=
wxDATAVIEW_COL_RESIZABLE
)
Appends a column for rendering a date.
AppendIconTextColumn
wxDataViewColumn
&
AppendIconTextColumn
(
string
$label
,
integer
$model_column
,
wxDataViewCellMode
$mode
=
wxDATAVIEW_CELL_INERT
,
integer
$width
=
-1
,
wxAlignment
$align
=
wxALIGN_NOT
,
integer
$flags
=
wxDATAVIEW_COL_RESIZABLE
)
Appends a column for rendering text with an icon.
wxDataViewColumn
&
AppendIconTextColumn
(
wxBitmap
$label
,
integer
$model_column
,
wxDataViewCellMode
$mode
=
wxDATAVIEW_CELL_INERT
,
integer
$width
=
-1
,
wxAlignment
$align
=
wxALIGN_NOT
,
integer
$flags
=
wxDATAVIEW_COL_RESIZABLE
)
Appends a column for rendering text with an icon.
AppendProgressColumn
wxDataViewColumn
&
AppendProgressColumn
(
string
$label
,
integer
$model_column
,
wxDataViewCellMode
$mode
=
wxDATAVIEW_CELL_INERT
,
integer
$width
=
80
,
wxAlignment
$align
=
wxALIGN_CENTER
,
integer
$flags
=
wxDATAVIEW_COL_RESIZABLE
)
Appends a column for rendering a progress indicator.
wxDataViewColumn
&
AppendProgressColumn
(
wxBitmap
$label
,
integer
$model_column
,
wxDataViewCellMode
$mode
=
wxDATAVIEW_CELL_INERT
,
integer
$width
=
80
,
wxAlignment
$align
=
wxALIGN_CENTER
,
integer
$flags
=
wxDATAVIEW_COL_RESIZABLE
)
Appends a column for rendering a progress indicator.
AppendTextColumn
wxDataViewColumn
&
AppendTextColumn
(
string
$label
,
integer
$model_column
,
wxDataViewCellMode
$mode
=
wxDATAVIEW_CELL_INERT
,
integer
$width
=
-1
,
wxAlignment
$align
=
wxALIGN_NOT
,
integer
$flags
=
wxDATAVIEW_COL_RESIZABLE
)
Appends a column for rendering text.
wxDataViewColumn
&
AppendTextColumn
(
wxBitmap
$label
,
integer
$model_column
,
wxDataViewCellMode
$mode
=
wxDATAVIEW_CELL_INERT
,
integer
$width
=
-1
,
wxAlignment
$align
=
wxALIGN_NOT
,
integer
$flags
=
wxDATAVIEW_COL_RESIZABLE
)
Appends a column for rendering text.
AppendToggleColumn
wxDataViewColumn
&
AppendToggleColumn
(
string
$label
,
integer
$model_column
,
wxDataViewCellMode
$mode
=
wxDATAVIEW_CELL_INERT
,
integer
$width
=
30
,
wxAlignment
$align
=
wxALIGN_CENTER
,
integer
$flags
=
wxDATAVIEW_COL_RESIZABLE
)
Appends a column for rendering a toggle.
wxDataViewColumn
&
AppendToggleColumn
(
wxBitmap
$label
,
integer
$model_column
,
wxDataViewCellMode
$mode
=
wxDATAVIEW_CELL_INERT
,
integer
$width
=
30
,
wxAlignment
$align
=
wxALIGN_CENTER
,
integer
$flags
=
wxDATAVIEW_COL_RESIZABLE
)
Appends a column for rendering a toggle.
AssociateModel
bool
AssociateModel
(
wxDataViewModel
&
$model
)
Associates a wxDataViewModel with the control.
ClearColumns
bool
ClearColumns
( )
Removes all columns.
Collapse
Collapse
(
wxDataViewItem
$item
)
Collapses the item.
Create
bool
Create
(
wxWindow
&
$parent
,
integer
$id
,
wxPoint
$pos
=
wxDefaultPosition
,
wxSize
$size
=
wxDefaultSize
,
integer
$style
,
wxValidator
$validator
=
wxDefaultValidator
,
string
$name
=
wxDataViewCtrlNameStr
)
Create the control.
DeleteColumn
bool
DeleteColumn
(
wxDataViewColumn
&
$column
)
Deletes given column.
EnableDragSource
bool
EnableDragSource
(
wxDataFormat
$format
)
Enable drag operations using the given format.
EnableDropTarget
bool
EnableDropTarget
(
wxDataFormat
$format
)
Enable drop operations using the given format.
EnsureVisible
EnsureVisible
(
wxDataViewItem
$item
,
wxDataViewColumn
$column
=
NULL
)
Call this to ensure that the given item is visible.
Expand
Expand
(
wxDataViewItem
$item
)
Expands the item.
ExpandAncestors
ExpandAncestors
(
wxDataViewItem
$item
)
Expands all ancestors of the item.
GetColumn
wxDataViewColumn
&
GetColumn
(
integer
$pos
)
Returns pointer to the column.
GetColumnCount
integer
GetColumnCount
( )
Returns the number of columns.
GetColumnPosition
integer
GetColumnPosition
(
wxDataViewColumn
$column
)
Returns the position of the column or -1 if not found in the control.
GetCurrentItem
wxDataViewItem
GetCurrentItem
( )
Returns the currently focused item.
GetExpanderColumn
wxDataViewColumn
&
GetExpanderColumn
( )
Returns column containing the expanders.
GetIndent
integer
GetIndent
( )
Returns indentation.
GetItemRect
wxRect
GetItemRect
(
wxDataViewItem
$item
,
wxDataViewColumn
$col
=
NULL
)
Returns item rectangle.
GetModel
wxDataViewModel
&
GetModel
( )
Returns pointer to the data model associated with the control (if any).
GetSelectedItemsCount
integer
GetSelectedItemsCount
( )
Returns the number of currently selected items.
GetSelection
wxDataViewItem
GetSelection
( )
Returns first selected item or an invalid item if none is selected.
GetSortingColumn
wxDataViewColumn
&
GetSortingColumn
( )
Returns the wxDataViewColumn currently responsible for sorting or NULL if none has been selected.
HasSelection
bool
HasSelection
( )
Returns true if any items are currently selected.
HitTest
HitTest
(
wxPoint
$point
,
wxDataViewItem
&
$item
,
wxDataViewColumn
&
$col
)
Hittest.
InsertColumn
bool
InsertColumn
(
integer
$pos
,
wxDataViewColumn
&
$col
)
Inserts a wxDataViewColumn to the control.
IsExpanded
bool
IsExpanded
(
wxDataViewItem
$item
)
Return true if the item is expanded.
IsSelected
bool
IsSelected
(
wxDataViewItem
$item
)
Return true if the item is selected.
PrependColumn
bool
PrependColumn
(
wxDataViewColumn
&
$col
)
Prepends a wxDataViewColumn to the control.
Select
Select
(
wxDataViewItem
$item
)
Select the given item.
SelectAll
SelectAll
( )
Select all items.
SetCurrentItem
SetCurrentItem
(
wxDataViewItem
$item
)
Changes the currently focused item.
SetExpanderColumn
SetExpanderColumn
(
wxDataViewColumn
&
$col
)
Set which column shall contain the tree-like expanders.
SetIndent
SetIndent
(
integer
$indent
)
Sets the indentation.
SetRowHeight
bool
SetRowHeight
(
integer
$rowHeight
)
Sets the row height.
Unselect
Unselect
(
wxDataViewItem
$item
)
Unselect the given item.
UnselectAll
UnselectAll
( )
Unselect all item.