20#ifndef RMIXEDOPERATION_H
21#define RMIXEDOPERATION_H
26#include <QSharedPointer>
46 UseCurrentAttributes = 0x1,
51 Q_DECLARE_FLAGS(Modes, Mode)
59 QSharedPointer<RObject>
addObject(
const QSharedPointer<RObject>& obj,
60 bool useCurrentAttributes =
true,
bool forceNew=
false);
79 QList<QPair<QSharedPointer<RObject>, Modes> >
list;
84Q_DECLARE_OPERATORS_FOR_FLAGS(RMixedOperation::Modes)
Q_DECLARE_METATYPE(RMath *)
Deletes all selected entities of the current document.
Definition Delete.js:11
static void decCounter(const QString &id=RDEFAULT_QSTRING)
Definition RDebug.cpp:131
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition RDocument.h:78
Implementation of an operation that adds, modifies and deletes entities.
Definition RMixedOperation.h:42
Mode
Definition RMixedOperation.h:44
virtual ~RMixedOperation()
Definition RMixedOperation.h:55
QList< QPair< QSharedPointer< RObject >, Modes > > list
Definition RMixedOperation.h:79
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.
Transaction implementation.
Definition RTransaction.h:73
void deleteObject(void obj)
Deletes the given RObject from the drawing.
Definition simple_create.js:216
void addObject(void obj)
Adds the given RObject to the drawing.
Definition simple_create.js:97
#define QCADOPERATIONS_EXPORT
Definition operations_global.h:10