CFx SDK Documentation
2026 SP0
Loading...
Searching...
No Matches
SDK
CFx
commonui_inc
UI
FxUITableWidget.h
Go to the documentation of this file.
1
//
2
// (C) Copyright 2023-2025 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
#if !defined XENON && !defined( FX_TOUCH_VERSION )
20
#include "../../../Kernel/DDKERNEL/sdk/FxString.h"
21
#else
22
#include "
FxString.h
"
23
#endif
24
25
#include "
FxUIBaseView.h
"
26
#include "
FxUITableView.h
"
27
#include "
FxUIEnum.h
"
28
29
class
COMMONUI_API
CFxUITableWidgetItem
:
public
CFxUITableItemView
30
{
31
public
:
32
explicit
CFxUITableWidgetItem
();
33
explicit
CFxUITableWidgetItem
(
const
CFxString
&
text
);
34
~CFxUITableWidgetItem
();
35
36
int
column
();
37
38
CFxString
text
()
const
;
39
void
setText
(
const
CFxString
&
text
);
40
41
int
flags
()
const
;
42
void
setFlags
(
int
/*composed of CFxUIModelIndex::UIItemFlags*/
);
43
44
QVariant
data
(
CFxUIModelIndex::UIDataRole
role )
const
;
45
void
setData
(
CFxUIModelIndex::UIDataRole
role,
const
QVariant& variant );
46
47
private
:
48
};
49
53
54
class
COMMONUI_API
CFxUITableWidget
:
public
CFxUITableView
55
{
56
public
:
57
59
CFxUITableWidget
();
60
62
~CFxUITableWidget
();
63
69
int
rowCount
()
const
;
70
76
int
columnCount
()
const
;
77
86
void
setRowCount
(
int
rows );
87
96
void
setColumnCount
(
int
columns );
97
101
int
currentRow
()
const
;
102
110
void
insertRow
(
int
row);
111
120
void
removeRow
(
int
row);
121
130
CFxUITableWidgetItem
*
item
(
int
row,
int
column);
131
141
void
setItem
(
int
row,
int
column,
CFxUITableWidgetItem
*
item
);
142
151
void
setHorizontalHeaderItem
(
int
column,
CFxUITableWidgetItem
*
item
);
152
160
CFxUITableWidgetItem
*
horizontalHeaderItem
(
int
column );
161
168
void
setCurrentCell
(
int
row,
int
column);
169
174
void
clearContents
();
175
184
std::vector<CFxUITableWidgetItem*>
findItems
(
CFxString
name
,
FxUIMatchFlag
matchFlag );
185
186
private
:
187
};
COMMONUI_API
#define COMMONUI_API
Definition
FxCommonFramework.h:20
FxString.h
FxUIBaseView.h
FxUIEnum.h
FxUIMatchFlag
FxUIMatchFlag
Definition
FxUIEnum.h:59
FxUITableView.h
CFxString
Definition
FxString.h:50
CFxUIModelIndex::UIDataRole
UIDataRole
Definition
FxUIModelIndex.h:28
CFxUITableItemView
Definition
FxUITableView.h:318
CFxUITableView::CFxUITableView
CFxUITableView()
CFxUITableWidget::insertRow
void insertRow(int row)
CFxUITableWidget::setHorizontalHeaderItem
void setHorizontalHeaderItem(int column, CFxUITableWidgetItem *item)
CFxUITableWidget::removeRow
void removeRow(int row)
CFxUITableWidget::setCurrentCell
void setCurrentCell(int row, int column)
CFxUITableWidget::setItem
void setItem(int row, int column, CFxUITableWidgetItem *item)
CFxUITableWidget::setRowCount
void setRowCount(int rows)
CFxUITableWidget::currentRow
int currentRow() const
CFxUITableWidget::~CFxUITableWidget
~CFxUITableWidget()
CFxUITableWidget::rowCount
int rowCount() const
CFxUITableWidget::columnCount
int columnCount() const
CFxUITableWidget::setColumnCount
void setColumnCount(int columns)
CFxUITableWidget::findItems
std::vector< CFxUITableWidgetItem * > findItems(CFxString name, FxUIMatchFlag matchFlag)
CFxUITableWidget::clearContents
void clearContents()
CFxUITableWidget::item
CFxUITableWidgetItem * item(int row, int column)
CFxUITableWidget::CFxUITableWidget
CFxUITableWidget()
CFxUITableWidget::horizontalHeaderItem
CFxUITableWidgetItem * horizontalHeaderItem(int column)
CFxUITableWidgetItem
Definition
FxUITableWidget.h:30
CFxUITableWidgetItem::CFxUITableWidgetItem
CFxUITableWidgetItem(const CFxString &text)
CFxUITableWidgetItem::setData
void setData(CFxUIModelIndex::UIDataRole role, const QVariant &variant)
CFxUITableWidgetItem::column
int column()
CFxUITableWidgetItem::~CFxUITableWidgetItem
~CFxUITableWidgetItem()
CFxUITableWidgetItem::text
CFxString text() const
CFxUITableWidgetItem::setFlags
void setFlags(int)
CFxUITableWidgetItem::data
QVariant data(CFxUIModelIndex::UIDataRole role) const
CFxUITableWidgetItem::CFxUITableWidgetItem
CFxUITableWidgetItem()
CFxUITableWidgetItem::setText
void setText(const CFxString &text)
CFxUITableWidgetItem::flags
int flags() const
name
GLuint const GLchar * name
Definition
gles2_ext.h:265
Generated on Tue Apr 15 2025 11:29:57