CFx SDK Documentation
2023 SP0
|
#include <FxUITableView.h>
Public Types | |
enum | UISelectionBehavior { SelectItems , SelectRows , SelectColumns } |
enum | UISelectionMode { NoSelection , SingleSelection , MultiSelection , ExtendedSelection , ContiguousSelection } |
enum | UIHeaderResizeMode { Interactive , Stretch , Fixed , ResizeToContents , Custom = Fixed } |
enum | UISelectionFlag { NoUpdate = 0x0000 , Clear = 0x0001 , Select = 0x0002 , Deselect = 0x0004 , Rows = 0x0020 , Columns = 0x0040 , ClearAndSelect = Clear | Select } |
Public Types inherited from CFxUIBaseView | |
enum | TextAlignment { AlignLeft = 0x0001 , AlignRight = 0x0002 , AlignHCenter = 0x0004 , AlignJustify = 0x0008 , AlignTop = 0x0020 , AlignBottom = 0x0040 , AlignVCenter = 0x0080 , AlignBaseline = 0x0100 , AlignCenter = AlignVCenter | AlignHCenter } |
enum | FocusPolicyType { eNoFocus = 0 , eTabFocus = 0x1 , eClickFocus = 0x2 , eStrongFocus = eTabFocus | eClickFocus | 0x8 , eWheelFocus = eStrongFocus | 0x4 , eKeyboardOnSetfocus = 0x10 } |
enum | UIWidthSizePolicy { eXS = 0 , eS , eM , eL , eXL } |
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 27 of file FxUITableView.h.
This enum defines the behavior of the header sections.
Definition at line 59 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 34 of file FxUITableView.h.
This enum defines way the selection will be updated.
Definition at line 71 of file FxUITableView.h.
This enum indicates how the view responds to user selections.
Definition at line 44 of file FxUITableView.h.
CFxUITableView::CFxUITableView | ( | ) |
Constructor
CFxUITableView::~CFxUITableView | ( | ) |
Destructor
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.
void CFxUITableView::openPersistentEditor | ( | const CFxUIModelIndex & | index | ) |
Opens a persistent editor at given index.
index | Input. |
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.
<em>index</em> | 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.
<em>bEnable</em> | Input. |
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.
<em>model</em> | Input. |
void CFxUITableView::setSelectionBehavior | ( | CFxUITableView::UISelectionBehavior | behavior | ) |
Sets the selection behavior for tree.
<em>behavior</em> | Input. This is an enum defined in CFxUITableView::UISelectionBehavior. |
void CFxUITableView::setSelectionMode | ( | CFxUITableView::UISelectionMode | mode | ) |
Sets the selection mode for tree.
<em>mode</em> | Input. This is an enum defined in CFxUITableView::UISelectionMode. |
void CFxUITableView::setSortingEnabled | ( | bool | bEnable | ) |
Sets whether whether sorting is enabled.
<em>bEnable</em> | 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. |