QCAD Application Framework
CAD Application Development and Automation.
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
ROperation.h
Go to the documentation of this file.
1
#ifndef ROPERATION_H
2
#define ROPERATION_H
3
4
#include "
RS.h
"
5
#include "
RTransaction.h
"
6
7
class
RDocument
;
8
class
RExporter
;
9
10
11
21
class
ROperation
{
22
public
:
23
ROperation
(
24
bool
undoable
=
true
,
25
RS::EntityType
entityTypeFilter
=
RS::EntityAll
26
) :
undoable
(
undoable
),
entityTypeFilter
(
entityTypeFilter
) {}
27
virtual
~ROperation
() {
28
}
29
37
virtual
RTransaction
apply
(
RDocument
& document,
bool
preview =
false
)
const
= 0;
38
39
RS::EntityType
getEntityTypeFilter
()
const
{
40
return
entityTypeFilter
;
41
}
42
43
protected
:
44
bool
undoable
;
45
RS::EntityType
entityTypeFilter
;
46
};
47
48
Q_DECLARE_METATYPE
(
ROperation
*)
49
50
#endif
src
core
ROperation.h
Generated on Tue Jun 26 2012 18:41:07 for QCAD Application Framework by
1.8.1.1