CLineProjectionSupplierGuiComp.h
Go to the documentation of this file.
1 #ifndef iqtipr_CLineProjectionSupplierGuiComp_included
2 #define iqtipr_CLineProjectionSupplierGuiComp_included
3 
4 
5 // ACF includes
7 #include <imod/IObserver.h>
8 #include <imod/TModelWrap.h>
9 #include <i2d/CPosition2d.h>
10 #include <iqtgui/IGuiObject.h>
12 
13 // ACF-Solutions includes
16 
18 
19 #include <iqtipr/iqtipr.h>
20 
21 #include <GeneratedFiles/iqtipr/ui_CLineProjectionSupplierGuiComp.h>
22 
23 
24 namespace iqtipr
25 {
26 
27 
28 class CLineProjectionSupplierGuiComp: public iqtinsp::TSupplierGuiCompBase<Ui::CLineProjectionSupplierGuiComp>
29 {
30  Q_OBJECT
31 
32 public:
34 
35  I_BEGIN_COMPONENT(CLineProjectionSupplierGuiComp);
36  I_ASSIGN(m_projectionObserverCompPtr, "ProjectionObserver", "Observer for the generated line projection", true, "ProjectionObserver");
37  I_ASSIGN_TO(m_projectionObserverGuiCompPtr, m_projectionObserverCompPtr, true);
38  I_END_COMPONENT;
39 
40 protected Q_SLOTS:
41  void on_TestButton_clicked();
44 
45 protected:
46  // reimplemented (iqtinsp::TSupplierGuiCompBase)
47  virtual QWidget* GetParamsWidget() const;
48 
49  // reimplemented (iqt2d::TViewExtenderCompBase)
50  virtual void CreateShapes(int sceneId, Shapes& result);
51 
52  // reimplemented (iqtgui::TGuiObserverWrap)
53  virtual void OnGuiModelAttached();
54  virtual void UpdateGui(const istd::IChangeable::ChangeSet& changeSet);
55 
56  // reimplemented (iqtgui::IGuiObject)
57  virtual void OnGuiCreated();
58  virtual void OnGuiDestroyed();
59 
60 private:
62 
63  I_REF(imod::IObserver, m_projectionObserverCompPtr);
64  I_REF(iqtgui::IGuiObject, m_projectionObserverGuiCompPtr);
65 };
66 
67 
68 } // namespace iqtipr
69 
70 
71 #endif // !iqtipr_CLineProjectionSupplierGuiComp_included
72 
73 
iqtinsp::TSupplierGuiCompBase< Ui::CLineProjectionSupplierGuiComp > BaseClass
virtual void CreateShapes(int sceneId, Shapes &result)
virtual QWidget * GetParamsWidget() const
Get parameters widget object.
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet)

© 2007-2017 Witold Gantzke and Kirill Lepskiy