Changeset View
Changeset View
Standalone View
Standalone View
plugins/textshape/TextTool.h
Show All 35 Lines | |||||
36 | 36 | | |||
37 | #include <QClipboard> | 37 | #include <QClipboard> | ||
38 | #include <QHash> | 38 | #include <QHash> | ||
39 | #include <QTextBlock> | 39 | #include <QTextBlock> | ||
40 | #include <QTextCursor> | 40 | #include <QTextCursor> | ||
41 | #include <QTimer> | 41 | #include <QTimer> | ||
42 | #include <QPointer> | 42 | #include <QPointer> | ||
43 | #include <QRectF> | 43 | #include <QRectF> | ||
44 | #include <QProxyStyle> | ||||
44 | 45 | | |||
45 | #include <TextEditingPluginContainer.h> | 46 | #include <TextEditingPluginContainer.h> | ||
46 | 47 | | |||
47 | class InsertCharacter; | 48 | class InsertCharacter; | ||
48 | class KoChangeTracker; | 49 | class KoChangeTracker; | ||
49 | class KoCharacterStyle; | 50 | class KoCharacterStyle; | ||
50 | class KoColor; | 51 | class KoColor; | ||
51 | class KoColorPopupAction; | 52 | class KoColorPopupAction; | ||
Show All 10 Lines | |||||
62 | class KUndo2Command; | 63 | class KUndo2Command; | ||
63 | 64 | | |||
64 | class QDrag; | 65 | class QDrag; | ||
65 | class QMimeData; | 66 | class QMimeData; | ||
66 | 67 | | |||
67 | class MockCanvas; | 68 | class MockCanvas; | ||
68 | class TextToolSelection; | 69 | class TextToolSelection; | ||
69 | 70 | | |||
71 | class SimpleWidgetTitleProxyStyle : public QProxyStyle | ||||
72 | { | ||||
73 | Q_OBJECT | ||||
74 | public: | ||||
75 | void drawControl( ControlElement element, const QStyleOption *option, | ||||
76 | QPainter *painter, const QWidget *widget) const override | ||||
77 | { | ||||
78 | if (element == CE_DockWidgetTitle) { | ||||
79 | qDebug() << "yeah"; | ||||
80 | } else { | ||||
81 | qDebug() << "not yeah" << element; | ||||
82 | } | ||||
83 | } | ||||
84 | }; | ||||
85 | | ||||
70 | /** | 86 | /** | ||
71 | * This is the tool for the text-shape (which is a flake-based plugin). | 87 | * This is the tool for the text-shape (which is a flake-based plugin). | ||
72 | */ | 88 | */ | ||
73 | class TextTool : public KoToolBase, public KoUndoableTool | 89 | class TextTool : public KoToolBase, public KoUndoableTool | ||
74 | { | 90 | { | ||
75 | Q_OBJECT | 91 | Q_OBJECT | ||
76 | public: | 92 | public: | ||
77 | explicit TextTool(KoCanvasBase *canvas); | 93 | explicit TextTool(KoCanvasBase *canvas); | ||
▲ Show 20 Lines • Show All 345 Lines • Show Last 20 Lines |