CFx SDK Documentation  2023 SP0
FxUITableView.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2022 by Graebert GmbH.
3 //
4 // Permission to use, copy, modify, and distribute this software in
5 // object code form for any purpose and without fee is hereby granted,
6 // provided that the above copyright notice appears in all copies and
7 // that both that copyright notice and the limited warranty and
8 // restricted rights notice below appear in all supporting
9 // documentation.
10 //
11 // GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12 // GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13 // MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14 // DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15 // UNINTERRUPTED OR ERROR FREE.
16 
17 #pragma once
18 
19 #include "FxUIBaseView.h"
20 #include "../../sdk/Core/FxUIAbstractItemModel.h"
21 #include "../../sdk/Core/FxUIModelIndex.h"
22 
28 {
29 public:
30 
35  {
38  SelectColumns
39  };
40 
45  {
49  ExtendedSelection,
52 
53  ContiguousSelection
54  };
55 
60  {
65  Custom = Fixed
66  };
67 
72  NoUpdate = 0x0000,
73  Clear = 0x0001,
74  Select = 0x0002,
75  Deselect = 0x0004,
76  Rows = 0x0020,
77  Columns = 0x0040,
78  ClearAndSelect = Clear | Select
79  };
80 
81 public:
82 
85 
88 
97 
104 
110  void setSortingEnabled( bool bEnable );
111 
118 
125 
133  void setColumnWidth( int iColumn, int iWidth );
134 
140  int columnWidth( int iColumn ) const;
141 
148 
150 
157 
164 
173 
174 
180  void setVerticalHeaderHidden( bool bHide );
181 
187  void setHorzScrollBarDisable( bool bDisable );
188 
196  void setColumnHidden( int iColumn, bool bHide );
197 
204 
209 
214 
215  //...
216 
217 };
#define COMMONUI_API
void setSelectionBehavior(CFxUITableView::UISelectionBehavior behavior)
void setColumnWidth(int iColumn, int iWidth)
CFxUIModelIndex currentIndex() const
void setColumnHidden(int iColumn, bool bHide)
void setVerticalHeaderHidden(bool bHide)
@ NoSelection
Items cannot be selected.
Definition: FxUITableView.h:46
@ SingleSelection
When the user selects an item, any already-selected item becomes unselected, and the user cannot unse...
Definition: FxUITableView.h:47
@ MultiSelection
When the user selects an item in the usual way, the selection status of that item is toggled and the ...
Definition: FxUITableView.h:48
@ SelectItems
This enum selects the single items.
Definition: FxUITableView.h:36
@ SelectRows
This enum selects only the rows.
Definition: FxUITableView.h:37
CFxUIAbstractItemModel * getModel()
void openPersistentEditor(const CFxUIModelIndex &index)
void setSortingEnabled(bool bEnable)
void setSelectionMode(CFxUITableView::UISelectionMode mode)
void setModel(CFxUIAbstractItemModel *model)
void setHorizontalHeaderStretchLastSection(bool bEnable)
CFxUISignal< void(void)> & selectionChanged()
CFxUISignal< void(const CFxUIModelIndex &)> & itemClicked()
int columnWidth(int iColumn) const
void setCurrentIndex(CFxUIModelIndex index)
@ Fixed
The user cannot resize the section.
Definition: FxUITableView.h:63
@ Stretch
HeaderView will automatically resize the section to fill the available space.
Definition: FxUITableView.h:62
@ ResizeToContents
HeaderView will automatically resize the section to its optimal size based on the contents of the ent...
Definition: FxUITableView.h:64
@ Interactive
The user can resize the section.
Definition: FxUITableView.h:61
void selectRow(CFxUITableView::UISelectionFlag flag, CFxUIModelIndex index)
void setHorzScrollBarDisable(bool bDisable)
void setHorizontalHeaderResizeSection(CFxUITableView::UIHeaderResizeMode mode, int iColumn)
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
GLuint index
Definition: gles2_ext.h:265