QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RDeleteObjectsOperation.h
Go to the documentation of this file.
1 #ifndef RDELETEOBJECTSOPERATION_H
2 #define RDELETEOBJECTSOPERATION_H
3 
4 #include <QList>
5 #include <QSharedPointer>
6 
7 #include "RDocument.h"
8 #include "RExporter.h"
9 #include "ROperation.h"
10 #include "RTransaction.h"
11 #include "RVector.h"
12 
13 class RObject;
14 
22 public:
23  RDeleteObjectsOperation(bool undoable = true);
24  RDeleteObjectsOperation(QList<QSharedPointer<RObject> >& list, bool undoable =
25  true);
27  }
28 
29  void deleteObject(const QSharedPointer<RObject>& o);
30 
31  virtual RTransaction apply(RDocument& document, bool preview = false) const;
32  virtual void preview(RDocument& document, RExporter& exporter) const;
33 
34 private:
35  QList<QSharedPointer<RObject> > list;
36 };
37 
39 
40 #endif