VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
14 #include <vrvUtil/DtUnicode.h>
15 #include <QtWidgets/QWidget>
16 
17 #include <list>
18 #include <vector>
19 
20 class QCheckBox;
21 class QComboBox;
22 class QFrame;
23 class QGroupBox;
24 class QHBoxLayout;
25 class QLabel;
26 class QPushButton;
27 class QSpacerItem;
28 class QSpinBox;
29 class QVBoxLayout;
30 
31 namespace makVrv
32 {
33  class DtVideoStream;
34  class DtDe;
35  class DtVideoStreamConfigurationLogic;
36  class DtImageTaskElementWidget;
37  class DtMetadataPublisherConfigurationWidget;
38 
44  {
45  Q_OBJECT
46 
47  public:
50 
53 
55  void setupGui();
56 
59  QSize sizeHint() const;
60 
62  virtual void activate();
63 
65  virtual void setCurrentWindowName( const DtUnicode& windowName );
66 
68  virtual void addWindowName( const DtUnicode& windowName );
69 
71  virtual void removeWindowName( const DtUnicode& windowName );
72 
74  virtual void setCurrentChannelName( const DtUnicode& channelName );
75 
77  virtual void addChannelName( const DtUnicode& channelName );
78 
80  virtual void removeChannelName( const DtUnicode& channelName );
81 
83  virtual void setCurrentFrameRate( int frameRate );
84 
86  virtual void setCurrentNumBuffers( int numBuffers );
87 
89  virtual void setCurrentReadBuffer( const DtUnicode& readBuffer );
90 
93  virtual void setReadBufferValues( const std::list<DtUnicode>& data,
94  const std::list<DtUnicode>& names );
95 
100  virtual void setImageTaskTypesAndNames(
101  const std::list<DtUnicode>& taskTypes,
102  const std::list<DtUnicode>& taskNames );
103 
106  virtual void setMetadataPublisherTypesAndNames(
107  const std::list<DtUnicode>& publisherTypes,
108  const std::list<DtUnicode>& publisherNames );
109 
111  virtual void addImageTask( int index, const makArchives::DtImageTaskRecord& task );
112 
115  virtual void setImageTask( int index, const makArchives::DtImageTaskRecord& task );
116 
118  virtual void removeImageTask( int index );
119 
121  virtual void swapImageTasks( int index1, int index2 );
122 
125  virtual void setImageTaskMoveUpArrowEnabled( int index, bool enabled );
126 
129  virtual void setImageTaskMoveDownArrowEnabled( int index, bool enabled );
130 
133  virtual void setWindowChannelNameWarningLabel( bool warn );
134 
138  virtual void disableMetadataPublishers();
139 
142  virtual void setMetadataCheckBox( bool onOff );
143 
145  virtual void setMetadataPublisherVisible( bool visible );
146 
148  virtual void setMetadataPublisherType( const DtUnicode& publisherType );
149 
151  virtual void setActionButtonState(
153 
155  virtual void setVideoStreamAutoStartState( bool autoStart );
156 
157  protected slots:
158 
159  // Qt slot connected to the window name combo box
160  virtual void onWindowNameSelectionChanged( int index );
161 
162  // Qt slot connected to the channel name combo box
163  virtual void onChannelNameSelectionChanged( int index );
164 
165  // Qt slot connected to the frame rate spin box
166  virtual void onFrameRateSelectionChanged( int frameRate );
167 
168  // Qt slot connected to the numBuffers spin box
169  virtual void onNumBuffersSelectionChanged( int numBuffers );
170 
171  // Qt slot connected to the read buffer type combo box
172  virtual void onReadBufferSelectionChanged( int index );
173 
174  // Qt slot connected to the metadata publisher check box
175  virtual void onMetadataPublisherIncludedChanged( int state );
176 
177  // Qt slot connected to the metadata publisher type combo box
178  virtual void onMetadataPublisherSelectionChanged( int index );
179 
180  // Qt slot connected to the add task button
181  virtual void onAddTaskButtonClicked();
182 
183  // Qt slot connected to the action (start/stop) button
184  virtual void onActionButtonClicked();
185 
186  // Qt slot connected to the auto start button
187  virtual void onAutoStartButtonClicked();
188 
189  protected:
192 
193  virtual void setWarningLabel( QLabel* label, bool warn,
194  const QString& toolTipIfTrue );
195 
198  virtual void connectImageTaskSignals( int index,
199  DtImageTaskElementWidget* widget);
200 
203  virtual void disconnectImageTaskSignals( int index,
204  DtImageTaskElementWidget* widget );
205 
208  virtual void slot_imageTaskTypeChanged( int index,
209  const DtUnicode& taskType );
210 
213  virtual void slot_deleteImageTaskPressed( int index );
214 
217  virtual void slot_moveImageTaskUpPressed( int index );
218 
221  virtual void slot_moveImageTaskDownPressed( int index );
222 
223  protected:
227  QVBoxLayout* myLeftSideLayout;
229  QGroupBox* myPipelineBox;
244  std::list<DtUnicode> myImageTaskTypes;
245  std::list<DtUnicode> myImageTaskNames;
246  std::vector<DtImageTaskElementWidget*> myImageTaskWidgets;
248  QSpacerItem* myEndSpacerItem;
249  QVBoxLayout* myMetadataLayout;
250  };
251 
255  {
256  public:
259 
262 
263  protected:
265  virtual DtVideoStreamConfigurationInterface* create(
266  DtVideoStream& videoStream );
267 
268  protected:
270  };
271 }
272 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)