QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RChangePropertyOperation.h
Go to the documentation of this file.
1
20#ifndef RCHANGEPROPERTYOPERATION_H
21#define RCHANGEPROPERTYOPERATION_H
22
23#include "operations_global.h"
24
25#include <QVariant>
26
27#include "ROperation.h"
28#include "RPropertyTypeId.h"
29
30class RDocument;
31class RObject;
32class RPropertyEvent;
33class RTransaction;
34
43public:
45 const RPropertyTypeId& propertyTypeId,
46 const QVariant& value,
47 RS::EntityType entityTypeFilter = RS::EntityAll,
48 bool undoable = true
49 );
50
52 const RPropertyEvent& event,
53 bool undoable = true);
54
56
57 virtual RTransaction apply(RDocument& document, bool preview = false);
58
59private:
61 QVariant value;
62};
63
65
66#endif
Q_DECLARE_METATYPE(RMath *)
Implementation of an operation that changes a given property to a given value for the selection in a ...
Definition RChangePropertyOperation.h:42
virtual ~RChangePropertyOperation()
Definition RChangePropertyOperation.h:55
QVariant value
Definition RChangePropertyOperation.h:61
RPropertyTypeId propertyTypeId
Definition RChangePropertyOperation.h:60
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition RDocument.h:78
Abstract base class for all objects.
Definition RObject.h:64
This abstract class is an interface for all operation implementations.
Definition ROperation.h:45
virtual RTransaction apply(RDocument &document, bool preview=false)=0
Applies this operation to selection in the given document.
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RPropertyEvent.h:40
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RPropertyTypeId.h:54
EntityType
Entity types used for property handling / filtering.
Definition RS.h:227
@ EntityAll
All entities (for filters)
Definition RS.h:241
Transaction implementation.
Definition RTransaction.h:73
#define QCADOPERATIONS_EXPORT
Definition operations_global.h:10