CustusX  2020.11.07-dev+develop.4ce4a
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:
61  static StringPropertySelectRecordSessionPtr New(AcquisitionDataPtr pluginData) { return StringPropertySelectRecordSessionPtr(new StringPropertySelectRecordSession(pluginData)); }
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_ */
Abstract interface for interaction with internal string-valued data.
boost::shared_ptr< class AcquisitionData > AcquisitionDataPtr
boost::shared_ptr< class RecordSession > RecordSessionPtr
static StringPropertySelectRecordSessionPtr New(AcquisitionDataPtr pluginData)
boost::shared_ptr< class StringPropertySelectRecordSession > StringPropertySelectRecordSessionPtr
boost::shared_ptr< class StringPropertySelectRecordSessionBase > StringPropertySelectRecordSessionBasePtr
Namespace for all CustusX production code.