ACF $AcfVersion:0$
CTableBasedModelEditorComp.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtCore/QtGlobal>
7#if QT_VERSION >= 0x050000
8#include <QtWidgets/QTableView>
9#else
10#include <QtGui/QTableView>
11#endif
12
13// ACF includes
15
16
17namespace iqtgui
18{
19
20
26{
27public:
29
30 I_BEGIN_COMPONENT(CTableBasedModelEditorComp);
31 I_ASSIGN(m_showHorizontalHeaderAttrPtr, "ShowHorizontalHeader", "If set, horizontal table header is shown", true, true);
32 I_ASSIGN(m_showVerticalHeaderAttrPtr, "ShowVerticalHeader", "If set, vertical table header is shown", true, true);
33 I_END_COMPONENT;
34
35protected:
36 // reimplemented (iqtgui::CGuiComponentBase)
37 virtual void OnGuiCreated() override;
38
39private:
40 I_ATTR(bool, m_showHorizontalHeaderAttrPtr);
41 I_ATTR(bool, m_showVerticalHeaderAttrPtr);
42};
43
44
45} // namespace iqtgui
46
47
48
49
Standard table based editor for data model components which provide access to Qt's item model (QAbstr...
virtual void OnGuiCreated() override
TItemModelEditorCompBase< QTableView > BaseClass
Basic generic implementation of a data model editor for components which provide access to Qt's item ...
Standard GUI specific interfaces and components based on Qt.