QCAD
Open Source 2D CAD
RDeleteAllEntitiesOperation.h
Go to the documentation of this file.
1 
20 #ifndef RDELETEALLENTITIESOBJECTSOPERATION_H
21 #define RDELETEALLENTITIESOBJECTSOPERATION_H
22 
23 #include "operations_global.h"
24 
25 #include <QList>
26 #include <QSharedPointer>
27 
28 #include "RDocument.h"
29 #include "RExporter.h"
30 #include "ROperation.h"
31 #include "RTransaction.h"
32 #include "RVector.h"
33 
34 class RObject;
35 
43 public:
44  RDeleteAllEntitiesOperation(bool undoable = true);
46  }
47 
48  virtual RTransaction apply(RDocument& document, bool preview = false);
49 };
50 
52 
53 #endif
This abstract class is an interface for all operation implementations.
Definition: ROperation.h:44
Abstract base class for all objects.
Definition: RObject.h:61
Transaction implementation.
Definition: RTransaction.h:74
#define QCADOPERATIONS_EXPORT
Definition: operations_global.h:10
A graphics document contains and owns entities, layers, user coordinate systems, variables, block definitions, etc.
Definition: RDocument.h:67
Q_DECLARE_METATYPE(RMath *)
virtual ~RDeleteAllEntitiesOperation()
Definition: RDeleteAllEntitiesOperation.h:45
virtual RTransaction apply(RDocument &document, bool preview=false)=0
Applies this operation to selection in the given document.
Implementation of an operation that adds entities.
Definition: RDeleteAllEntitiesOperation.h:42