|
QCAD
Open Source 2D CAD
|
Go to the documentation of this file.
20 #ifndef RMIXEDOPERATION_H
21 #define RMIXEDOPERATION_H
26 #include <QSharedPointer>
48 UseCurrentAttributes = 0x1,
53 Q_DECLARE_FLAGS(Modes, Mode)
61 QSharedPointer<RObject>
addObject(
const QSharedPointer<RObject>& obj,
62 bool useCurrentAttributes =
true,
bool forceNew=
false);
81 QList<QPair<QSharedPointer<RObject>, Modes> >
list;
86 Q_DECLARE_OPERATORS_FOR_FLAGS(RMixedOperation::Modes)
static void decCounter(const QString &id=RDEFAULT_QSTRING)
Definition: RDebug.cpp:105
Abstract base class for all objects.
Definition: RObject.h:61
virtual RTransaction apply(RDocument &document, bool preview=false)=0
Applies this operation to selection in the given document.
#define QCADOPERATIONS_EXPORT
Definition: operations_global.h:10
Q_DECLARE_METATYPE(RMath *)
Implementation of an operation that adds, modifies and deletes entities.
Definition: RMixedOperation.h:44
Deletes all selected entities of the current document.
Definition: Delete.js:11
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition: RDocument.h:72
QList< QPair< QSharedPointer< RObject >, Modes > > list
Definition: RMixedOperation.h:81
This abstract class is an interface for all operation implementations.
Definition: ROperation.h:44
Mode
Definition: RMixedOperation.h:46
void deleteObject(void obj)
Deletes the given RObject from the drawing.
Definition: simple_create.js:199
Transaction implementation.
Definition: RTransaction.h:74
virtual ~RMixedOperation()
Definition: RMixedOperation.h:57
void addObject(void obj)
Adds the given RObject to the drawing.
Definition: simple_create.js:208