Changeset View
Changeset View
Standalone View
Standalone View
libs/command/kis_undo_store.h
- This file was moved from libs/image/kis_undo_store.h.
Show All 16 Lines | |||||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | #ifndef KIS_UNDO_STORE_H_ | 19 | #ifndef KIS_UNDO_STORE_H_ | ||
20 | #define KIS_UNDO_STORE_H_ | 20 | #define KIS_UNDO_STORE_H_ | ||
21 | 21 | | |||
22 | #include <QString> | 22 | #include <QString> | ||
23 | #include <QVector> | 23 | #include <QVector> | ||
24 | 24 | | |||
25 | #include <kritaimage_export.h> | 25 | #include <kritacommand_export.h> | ||
26 | 26 | | |||
27 | class KUndo2Command; | 27 | class KUndo2Command; | ||
28 | class KUndo2MagicString; | 28 | class KUndo2MagicString; | ||
29 | 29 | | |||
30 | 30 | | |||
31 | /** | 31 | /** | ||
32 | * See also: http://community.kde.org/Krita/Undo_adapter_vs_Undo_store | 32 | * See also: http://community.kde.org/Krita/Undo_adapter_vs_Undo_store | ||
33 | * | 33 | * | ||
Show All 15 Lines | |||||
49 | * because it doesn't fit the contract of this class. And, more | 49 | * because it doesn't fit the contract of this class. And, more | ||
50 | * important, KisTransaction should work differently with this class. | 50 | * important, KisTransaction should work differently with this class. | ||
51 | * | 51 | * | ||
52 | * The ownership on the KisUndoStore (that substituted KisUndoAdapter | 52 | * The ownership on the KisUndoStore (that substituted KisUndoAdapter | ||
53 | * in the document's code) now belongs to the image. It means that | 53 | * in the document's code) now belongs to the image. It means that | ||
54 | * KisDocument::createUndoStore() is just a factory method, the document | 54 | * KisDocument::createUndoStore() is just a factory method, the document | ||
55 | * doesn't store the undo store itself. | 55 | * doesn't store the undo store itself. | ||
56 | */ | 56 | */ | ||
57 | class KRITAIMAGE_EXPORT KisUndoStore | 57 | class KRITACOMMAND_EXPORT KisUndoStore | ||
58 | { | 58 | { | ||
59 | public: | 59 | public: | ||
60 | KisUndoStore(); | 60 | KisUndoStore(); | ||
61 | virtual ~KisUndoStore(); | 61 | virtual ~KisUndoStore(); | ||
62 | 62 | | |||
63 | public: | 63 | public: | ||
64 | /** | 64 | /** | ||
65 | * WARNING: All these methods are not considered as thread-safe | 65 | * WARNING: All these methods are not considered as thread-safe | ||
Show All 16 Lines |