CDataSequenceViewComp.h
Go to the documentation of this file.
1 #ifndef iqtmeas_CDataSequenceViewComp_included
2 #define iqtmeas_CDataSequenceViewComp_included
3 
4 
5 // Qt includes
6 #include <QtGui/QStandardItemModel>
7 
8 // ACF includes
9 #include "istd/TRange.h"
12 #include "imeas/IDataSequence.h"
13 #include "GeneratedFiles/iqtmeas/ui_CDataSequenceViewComp.h"
14 
15 
16 namespace iqtmeas
17 {
18 
19 
21  Ui::CDataSequenceViewComp,
22  imeas::IDataSequence>
23 {
24  Q_OBJECT
25 
26 public:
28  Ui::CDataSequenceViewComp,
30 
31  I_BEGIN_COMPONENT(CDataSequenceViewComp);
32  I_ASSIGN(m_showScalePanelAttrPtr, "IsScalePanelVisible", "Show or hide scale value panel", true, true);
33  I_ASSIGN(m_showTimeSpanPanelAttrPtr, "IsTimeSpanPanelVisible", "Show or hide time span panel", true, true);
34  I_ASSIGN(m_showChannelPanelAttrPtr, "IsChannelPanelVisible", "Show or hide channel selector panel", true, true);
35  I_ASSIGN(m_minValueAttrPtr, "MinValue", "Default minimum value if manual scaling is enabled", true, 0);
36  I_ASSIGN(m_maxValueAttrPtr, "MaxValue", "Default maximum value if manual scaling is enabled", true, 1);
37  I_ASSIGN(m_isScaledValueAttrPtr, "IsScaledValue", "Default value of automatic value scaling flag", true, true);
38  I_ASSIGN(m_minTimeSpanAttrPtr, "MinTimeSpan", "Default begin of time span if manual scaling of time span is enabled", true, 0);
39  I_ASSIGN(m_maxTimeSpanAttrPtr, "MaxTimeSpan", "Default end of time span if manual scaling of time span is enabled", true, 1);
40  I_ASSIGN(m_isScaledTimeSpanAttrPtr, "IsScaledTimeSpan", "Default value of automatic time span scaling flag", true, true);
41  I_END_COMPONENT;
42 
44 
45  // reimplemenented (iqtgui::TGuiObserverWrap)
46  virtual void UpdateGui(int updateFlags = 0);
47 
48 protected:
49  class DiagramWidget: public QWidget
50  {
51  public:
52  DiagramWidget(QWidget* parentWidgetPtr, CDataSequenceViewComp* parentPtr);
53 
54  protected:
55  // reimplemented (QWidget)
56  virtual void paintEvent(QPaintEvent* event);
57 
58  private:
59  CDataSequenceViewComp& m_parent;
60  };
61 
62  // reimplemented (iqtgui::CGuiComponentBase)
63  virtual void OnGuiCreated();
64 
65 protected slots:
66  void on_TimeSpanCB_toggled(bool state);
67  void on_ScaleCB_toggled(bool state);
68  void on_TimeBeginSB_valueChanged(double value);
69  void on_TimeEndSB_valueChanged(double value);
70  void on_ValueMinSB_valueChanged(double value);
71  void on_ValueMaxSB_valueChanged(double value);
75  void on_PrevButton_clicked();
76  void on_NextButton_clicked();
77 
78 private:
79  I_ATTR(bool, m_showScalePanelAttrPtr);
80  I_ATTR(bool, m_showTimeSpanPanelAttrPtr);
81  I_ATTR(bool, m_showChannelPanelAttrPtr);
82  I_ATTR(double, m_minValueAttrPtr);
83  I_ATTR(double, m_maxValueAttrPtr);
84  I_ATTR(bool, m_isScaledValueAttrPtr);
85  I_ATTR(double, m_minTimeSpanAttrPtr);
86  I_ATTR(double, m_maxTimeSpanAttrPtr);
87  I_ATTR(bool, m_isScaledTimeSpanAttrPtr);
88 
89  int m_lastChannelsCount;
90  QStandardItemModel m_channelsSelectorModel;
91 };
92 
93 
94 } // namespace iqtmeas
95 
96 
97 #endif // !iqtmeas_CDataSequenceViewComp_included
98 
99 
void on_TimeEndSB_valueChanged(double value)
void on_TimeBeginSB_valueChanged(double value)
virtual void paintEvent(QPaintEvent *event)
void on_ChannelSelectorCB_currentIndexChanged(int index)
virtual void UpdateGui(int updateFlags=0)
void on_ValueMaxSB_valueChanged(double value)
void on_ValueMinSB_valueChanged(double value)
void on_ScaleCB_toggled(bool state)
iqtgui::TDesignerGuiObserverCompBase< Ui::CDataSequenceViewComp, imeas::IDataSequence > BaseClass
General definition of sequence contains samples in regular time grid.
Definition: IDataSequence.h:20
void on_TimeSpanCB_toggled(bool state)
DiagramWidget(QWidget *parentWidgetPtr, CDataSequenceViewComp *parentPtr)

© 2007-2011 Witold Gantzke and Kirill Lepskiy