Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxFilePathProperty.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 
12 #ifndef CXFILEPATHPROPERTY_H
13 #define CXFILEPATHPROPERTY_H
14 
15 #include "cxResourceExport.h"
16 
17 #include <QStringList>
18 #include <boost/shared_ptr.hpp>
19 #include "cxFilePathPropertyBase.h"
20 
21 namespace cx
22 {
23 
24 typedef boost::shared_ptr<class FilePathProperty> FilePathPropertyPtr;
25 
29 class cxResource_EXPORT FilePathProperty: public FilePathPropertyBase
30 {
31  Q_OBJECT
32 public:
36  static FilePathPropertyPtr initialize(const QString& uid, QString name, QString help, QString value,
37  QStringList paths, QDomNode root = QDomNode());
38 
39 public:
40  // inherited interface
41  virtual QString getUid() const;
42 
43  virtual QVariant getValueAsVariant() const;
44  virtual void setValueFromVariant(QVariant val);
45 
46  virtual QString getHelp() const;
47  virtual void setHelp(QString val);
48 
49 protected:
51 
52 };
53 
54 
55 } // namespace cx
56 
57 #endif // CXFILEPATHPROPERTY_H
Base class for properties using a file path.
boost::shared_ptr< class FilePathProperty > FilePathPropertyPtr
Namespace for all CustusX production code.