CValueSupplierGuiComp.h
Go to the documentation of this file.
1 #ifndef iqtipr_CValueSupplierGuiComp_included
2 #define iqtipr_CValueSupplierGuiComp_included
3 
4 
5 // ACF includes
7 #include "imod/IObserver.h"
8 #include "imod/TModelWrap.h"
10 #include "i2d/CCircle.h"
12 #include "iqtgui/IGuiObject.h"
14 
16 
17 #include "iqtipr/iqtipr.h"
18 
19 #include "GeneratedFiles/iqtipr/ui_CValueSupplierGuiComp.h"
20 
21 
22 namespace iqtipr
23 {
24 
25 
26 class CValueSupplierGuiComp: public iqtinsp::TSupplierGuiCompBase<Ui::CValueSupplierGuiComp>
27 {
28  Q_OBJECT
29 
30 public:
32 
33  I_BEGIN_COMPONENT(CValueSupplierGuiComp);
34  I_ASSIGN(m_intermediateResultsGuiCompPtr, "IntermediateResultsGui", "GUI integrated in group 'Intermediate Results'", false, "IntermediateResultsGui");
35  I_END_COMPONENT;
36 
37 protected Q_SLOTS:
38  void on_TestButton_clicked();
41 
42 protected:
43  // reimplemented (iqtinsp::TSupplierGuiCompBase)
44  virtual QWidget* GetParamsWidget() const;
45  virtual void OnSupplierParamsChanged();
46 
47  // reimplemented (iqt2d::TViewExtenderCompBase)
48  virtual void CreateShapes(int sceneId, Shapes& result);
49 
50  // reimplemented (iqtgui::TGuiObserverWrap)
51  virtual void OnGuiModelAttached();
52  virtual void UpdateGui(int updateFlags = 0);
53 
54  // reimplemented (iqtgui::IGuiObject)
55  virtual void OnGuiCreated();
56  virtual void OnGuiDestroyed();
57  virtual void OnGuiHidden();
58 
59  // reimplemented (icomp::IComponentBase)
60  virtual void OnComponentDestroyed();
61 
62 private:
63  I_REF(iqtgui::IGuiObject, m_intermediateResultsGuiCompPtr);
64 
66  FoundModel m_foundModel;
67 };
68 
69 
70 } // namespace iqtipr
71 
72 
73 #endif // !iqtipr_CValueSupplierGuiComp_included
74 
75 
virtual void OnGuiModelAttached()
virtual void OnComponentDestroyed()
virtual void CreateShapes(int sceneId, Shapes &result)
virtual QWidget * GetParamsWidget() const
Get parameters widget object.
virtual void UpdateGui(int updateFlags=0)
virtual void OnSupplierParamsChanged()
Method will be called every time if the parameter set of the supplier has been changed.
iqtinsp::TSupplierGuiCompBase< Ui::CValueSupplierGuiComp > BaseClass

© 2007-2011 Witold Gantzke and Kirill Lepskiy