CMultiLineProjectionSupplierGuiComp.h
Go to the documentation of this file.
1 #ifndef iqtipr_CMultiLineProjectionSupplierGuiComp_included
2 #define iqtipr_CMultiLineProjectionSupplierGuiComp_included
3 
4 
5 // ACF includes
6 #include <iprm/ISelectionParam.h>
7 
8 // ACF-Solutions includes
12 
13 #include <GeneratedFiles/iqtipr/ui_CMultiLineProjectionSupplierGuiComp.h>
14 
15 
16 namespace iqtipr
17 {
18 
19 
20 class CMultiLineProjectionSupplierGuiComp: public iqtinsp::TSupplierGuiCompBase<Ui::CMultiLineProjectionSupplierGuiComp>
21 {
22  Q_OBJECT
23 
24 public:
26 
27  I_BEGIN_COMPONENT(CMultiLineProjectionSupplierGuiComp);
28  I_ASSIGN(m_projectionObserverCompPtr, "ProjectionObserver", "Observer for the generated line projections", false, "ProjectionObserver");
29  I_ASSIGN_TO(m_projectionObserverGuiCompPtr, m_projectionObserverCompPtr, false);
30  I_ASSIGN(m_projectionSelectorCompPtr, "ProjectionSelector", "External selection of the current projection", false, "ProjectionSelector");
31  I_END_COMPONENT;
32 
33 protected Q_SLOTS:
34  void on_TestButton_clicked();
35  void on_ProjectionSlider_valueChanged(int value);
36  void on_ProjectionSpin_valueChanged(int value);
37 
38 protected:
39  // reimplemented (iqtgui::IGuiObject)
40  virtual void OnGuiCreated();
41  virtual void OnGuiDestroyed();
42  virtual void OnGuiHidden();
43 
44  // reimplemented (iqtgui::TGuiObserverWrap)
45  virtual void OnGuiModelAttached();
46  virtual void OnGuiModelDetached();
47  virtual void UpdateGui(const istd::IChangeable::ChangeSet& changeSet);
48 
49  // reimplemented (iqtinsp::TSupplierGuiCompBase)
50  virtual void OnSupplierParamsChanged();
51  virtual QWidget* GetParamsWidget() const;
52 
53 private:
54  void OnProjectionIndexChanged(int index);
55 
56 private:
58 
59  I_REF(imod::IObserver, m_projectionObserverCompPtr);
60  I_REF(iqtgui::IGuiObject, m_projectionObserverGuiCompPtr);
61  I_REF(iprm::ISelectionParam, m_projectionSelectorCompPtr);
62 };
63 
64 
65 } // namespace iqtipr
66 
67 
68 #endif // !iqtipr_CMultiLineProjectionSupplierGuiComp_included
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.
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet)
iqtinsp::TSupplierGuiCompBase< Ui::CMultiLineProjectionSupplierGuiComp > BaseClass

© 2007-2017 Witold Gantzke and Kirill Lepskiy