CDataSequenceSupplierResultsViewComp.h
Go to the documentation of this file.
1 #ifndef iqtmeas_CDataSequenceSupplierResultsViewComp_included
2 #define iqtmeas_CDataSequenceSupplierResultsViewComp_included
3 
4 
5 // Qt includes
6 #include <QtCore/QtGlobal>
7 #if QT_VERSION >= 0x050000
8 #include <QtWidgets/QVBoxLayout>
9 #else
10 #include <QtGui/QVBoxLayout>
11 #endif
12 
13 // ACF includes
15 #include "iproc/ISupplier.h"
18 
19 // ACF-Solutions includes
21 
22 
23 namespace iqtmeas
24 {
25 
26 
29  iqtgui::TGuiComponentBase<QWidget>,
30  imod::TSingleModelObserverBase<imeas::IDataSequenceProvider> >
31 {
32 public:
36 
37  I_BEGIN_COMPONENT(CDataSequenceSupplierResultsViewComp);
38  I_REGISTER_INTERFACE(imod::IObserver);
39  I_REGISTER_INTERFACE(imod::IModelEditor);
40  I_ASSIGN(m_resultsGuiCompPtr, "ResultsGui", "GUI for the supplier's results", true, "ResultsGui");
41  I_ASSIGN_TO(m_resultsObserverCompPtr, m_resultsGuiCompPtr, true);
42  I_END_COMPONENT;
43 
44 
45 protected:
46  // reimplemented (iqtgui::TGuiObserverWrap)
47  virtual void UpdateGui(int updateFlags = 0);
48 
49  // reimplemented (iqtgui::CGuiComponentBase)
50  virtual void OnGuiCreated();
51  virtual void OnGuiDestroyed();
52 
53 private:
54  I_REF(iqtgui::IGuiObject, m_resultsGuiCompPtr);
55  I_REF(imod::IObserver, m_resultsObserverCompPtr);
56 };
57 
58 
59 } // namespace iqtmeas
60 
61 
62 #endif // !iqtmeas_CDataSequenceSupplierResultsViewComp_included
63 
64 
I_ASSIGN_TO(m_resultsObserverCompPtr, m_resultsGuiCompPtr, true)
virtual void UpdateGui(int updateFlags=0)
iqtgui::TGuiObserverWrap< iqtgui::TGuiComponentBase< QWidget >, imod::TSingleModelObserverBase< imeas::IDataSequenceProvider > > BaseClass

© 2007-2011 Witold Gantzke and Kirill Lepskiy