CFx SDK Documentation 2024 SP0
|
#include <FxUITableView.h>
Additional Inherited Members | |
Static Public Member Functions inherited from CFxUIBaseView | |
static void | setTabOrder (CFxUIObject *first, CFxUIObject *second) |
Protected Member Functions inherited from CFxUIObject | |
CFxUIObject * | sender () |
Protected Attributes inherited from CFxUIObject | |
CFxUIObjectImpl * | m_pImpl |
CFxUIObjectData * | m_pData |
Class CFxUITableView provides a default model/view implementation of a tree view.
Definition at line 39 of file FxUITableView.h.
This enum defines the behavior of the header sections.
Definition at line 71 of file FxUITableView.h.
Enumerator | |
---|---|
None | No button. |
Left | Left button. |
Middle | Middle button. |
Right | Right button. |
Definition at line 93 of file FxUITableView.h.
This enum type defines the selection behavior of items in FxUITreeView.
Enumerator | |
---|---|
SelectItems | This enum selects the single items. |
SelectRows | This enum selects only the rows. |
SelectColumns | This enum selects only the columns. |
Definition at line 46 of file FxUITableView.h.
This enum defines way the selection will be updated.
Definition at line 83 of file FxUITableView.h.
This enum indicates how the view responds to user selections.
Definition at line 56 of file FxUITableView.h.
CFxUITableView::CFxUITableView | ( | ) |
Constructor
CFxUITableView::~CFxUITableView | ( | ) |
Destructor
void CFxUITableView::clearSelection | ( | ) |
Deselects all selected items. The current index will not be changed.
int CFxUITableView::columnWidth | ( | int | iColumn | ) | const |
Gets the column width.
CFxUIModelIndex CFxUITableView::currentIndex | ( | ) | const |
Gets the current index of item.
CFxUIAbstractItemModel * CFxUITableView::getModel | ( | ) |
CFxUISignal< void(const CFxUIModelIndex &)> & CFxUITableView::itemClicked | ( | ) |
Signal is emitted when item is clicked.
CFxUISignal< void(CFxUIModelIndex, CFxUITableView::UIMouseClickEvent)> & CFxUITableView::mouseClicked | ( | ) |
Signal is emitted when clicked.
void CFxUITableView::openPersistentEditor | ( | const CFxUIModelIndex & | index | ) |
Opens a persistent editor at given index.
index | Input. |
std::vector< CFxUIModelIndex > CFxUITableView::selectedIndexes | ( | ) | const |
returns a list of all selected and non-hidden item indexes in the view. The list contains no duplicates, and is not sorted.
CFxUISignal< void(void)> & CFxUITableView::selectionChanged | ( | ) |
Signal is emitted when selection of view is changed.
void CFxUITableView::selectRow | ( | CFxUITableView::UISelectionFlag | flag, |
CFxUIModelIndex | index | ||
) |
Sets the row selected.
first | flag Input.This enum is of type CFxUITableView::UISelectionFlag. |
second | index Input. Selects the row at provided index. |
void CFxUITableView::setColumnHidden | ( | int | iColumn, |
bool | bHide | ||
) |
Sets the column hidden.
first | iColumn Input. |
second | bHide Input. If true, column is hidden. |
void CFxUITableView::setColumnWidth | ( | int | iColumn, |
int | iWidth | ||
) |
Sets the width of the given column to the width specified.
first | iColumn Input. |
second | iWidth Input. |
void CFxUITableView::setCurrentIndex | ( | CFxUIModelIndex | index | ) |
Sets the current item to be the item at index.
_index_ | Input. |
void CFxUITableView::setHorizontalHeaderResizeSection | ( | CFxUITableView::UIHeaderResizeMode | mode, |
int | iColumn | ||
) |
Sets the resize mode for column.
first | mode Input. This is an enum defined in CFxUITableView::UIHeaderResizeMode. |
second | iColumn Input. |
void CFxUITableView::setHorizontalHeaderStretchLastSection | ( | bool | bEnable | ) |
Sets whether the last visible section in the header takes up all the available space.
_bEnable_ | Input. |
void CFxUITableView::setHorzHeaderHidden | ( | bool | bHide | ) |
Sets the Horizontal header hidden.
bHide | Input. If true, header is hidden. |
void CFxUITableView::setHorzScrollBarDisable | ( | bool | bDisable | ) |
Sets the Horizontal scrollbar disable.
bDisable | Input. If true, Horizontal scrollbar is disabled. |
void CFxUITableView::setModel | ( | CFxUIAbstractItemModel * | model | ) |
Sets the model for the view to present.
_model_ | Input. |
void CFxUITableView::setSelectionBehavior | ( | CFxUITableView::UISelectionBehavior | behavior | ) |
Sets the selection behavior for tree.
_behavior_ | Input. This is an enum defined in CFxUITableView::UISelectionBehavior. |
void CFxUITableView::setSelectionMode | ( | CFxUITableView::UISelectionMode | mode | ) |
Sets the selection mode for tree.
_mode_ | Input. This is an enum defined in CFxUITableView::UISelectionMode. |
void CFxUITableView::setSortingEnabled | ( | bool | bEnable | ) |
Sets whether whether sorting is enabled.
_bEnable_ | Input. If true, sorting is enabled for the tree; if false, sorting is not enabled. |
void CFxUITableView::setVerticalHeaderHidden | ( | bool | bHide | ) |
Sets the vertical header hidden.
bHide | Input. If true, header is hidden. |