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 
21  Ui::CMultiLineProjectionSupplierGuiComp,
22  imeas::IMultiDataSequenceProvider>
23 {
24  Q_OBJECT
25 
26 public:
28  Ui::CMultiLineProjectionSupplierGuiComp,
30 
31  I_BEGIN_COMPONENT(CMultiLineProjectionSupplierGuiComp);
32  I_ASSIGN(m_projectionObserverCompPtr, "ProjectionObserver", "Observer for the generated line projections", false, "ProjectionObserver");
33  I_ASSIGN_TO(m_projectionObserverGuiCompPtr, m_projectionObserverCompPtr, false);
34  I_ASSIGN(m_projectionSelectorCompPtr, "ProjectionSelector", "External selection of the current projection", false, "ProjectionSelector");
35  I_END_COMPONENT;
36 
37 protected Q_SLOTS:
38  void on_TestButton_clicked();
39  void on_ProjectionSlider_valueChanged(int value);
40  void on_ProjectionSpin_valueChanged(int value);
41 
42 protected:
43  // reimplemented (iqtgui::IGuiObject)
44  virtual void OnGuiCreated();
45  virtual void OnGuiDestroyed();
46  virtual void OnGuiHidden();
47 
48  // reimplemented (iqtgui::TGuiObserverWrap)
49  virtual void OnGuiModelAttached();
50  virtual void OnGuiModelDetached();
51  virtual void UpdateGui(int updateFlags = 0);
52 
53  // reimplemented (iqtinsp::TSupplierGuiCompBase)
54  virtual void OnSupplierParamsChanged();
55  virtual QWidget* GetParamsWidget() const;
56 
57 private:
58  void OnProjectionIndexChanged(int index);
59 
60 private:
62 
63  I_REF(imod::IObserver, m_projectionObserverCompPtr);
64  I_REF(iqtgui::IGuiObject, m_projectionObserverGuiCompPtr);
65  I_REF(iprm::ISelectionParam, m_projectionSelectorCompPtr);
66 };
67 
68 
69 } // namespace iqtipr
70 
71 
72 #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(int updateFlags=0)
iqtinsp::TSupplierGuiCompBase< Ui::CMultiLineProjectionSupplierGuiComp, imeas::IMultiDataSequenceProvider > BaseClass
I_ASSIGN_TO(m_projectionObserverGuiCompPtr, m_projectionObserverCompPtr, false)
Interface for a provider of more data sequence objects.

© 2007-2011 Witold Gantzke and Kirill Lepskiy