CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxStringPropertyActiveVideoSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 #ifndef CXSTRINGPROPERTYACTIVEVIDEOSOURCE_H
12 #define CXSTRINGPROPERTYACTIVEVIDEOSOURCE_H
13 
14 #include "cxStringPropertyBase.h"
15 #include "cxResourceExport.h"
16 
17 namespace cx
18 {
19 
20 typedef boost::shared_ptr<class VideoService> VideoServicePtr;
21 typedef boost::shared_ptr<class StringPropertyActiveVideoSource> StringPropertyActiveVideoSourcePtr;
22 
26 class cxResource_EXPORT StringPropertyActiveVideoSource : public StringPropertyBase
27 {
28  Q_OBJECT
29 public:
30  static StringPropertyActiveVideoSourcePtr create(VideoServicePtr service) { return StringPropertyActiveVideoSourcePtr(new StringPropertyActiveVideoSource(service)); }
31  StringPropertyActiveVideoSource(VideoServicePtr service);
33 
34 public:
35  virtual QString getDisplayName() const;
36  virtual bool setValue(const QString& value);
37  virtual QString getValue() const;
38  virtual QStringList getValueRange() const;
39  virtual QString getHelp() const;
40 private:
41  VideoServicePtr mService;
42 };
43 
44 } // namespace cx
45 
46 #endif // CXSTRINGPROPERTYACTIVEVIDEOSOURCE_H
boost::shared_ptr< class VideoService > VideoServicePtr
boost::shared_ptr< class StringPropertyActiveVideoSource > StringPropertyActiveVideoSourcePtr
Property for controlling the active video source in cx::VideoService.
Abstract interface for interaction with internal string-valued data.
static StringPropertyActiveVideoSourcePtr create(VideoServicePtr service)
Namespace for all CustusX production code.