Fraxinus
22.04-rc5
An IGT application
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
cxBoolProperty.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
13
14
/*
15
* sscBoolProperty.h
16
*
17
* Created on: Feb 7, 2011
18
* Author: christiana
19
*/
20
21
#ifndef CXBOOLPROPERTY_H_
22
#define CXBOOLPROPERTY_H_
23
24
#include "cxResourceExport.h"
25
26
#include <QDomElement>
27
28
#include "
cxBoolPropertyBase.h
"
29
#include "
cxXmlOptionItem.h
"
30
31
namespace
cx
32
{
33
34
typedef
boost::shared_ptr<class BoolProperty>
BoolPropertyPtr
;
35
40
class
cxResource_EXPORT
BoolProperty
:
public
BoolPropertyBase
41
{
42
Q_OBJECT
43
public
:
44
virtual
~BoolProperty
()
45
{
46
}
47
51
static
BoolPropertyPtr initialize(
const
QString& uid, QString name, QString help,
bool
value, QDomNode root =
52
QDomNode());
53
54
public
:
55
// basic methods
56
virtual
QString getDisplayName()
const
;
57
virtual
QString getUid()
const
;
58
virtual
bool
setValue(
bool
value);
59
virtual
bool
getValue()
const
;
60
61
public
:
62
// optional methods
63
virtual
QString getHelp()
const
;
64
void
setHelp(QString val);
65
66
signals:
67
void
valueWasSet();
68
69
private
:
70
BoolProperty
() {}
71
QString mName;
72
QString mUid;
73
QString mHelp;
74
bool
mValue;
75
XmlOptionItem
mStore;
76
77
};
78
79
}
80
81
#endif
/* CXBOOLPROPERTY_H_ */
cx::BoolPropertyBase
Definition:
cxBoolPropertyBase.h:26
cx::XmlOptionItem
Helper class for storing one string value in an xml document.
Definition:
cxXmlOptionItem.h:38
cxXmlOptionItem.h
cx::BoolProperty
Definition:
cxBoolProperty.h:40
cxBoolPropertyBase.h
cx::BoolPropertyPtr
boost::shared_ptr< class BoolProperty > BoolPropertyPtr
Definition:
cxPlusConnectWidget.h:29
cx::BoolProperty::~BoolProperty
virtual ~BoolProperty()
Definition:
cxBoolProperty.h:44
cx
Namespace for all CustusX production code.
Definition:
cx_dev_group_definitions.h:13
CX
source
resource
core
properties
cxBoolProperty.h
Generated on Thu Jun 16 2022 19:01:34 for Fraxinus by
1.8.11