CFx SDK Documentation  2020SP3
FxUITreeView.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2020 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  {
36  AlignLeft = 0x0001,
37  AlignRight = 0x0002,
38  AlignHCenter = 0x0004,
39  AlignTop = 0x0020,
40  AlignBottom = 0x0040,
41  AlignVCenter = 0x0080
42  };
43 
48  {
51  SelectColumns
52  };
53 
58  {
62  ExtendedSelection,
63 
66  ContiguousSelection
67  };
68 
73  {
78  Custom = Fixed
79  };
80 
85  NoUpdate = 0x0000,
86  Clear = 0x0001,
87  Select = 0x0002,
88  Deselect = 0x0004,
89  Rows = 0x0020,
90  Columns = 0x0040,
91  ClearAndSelect = Clear | Select
92  };
93 
94 public:
95 
98 
101 
107  void setParentNodeIcon( const CFxUIIcon & icon );
108 
114  void setChildNodeIcon( const CFxUIIcon & icon );
115 
116  void setMoveCursorMode(bool bItemMode);
117 
124 
133 
140 
146  void setHeaderStretchLastSection( bool bEnable );
147 
153  void setSortingEnabled( bool bEnable );
154 
161 
168 
174  void setRootIsDecorated( bool bShow );
175 
181  void setAlternatingRowColors( bool bEnable );
182 
190  void setColumnWidth( int iColumn, int iWidth );
191 
198 
200 
207 
214 
220  void setAutoScroll( bool bEnable );
221 
228 
235 
243  void setColumnHidden( int iColumn, bool bHide );
244 
253 
258 
262  void expandAll();
263 
267  void collapseAll();
268 
274  void setExpandsOnDoubleClick( bool bEnable );
275 
280 
285 
290 
294  CFxUISignal< void( int, int ) >& keyWentDown();
295 
296  //...
297 
298 };
CFxUITreeView::setAlternatingRowColors
void setAlternatingRowColors(bool bEnable)
CFxUITreeView::UIHeaderResizeMode
UIHeaderResizeMode
Definition: FxUITreeView.h:73
CFxUITreeView::setAutoScroll
void setAutoScroll(bool bEnable)
CFxUITreeView::setExpandsOnDoubleClick
void setExpandsOnDoubleClick(bool bEnable)
CFxUITreeView::CFxUITreeView
CFxUITreeView()
FxUIBaseView.h
CFxUITreeView::getModel
CFxUIAbstractItemModel * getModel()
CFxUITreeView::setHeaderAlignment
void setHeaderAlignment(CFxUITreeView::UIHeaderAlignment align)
CFxUIBaseView
Definition: FxUIBaseView.h:30
CFxUITreeView::expandAll
void expandAll()
CFxUITreeView::SelectRows
@ SelectRows
This enum selects only the rows.
Definition: FxUITreeView.h:50
CFxUITreeView::~CFxUITreeView
~CFxUITreeView()
CFxUITreeView::setColumnHidden
void setColumnHidden(int iColumn, bool bHide)
CFxUITreeView::clearSelection
void clearSelection()
CFxUITreeView::Fixed
@ Fixed
The user cannot resize the section.
Definition: FxUITreeView.h:76
CFxUIIcon
QIcon CFxUIIcon
Definition: FxUIObject.h:60
CFxUITreeView::setHeaderStretchLastSection
void setHeaderStretchLastSection(bool bEnable)
CFxUITreeView::setHeaderResizeSection
void setHeaderResizeSection(CFxUITreeView::UIHeaderResizeMode mode)
CFxUITreeView::setRootIsDecorated
void setRootIsDecorated(bool bShow)
CFxUITreeView::keyWentDown
CFxUISignal< void(int, int) > & keyWentDown()
CFxUITreeView::ResizeToContents
@ ResizeToContents
HeaderView will automatically resize the section to its optimal size based on the contents of the ent...
Definition: FxUITreeView.h:77
CFxUISignal
Definition: FxUISignal.h:74
index
GLuint index
Definition: gles2_ext.h:265
CFxUITreeView::UISelectionFlag
UISelectionFlag
Definition: FxUITreeView.h:84
CFxUITreeView::UISelectionMode
UISelectionMode
Definition: FxUITreeView.h:58
CFxUITreeView::itemClicked
CFxUISignal< void(const CFxUIModelIndex &)> & itemClicked()
CFxUITreeView::setModel
void setModel(CFxUIAbstractItemModel *model)
CFxUITreeView::selectRow
void selectRow(CFxUITreeView::UISelectionFlag flag, CFxUIModelIndex index)
CFxUITreeView::setColumnWidth
void setColumnWidth(int iColumn, int iWidth)
CFxUITreeView::MultiSelection
@ MultiSelection
When the user selects an item in the usual way, the selection status of that item is toggled and the ...
Definition: FxUITreeView.h:61
CFxUITreeView::setSelectionMode
void setSelectionMode(CFxUITreeView::UISelectionMode mode)
CFxUITreeView::setChildNodeIcon
void setChildNodeIcon(const CFxUIIcon &icon)
CFxUITreeView::SelectItems
@ SelectItems
This enum selects the single items.
Definition: FxUITreeView.h:49
CFxUITreeView::currentIndex
CFxUIModelIndex currentIndex() const
CFxUITreeView::itemDoubleClicked
CFxUISignal< void(const CFxUIModelIndex &)> & itemDoubleClicked()
CFxUITreeView::setHeaderResizeSection
void setHeaderResizeSection(CFxUITreeView::UIHeaderResizeMode mode, int iColumn)
CFxUITreeView::Stretch
@ Stretch
HeaderView will automatically resize the section to fill the available space.
Definition: FxUITreeView.h:75
CFxUITreeView::setCurrentIndex
void setCurrentIndex(CFxUIModelIndex index)
CFxUITreeView::NoSelection
@ NoSelection
Items cannot be selected.
Definition: FxUITreeView.h:59
CFxUITreeView::selectionChanged
CFxUISignal< void(void)> & selectionChanged()
CFxUITreeView::setSortingEnabled
void setSortingEnabled(bool bEnable)
CFxUITreeView::setCollapse
void setCollapse(CFxUIModelIndex index)
CFxUITreeView
Definition: FxUITreeView.h:28
CFxUITreeView::setExpand
void setExpand(CFxUIModelIndex index)
CFxUITreeView::UIHeaderAlignment
UIHeaderAlignment
Definition: FxUITreeView.h:35
COMMONUI_API
#define COMMONUI_API
Definition: FxCommonFramework.h:4
CFxUITreeView::UISelectionBehavior
UISelectionBehavior
Definition: FxUITreeView.h:48
CFxUITreeView::SingleSelection
@ SingleSelection
When the user selects an item, any already-selected item becomes unselected, and the user cannot unse...
Definition: FxUITreeView.h:60
CFxUITreeView::collapseAll
void collapseAll()
CFxUIModelIndex
Definition: FxUIModelIndex.h:24
CFxUIAbstractItemModel
Definition: FxUIAbstractItemModel.h:24
CFxUITreeView::setParentNodeIcon
void setParentNodeIcon(const CFxUIIcon &icon)
CFxUITreeView::setMoveCursorMode
void setMoveCursorMode(bool bItemMode)
void
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
CFxUITreeView::Interactive
@ Interactive
The user can resize the section.
Definition: FxUITreeView.h:74
CFxUITreeView::setSelectionBehavior
void setSelectionBehavior(CFxUITreeView::UISelectionBehavior behavior)