CTableBasedModelEditorComp.h
Go to the documentation of this file.
1 #ifndef iqtgui_CTableBasedModelEditorComp_included
2 #define iqtgui_CTableBasedModelEditorComp_included
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 
17 namespace iqtgui
18 {
19 
20 
26 {
27 public:
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 
35 protected:
36  // reimplemented (iqtgui::CGuiComponentBase)
37  virtual void OnGuiCreated();
38 
39 private:
40  I_ATTR(bool, m_showHorizontalHeaderAttrPtr);
41  I_ATTR(bool, m_showVerticalHeaderAttrPtr);
42 };
43 
44 
45 } // namespace iqtgui
46 
47 
48 #endif // !iqtgui_CTableBasedModelEditorComp_included
49 
50 
Standard table based editor for data model components which provide access to Qt's item model (QAbstr...
Basic generic implementation of a data model editor for components which provide access to Qt's item ...
TItemModelEditorCompBase< QTableView > BaseClass
virtual void OnGuiCreated()
Called just after GUI is initialized.

© 2007-2017 Witold Gantzke and Kirill Lepskiy