NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cxStringPropertySelectRecordSession.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 CXSTRINGPROPERTYSELECTRECORDSESSION_H_
12 #define CXSTRINGPROPERTYSELECTRECORDSESSION_H_
13 
14 #include "org_custusx_acquisition_Export.h"
15 
16 //#include "cxDataInterface.h"
17 #include "cxRecordSession.h"
18 #include "cxAcquisitionData.h"
19 #include "cxStringPropertyBase.h"
20 
21 namespace cx
22 {
31 class org_custusx_acquisition_EXPORT StringPropertySelectRecordSessionBase : public StringPropertyBase
32 {
33  Q_OBJECT
34 public:
37 
38 public: // basic methods
39 
40 public: // optional methods
41  virtual QStringList getValueRange() const;
42  virtual QString convertInternal2Display(QString internal);
43 
44 protected:
46 };
47 typedef boost::shared_ptr<class StringPropertySelectRecordSessionBase> StringPropertySelectRecordSessionBasePtr;
48 
49 
50 typedef boost::shared_ptr<class StringPropertySelectRecordSession> StringPropertySelectRecordSessionPtr;
51 
57 class org_custusx_acquisition_EXPORT StringPropertySelectRecordSession : public StringPropertySelectRecordSessionBase
58 {
59  Q_OBJECT
60 public:
64 
65 public: // basic methods
66  virtual QString getDisplayName() const;
67  virtual bool setValue(const QString& value);
68  virtual QString getValue() const;
69 
70 public: // optional methods
71  virtual QString getHelp() const;
72 
73 public: //interface extencion
74  RecordSessionPtr getRecordSession();
75 
76 private slots:
77  void setDefaultSlot();
78 
79 private:
80  RecordSessionPtr mRecordSession;
81 
82 };
83 
87 }
88 
89 #endif /* CXSTRINGPROPERTYSELECTRECORDSESSION_H_ */
cx::StringPropertySelectRecordSessionPtr
boost::shared_ptr< class StringPropertySelectRecordSession > StringPropertySelectRecordSessionPtr
Definition: cxStringPropertySelectRecordSession.h:50
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::StringPropertySelectRecordSessionBase::~StringPropertySelectRecordSessionBase
virtual ~StringPropertySelectRecordSessionBase()
Definition: cxStringPropertySelectRecordSession.h:36
cx::StringPropertySelectRecordSessionBase::mPluginData
AcquisitionDataPtr mPluginData
Definition: cxStringPropertySelectRecordSession.h:45
cx::StringPropertySelectRecordSession::~StringPropertySelectRecordSession
virtual ~StringPropertySelectRecordSession()
Definition: cxStringPropertySelectRecordSession.h:63
cx::StringPropertySelectRecordSessionBasePtr
boost::shared_ptr< class StringPropertySelectRecordSessionBase > StringPropertySelectRecordSessionBasePtr
Definition: cxStringPropertySelectRecordSession.h:47
cx::StringPropertySelectRecordSessionBase
Definition: cxStringPropertySelectRecordSession.h:31
cx::StringPropertySelectRecordSession::New
static StringPropertySelectRecordSessionPtr New(AcquisitionDataPtr pluginData)
Definition: cxStringPropertySelectRecordSession.h:61
cx::StringPropertySelectRecordSession
Definition: cxStringPropertySelectRecordSession.h:57
cxStringPropertyBase.h
cxRecordSession.h
cx::StringPropertyBase
Abstract interface for interaction with internal string-valued data.
Definition: cxStringPropertyBase.h:65
cx::AcquisitionDataPtr
boost::shared_ptr< class AcquisitionData > AcquisitionDataPtr
Definition: cxAcquisitionImplService.h:22
cxAcquisitionData.h
cx::RecordSessionPtr
boost::shared_ptr< class RecordSession > RecordSessionPtr
Definition: cxAcquisitionService.h:28