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) const;
49  virtual void preview(RDocument& document, RExporter& exporter) const;
50 };
51 
53 
54 #endif
This abstract class is an interface for all operation implementations.
Definition: ROperation.h:44
Abstract base class for all objects.
Definition: RObject.h:48
Transaction implementation.
Definition: RTransaction.h:70
virtual RTransaction apply(RDocument &document, bool preview=false) const =0
Applies this operation to selection in the given document.
#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:63
Q_DECLARE_METATYPE(RMath *)
Abstract base class for exporters.
Definition: RExporter.h:63
virtual ~RDeleteAllEntitiesOperation()
Definition: RDeleteAllEntitiesOperation.h:45
Implementation of an operation that adds entities.
Definition: RDeleteAllEntitiesOperation.h:42