VR-Forces 4.1 Class Documentation
DtVideoStreamConfigurationWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
15 #include <vrvUtil/DtUnicode.h>
16 #include <QtGui/QWidget>
17 
18 #include <list>
19 #include <vector>
20 
21 class QCheckBox;
22 class QComboBox;
23 class QFrame;
24 class QGroupBox;
25 class QHBoxLayout;
26 class QLabel;
27 class QPushButton;
28 class QSpacerItem;
29 class QSpinBox;
30 class QVBoxLayout;
31 
32 namespace makVrv
33 {
34  class DtVideoStream;
35  class DtDe;
36  class DtVideoStreamConfigurationLogic;
37  class DtImageTaskElementWidget;
38  class DtMetadataPublisherConfigurationWidget;
39 
45  {
46  Q_OBJECT
47 
48  public:
51 
54 
56  void setupGui();
57 
60  QSize sizeHint() const;
61 
63  virtual void activate();
64 
66  virtual void setCurrentWindowName( const DtUnicode& windowName );
67 
69  virtual void addWindowName( const DtUnicode& windowName );
70 
72  virtual void removeWindowName( const DtUnicode& windowName );
73 
75  virtual void setCurrentChannelName( const DtUnicode& channelName );
76 
78  virtual void addChannelName( const DtUnicode& channelName );
79 
81  virtual void removeChannelName( const DtUnicode& channelName );
82 
84  virtual void setCurrentFrameRate( int frameRate );
85 
87  virtual void setCurrentNumBuffers( int numBuffers );
88 
90  virtual void setCurrentReadBuffer( const DtUnicode& readBuffer );
91 
94  virtual void setReadBufferValues( const std::list<DtUnicode>& data,
95  const std::list<DtUnicode>& names );
96 
101  virtual void setImageTaskTypesAndNames(
102  const std::list<DtUnicode>& taskTypes,
103  const std::list<DtUnicode>& taskNames );
104 
107  virtual void setMetadataPublisherTypesAndNames(
108  const std::list<DtUnicode>& publisherTypes,
109  const std::list<DtUnicode>& publisherNames );
110 
112  virtual void addImageTask( int index, const makArchives::DtImageTaskRecord& task );
113 
116  virtual void setImageTask( int index, const makArchives::DtImageTaskRecord& task );
117 
119  virtual void removeImageTask( int index );
120 
122  virtual void swapImageTasks( int index1, int index2 );
123 
126  virtual void setImageTaskMoveUpArrowEnabled( int index, bool enabled );
127 
130  virtual void setImageTaskMoveDownArrowEnabled( int index, bool enabled );
131 
134  virtual void setWindowChannelNameWarningLabel( bool warn );
135 
139  virtual void disableMetadataPublishers();
140 
143  virtual void setMetadataCheckBox( bool onOff );
144 
146  virtual void setMetadataPublisherVisible( bool visible );
147 
149  virtual void setMetadataPublisherType( const DtUnicode& publisherType );
150 
152  virtual void setActionButtonState(
154 
156  virtual void setVideoStreamAutoStartState( bool autoStart );
157 
158  protected slots:
159 
160  // Qt slot connected to the window name combo box
161  virtual void onWindowNameSelectionChanged( int index );
162 
163  // Qt slot connected to the channel name combo box
164  virtual void onChannelNameSelectionChanged( int index );
165 
166  // Qt slot connected to the frame rate spin box
167  virtual void onFrameRateSelectionChanged( int frameRate );
168 
169  // Qt slot connected to the numBuffers spin box
170  virtual void onNumBuffersSelectionChanged( int numBuffers );
171 
172  // Qt slot connected to the read buffer type combo box
173  virtual void onReadBufferSelectionChanged( int index );
174 
175  // Qt slot connected to the metadata publisher check box
176  virtual void onMetadataPublisherIncludedChanged( int state );
177 
178  // Qt slot connected to the metadata publisher type combo box
179  virtual void onMetadataPublisherSelectionChanged( int index );
180 
181  // Qt slot connected to the add task button
182  virtual void onAddTaskButtonClicked();
183 
184  // Qt slot connected to the action (start/stop) button
185  virtual void onActionButtonClicked();
186 
187  // Qt slot connected to the auto start button
188  virtual void onAutoStartButtonClicked();
189 
190  protected:
193 
194  virtual void setWarningLabel( QLabel* label, bool warn,
195  const QString& toolTipIfTrue );
196 
199  virtual void connectImageTaskSignals( int index,
200  DtImageTaskElementWidget* widget);
201 
204  virtual void disconnectImageTaskSignals( int index,
205  DtImageTaskElementWidget* widget );
206 
209  virtual void slot_imageTaskTypeChanged( int index,
210  const DtUnicode& taskType );
211 
214  virtual void slot_deleteImageTaskPressed( int index );
215 
218  virtual void slot_moveImageTaskUpPressed( int index );
219 
222  virtual void slot_moveImageTaskDownPressed( int index );
223 
224  protected:
228  QVBoxLayout* myLeftSideLayout;
230  QGroupBox* myPipelineBox;
245  std::list<DtUnicode> myImageTaskTypes;
246  std::list<DtUnicode> myImageTaskNames;
247  std::vector<DtImageTaskElementWidget*> myImageTaskWidgets;
249  QSpacerItem* myEndSpacerItem;
250  QVBoxLayout* myMetadataLayout;
251  };
252 
256  {
257  public:
260 
263 
264  protected:
266  virtual DtVideoStreamConfigurationInterface* create(
267  DtVideoStream& videoStream );
268 
269  protected:
271  };
272 }
273 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)