COptionsListEditorComp.h
Go to the documentation of this file.
1 #ifndef iqtprm_COptionsListEditorComp_included
2 #define iqtprm_COptionsListEditorComp_included
3 
4 
5 //Qt includes
6 #include <QtCore/QtGlobal>
7 #if QT_VERSION >= 0x050000
8 #include <QtWidgets/QMenu>
9 #else
10 #include <QtGui/QMenu>
11 #endif
12 
13 // ACF includes
14 #include <iprm/IOptionsManager.h>
15 
17 
18 #include <GeneratedFiles/iqtprm/ui_COptionsListEditorComp.h>
19 
20 
21 namespace iqtprm
22 {
23 
24 
26  Ui::COptionsListEditorComp,
27  iprm::IOptionsList>
28 {
29  Q_OBJECT
30 
31 public:
33  Ui::COptionsListEditorComp,
35 
36  I_BEGIN_COMPONENT(COptionsListEditorComp);
37  I_ASSIGN(m_iconSizeAttrPtr, "IconSize", "Size for page icons", false, 32);
38  I_END_COMPONENT;
39 
41 
42 protected Q_SLOTS:
44 
45 protected:
46  void UpdateList();
47  int GetSelectedIndex() const;
48  void EnsureSelectedIndexUpdated() const;
49  QByteArray GetSelectedParamsSetTypeId() const;
50 
51  // reimplemented (iqtgui::TGuiObserverWrap)
52  virtual void OnGuiModelAttached();
53  virtual void OnGuiModelDetached();
54  virtual void UpdateGui(const istd::IChangeable::ChangeSet& changeSet);
55 
56  // reimplemented (iqtgui::CComponentBase)
57  virtual void OnGuiCreated();
58 
59 private:
60  I_ATTR(int, m_iconSizeAttrPtr);
61 
62  mutable int m_lastSelectedIndex;
63 };
64 
65 
66 } // namespace iqtprm
67 
68 
69 #endif // !iqtprm_COptionsListEditorComp_included
70 
71 
virtual void OnGuiModelDetached()
Called when model is detached or GUI is destroyed.
iqtgui::TDesignerGuiObserverCompBase< Ui::COptionsListEditorComp, iprm::IOptionsList > BaseClass
virtual void OnGuiCreated()
Called just after GUI is initialized.
Constraints of selection from set of possibilities.
Definition: IOptionsList.h:22
virtual void OnGuiModelAttached()
Called when model is attached and GUI is created.
Base class for all Qt GUI components.
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet)
Do update of the GUI to reflect the state of model.
Set of change flags (its IDs).
Definition: IChangeable.h:30
QByteArray GetSelectedParamsSetTypeId() const
void EnsureSelectedIndexUpdated() const

© 2007-2017 Witold Gantzke and Kirill Lepskiy