CSearchBasedFeaturesSupplierGuiComp.h
Go to the documentation of this file.
1 #ifndef iqtipr_CSearchBasedFeaturesSupplierGuiComp_included
2 #define iqtipr_CSearchBasedFeaturesSupplierGuiComp_included
3 
4 
5 // ACF includes
6 #include "imod/IObserver.h"
7 #include "imod/TModelWrap.h"
9 #include "iqtgui/IGuiObject.h"
11 #include "iview/TVisualObjects.h"
12 
13 // ACF-Solutions includes
15 
16 #include "iqtipr/iqtipr.h"
17 
18 #include "GeneratedFiles/iqtipr/ui_CSearchBasedFeaturesSupplierGuiComp.h"
19 
20 
21 namespace iqtipr
22 {
23 
24 
26  public iqtinsp::TSupplierGuiCompBase<Ui::CSearchBasedFeaturesSupplierGuiComp>
27 {
28  Q_OBJECT
29 
30 public:
32 
34  {
41  };
42 
43  I_BEGIN_COMPONENT(CSearchBasedFeaturesSupplierGuiComp);
44  I_ASSIGN(m_intermediateResultsGuiCompPtr, "IntermediateResultsGui", "GUI integrated into group 'Intermediate Results'", false, "IntermediateResultsGui");
45  I_END_COMPONENT;
46 
48 
49 protected:
50  // reimplemented (iqtinsp::TSupplierGuiCompBase)
51  virtual QWidget* GetParamsWidget() const;
52  virtual void OnSupplierParamsChanged();
53 
54  // reimplemented (iqt2d::IViewExtender)
55  virtual void AddItemsToScene(iqt2d::IViewProvider* providerPtr, int flags);
56  virtual void RemoveItemsFromScene(iqt2d::IViewProvider* providerPtr);
57 
58  // reimplemented (iqtgui::TGuiObserverWrap)
59  virtual void OnGuiModelAttached();
60  virtual void UpdateGui(int updateFlags = 0);
61 
62  // reimplemented (iqtgui::IGuiObject)
63  virtual void OnGuiCreated();
64  virtual void OnGuiHidden();
65 
66  // reimplemented (icomp::IComponentBase)
67  virtual void OnComponentDestroyed();
68 
69 protected Q_SLOTS:
70  void OnAutoTest();
71  void on_TestButton_clicked();
74 
75 Q_SIGNALS:
76  void DoAutoTest();
77 
78 private:
79  void ConnectShapes(iview::IShapeView& view);
80  void DisconnectShapes(iview::IShapeView& view);
81 
82 private:
83  I_REF(iqtgui::IGuiObject, m_intermediateResultsGuiCompPtr);
84 
85  // result shapes
86  typedef iview::TCircleVisualObject<> VisualObject;
87  typedef istd::TPointerVector<VisualObject> VisualObjects;
88  VisualObjects m_visualPositions;
89 
90  iview::IShapeView* m_lastViewPtr;
91 };
92 
93 
94 } // namespace iqtipr
95 
96 
97 #endif // !iqtipr_CSearchBasedFeaturesSupplierGuiComp_included
98 
99 
virtual QWidget * GetParamsWidget() const
Get parameters widget object.
virtual void OnSupplierParamsChanged()
Method will be called every time if the parameter set of the supplier has been changed.
iqtinsp::TSupplierGuiCompBase< Ui::CSearchBasedFeaturesSupplierGuiComp > BaseClass
virtual void UpdateGui(int updateFlags=0)
virtual void AddItemsToScene(iqt2d::IViewProvider *providerPtr, int flags)
virtual void RemoveItemsFromScene(iqt2d::IViewProvider *providerPtr)

© 2007-2011 Witold Gantzke and Kirill Lepskiy