Changeset View
Changeset View
Standalone View
Standalone View
plugins/formulashape/KoFormulaTool.h
Show All 20 Lines | |||||
21 | #ifndef KOFORMULATOOL_H | 21 | #ifndef KOFORMULATOOL_H | ||
22 | #define KOFORMULATOOL_H | 22 | #define KOFORMULATOOL_H | ||
23 | 23 | | |||
24 | #include <KoToolBase.h> | 24 | #include <KoToolBase.h> | ||
25 | 25 | | |||
26 | class KoFormulaShape; | 26 | class KoFormulaShape; | ||
27 | class FormulaEditor; | 27 | class FormulaEditor; | ||
28 | class FormulaCommand; | 28 | class FormulaCommand; | ||
29 | class QSignalMapper; | 29 | | ||
30 | struct TemplateAction { | ||||
31 | QAction *action; | ||||
32 | QString data; | ||||
33 | }; | ||||
30 | 34 | | |||
31 | /** | 35 | /** | ||
32 | * @short The flake tool for a formula | 36 | * @short The flake tool for a formula | ||
33 | * @author Martin Pfeiffer <hubipete@gmx.net> | 37 | * @author Martin Pfeiffer <hubipete@gmx.net> | ||
34 | */ | 38 | */ | ||
35 | class KoFormulaTool : public KoToolBase { | 39 | class KoFormulaTool : public KoToolBase { | ||
36 | Q_OBJECT | 40 | Q_OBJECT | ||
37 | public: | 41 | public: | ||
▲ Show 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | 112 | private: | |||
117 | /// The FormulaShape the tool is manipulating | 121 | /// The FormulaShape the tool is manipulating | ||
118 | KoFormulaShape* m_formulaShape; | 122 | KoFormulaShape* m_formulaShape; | ||
119 | 123 | | |||
120 | /// The FormulaEditor the tool uses to move around in the formula | 124 | /// The FormulaEditor the tool uses to move around in the formula | ||
121 | FormulaEditor* m_formulaEditor; | 125 | FormulaEditor* m_formulaEditor; | ||
122 | 126 | | |||
123 | QList<FormulaEditor*> m_cursorList; | 127 | QList<FormulaEditor*> m_cursorList; | ||
124 | 128 | | |||
125 | QSignalMapper* m_signalMapper; | 129 | std::vector<TemplateAction> m_templateActions; | ||
126 | }; | 130 | }; | ||
127 | 131 | | |||
128 | #endif | 132 | #endif |