Changeset View
Changeset View
Standalone View
Standalone View
libs/flake/KoToolBase_p.h
Show All 35 Lines | |||||
36 | 36 | | |||
37 | class KoToolBasePrivate | 37 | class KoToolBasePrivate | ||
38 | { | 38 | { | ||
39 | public: | 39 | public: | ||
40 | KoToolBasePrivate(KoToolBase *qq, KoCanvasBase *canvas_) | 40 | KoToolBasePrivate(KoToolBase *qq, KoCanvasBase *canvas_) | ||
41 | : currentCursor(Qt::ArrowCursor), | 41 | : currentCursor(Qt::ArrowCursor), | ||
42 | q(qq), | 42 | q(qq), | ||
43 | canvas(canvas_), | 43 | canvas(canvas_), | ||
44 | isInTextMode(false) | 44 | isInTextMode(false), | ||
45 | isActivated(false) | ||||
45 | { | 46 | { | ||
46 | } | 47 | } | ||
47 | 48 | | |||
48 | ~KoToolBasePrivate() | 49 | ~KoToolBasePrivate() | ||
49 | { | 50 | { | ||
50 | Q_FOREACH (QPointer<QWidget> optionWidget, optionWidgets) { | 51 | Q_FOREACH (QPointer<QWidget> optionWidget, optionWidgets) { | ||
51 | if (optionWidget) { | 52 | if (optionWidget) { | ||
52 | optionWidget->setParent(0); | 53 | optionWidget->setParent(0); | ||
Show All 20 Lines | 62 | if (canvas) { // in the case of KoToolManagers dummytool it can be zero :( | |||
73 | } | 74 | } | ||
74 | } | 75 | } | ||
75 | } | 76 | } | ||
76 | 77 | | |||
77 | QList<QPointer<QWidget> > optionWidgets; ///< the optionwidgets associated with this tool | 78 | QList<QPointer<QWidget> > optionWidgets; ///< the optionwidgets associated with this tool | ||
78 | QCursor currentCursor; | 79 | QCursor currentCursor; | ||
79 | QHash<QString, QAction *> actions; | 80 | QHash<QString, QAction *> actions; | ||
80 | QString toolId; | 81 | QString toolId; | ||
81 | QList<QAction*> popupActionList; | | |||
82 | KoToolBase *q; | 82 | KoToolBase *q; | ||
83 | KoCanvasBase *canvas; ///< the canvas interface this tool will work for. | 83 | KoCanvasBase *canvas; ///< the canvas interface this tool will work for. | ||
84 | bool isInTextMode; | 84 | bool isInTextMode; | ||
85 | bool maskSyntheticEvents{false}; ///< Whether this tool masks synthetic events | 85 | bool maskSyntheticEvents{false}; ///< Whether this tool masks synthetic events | ||
86 | bool isActivated; | ||||
86 | }; | 87 | }; | ||
87 | 88 | | |||
88 | #endif | 89 | #endif |