Changeset View
Changeset View
Standalone View
Standalone View
lib/abstractimageoperation.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 52 | { | |||
---|---|---|---|---|---|
53 | Q_OBJECT | 53 | Q_OBJECT | ||
54 | public: | 54 | public: | ||
55 | AbstractImageOperation(); | 55 | AbstractImageOperation(); | ||
56 | virtual ~AbstractImageOperation(); | 56 | virtual ~AbstractImageOperation(); | ||
57 | 57 | | |||
58 | void applyToDocument(Document::Ptr); | 58 | void applyToDocument(Document::Ptr); | ||
59 | Document::Ptr document() const; | 59 | Document::Ptr document() const; | ||
60 | 60 | | |||
61 | void finishUndoJob(); | ||||
62 | | ||||
61 | protected: | 63 | protected: | ||
62 | virtual void redo() = 0; | 64 | virtual void redo() = 0; | ||
63 | virtual void undo() | 65 | virtual void undo() | ||
64 | {} | 66 | {} | ||
65 | void setText(const QString&); | 67 | void setText(const QString&); | ||
66 | 68 | | |||
67 | /** | 69 | /** | ||
68 | * Convenience method which can be called from redo() if the operation is | 70 | * Convenience method which can be called from redo() if the operation is | ||
Show All 21 Lines |