CPlaybackControllerGuiComp.h
Go to the documentation of this file.
1 #ifndef iqtmm_CPlaybackControllerGuiComp_included
2 #define iqtmm_CPlaybackControllerGuiComp_included
3 
4 
5 // Qt includes
6 #include <QtCore/QTimer>
7 
8 // ACF includes
10 
11 // ACF-Solutions includes
12 #include "imm/IVideoController.h"
13 
14 #include "GeneratedFiles/iqtmm/ui_CPlaybackControllerGuiComp.h"
15 
16 
17 namespace iqtmm
18 {
19 
20 
25  public iqtgui::TDesignerGuiObserverCompBase<Ui::CPlaybackControllerGuiComp, imm::IVideoController>
26 {
27  Q_OBJECT
28 public:
30 
31  I_BEGIN_COMPONENT(CPlaybackControllerGuiComp);
32  I_ASSIGN(m_showPlayButtonAttrPtr, "ShowPlayButton", "Allow to display play button", true, true);
33  I_ASSIGN(m_showPositionSliderAttrPtr, "ShowPositionSlider", "Shows and allows edit position slider", true, true);
34  I_ASSIGN(m_showTimePositionAttrPtr, "ShowTimePosition", "Shows and allows edit current time position", true, false);
35  I_ASSIGN(m_showFrameIndexAttrPtr, "ShowFrameIndex", "Shows and allows edit current frame index", true, false);
36  I_ASSIGN(m_showRepeatButtonAttrPtr, "ShowRepeatButton", "Allow to display play button", true, true);
37  I_END_COMPONENT;
38 
39 protected:
40  // reimplemented (iqtgui::TGuiObserverWrap)
41  virtual void UpdateGui(int updateFlags = 0);
42 
43  // reimplemented (iqtgui::CGuiComponentBase)
44  virtual void OnGuiCreated();
45  virtual void OnGuiDestroyed();
46 
47 private Q_SLOTS:
48  void OnTimerTick();
49 
50 private Q_SLOTS:
51  void on_PlayButton_toggled(bool isToggled);
52  void on_PositionSlider_valueChanged(int frameIndex);
53  void on_FrameIndexSB_valueChanged(int frameIndex);
54  void on_TimeEdit_editingFinished();
55 
56 private:
57  QTimer m_playTimer;
58  int m_currentFrameIndex;
59 
60  I_ATTR(bool, m_showPlayButtonAttrPtr);
61  I_ATTR(bool, m_showPositionSliderAttrPtr);
62  I_ATTR(bool, m_showTimePositionAttrPtr);
63  I_ATTR(bool, m_showFrameIndexAttrPtr);
64  I_ATTR(bool, m_showRepeatButtonAttrPtr);
65 };
66 
67 
68 } // namespace iqtmm
69 
70 
71 #endif // !iqtmm_CPlaybackControllerGuiComp_included
72 
virtual void UpdateGui(int updateFlags=0)
iqtgui::TDesignerGuiObserverCompBase< Ui::CPlaybackControllerGuiComp, imm::IVideoController > BaseClass
Component to play some image (frame) sequence from a directory.

© 2007-2011 Witold Gantzke and Kirill Lepskiy