QCAD Application Framework
CAD Application Development and Automation.
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
RChangePropertyOperation.h
Go to the documentation of this file.
1
#ifndef RCHANGEPROPERTYOPERATION_H
2
#define RCHANGEPROPERTYOPERATION_H
3
4
#include <QVariant>
5
6
#include "
RDocument.h
"
7
#include "
RExporter.h
"
8
#include "
ROperation.h
"
9
#include "
RPropertyEvent.h
"
10
#include "
RPropertyTypeId.h
"
11
#include "
RTransaction.h
"
12
20
class
RChangePropertyOperation
:
public
ROperation
{
21
public
:
22
RChangePropertyOperation
(
23
const
RPropertyTypeId
&
propertyTypeId
,
24
const
QVariant&
value
,
25
RS::EntityType
entityTypeFilter
=
RS::EntityAll
,
26
bool
undoable
=
true
27
);
28
29
RChangePropertyOperation
(
30
const
RPropertyEvent
& event,
31
bool
undoable
=
true
);
32
33
virtual
~RChangePropertyOperation
() {}
34
35
virtual
RTransaction
apply
(
RDocument
& document,
bool
preview
=
false
)
const
;
36
virtual
void
preview
(
RDocument
& document,
RExporter
& exporter)
const
;
37
38
private
:
39
RPropertyTypeId
propertyTypeId
;
40
QVariant
value
;
41
};
42
43
Q_DECLARE_METATYPE
(
RChangePropertyOperation
*)
44
45
#endif
src
operations
RChangePropertyOperation.h
Generated on Tue Jun 26 2012 18:41:08 for QCAD Application Framework by
1.8.1.1