CSampleContainerView.h
Go to the documentation of this file.
1 #ifndef iqtsig_CSampleContainerView_included
2 #define iqtsig_CSampleContainerView_included
3 
4 
5 #include <QtCore/QtGlobal>
6 #if QT_VERSION >= 0x050000
7 #include <QtWidgets/QWidget>
8 #else
9 #include <QtGui/QWidget>
10 #endif
11 
12 // ACF includes
13 #include "istd/TRange.h"
15 #include "imeas/IDataSequence.h"
16 
17 
18 namespace iqtsig
19 {
20 
21 
22 class CSampleContainerView: public QWidget, public imod::TSingleModelObserverBase<imeas::IDataSequence>
23 {
24 public:
25  typedef QWidget BaseClass;
27 
28  CSampleContainerView(QWidget* parentPtr = NULL);
29 
30  void SetDisplayedRange(const istd::CRange& range);
31 
32  // reimplemented (imod::CSingleModelObserverBase)
33  virtual void OnUpdate(int updateFlags, istd::IPolymorphic* updateParamsPtr);
34 
35  // reimplemented (QWidget)
36  virtual void paintEvent(QPaintEvent* event);
37 
38 private:
39  istd::CRange m_displayedRange;
40 };
41 
42 
43 } // namespace iqtsig
44 
45 
46 #endif // !iqtsig_CSampleContainerView_included
47 
48 
CSampleContainerView(QWidget *parentPtr=NULL)
imod::TSingleModelObserverBase< imeas::IDataSequence > BaseClass2
virtual void paintEvent(QPaintEvent *event)
virtual void OnUpdate(int updateFlags, istd::IPolymorphic *updateParamsPtr)
void SetDisplayedRange(const istd::CRange &range)

© 2007-2011 Witold Gantzke and Kirill Lepskiy