CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
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
30{
31public:
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
47private:
48};
49
53
55{
56public:
57
60
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
152
161
168 void setCurrentCell(int row, int column);
169
175
184 std::vector<CFxUITableWidgetItem*> findItems( CFxString name, FxUIMatchFlag matchFlag );
185
186private:
187};
#define COMMONUI_API
FxUIMatchFlag
Definition FxUIEnum.h:59
void insertRow(int row)
void setHorizontalHeaderItem(int column, CFxUITableWidgetItem *item)
void removeRow(int row)
void setCurrentCell(int row, int column)
void setItem(int row, int column, CFxUITableWidgetItem *item)
void setRowCount(int rows)
int currentRow() const
int rowCount() const
int columnCount() const
void setColumnCount(int columns)
std::vector< CFxUITableWidgetItem * > findItems(CFxString name, FxUIMatchFlag matchFlag)
CFxUITableWidgetItem * item(int row, int column)
CFxUITableWidgetItem * horizontalHeaderItem(int column)
CFxUITableWidgetItem(const CFxString &text)
void setData(CFxUIModelIndex::UIDataRole role, const QVariant &variant)
CFxString text() const
QVariant data(CFxUIModelIndex::UIDataRole role) const
void setText(const CFxString &text)
GLuint const GLchar * name
Definition gles2_ext.h:265