Krita Source Code Documentation
Loading...
Searching...
No Matches
SvgTextToolOptionsManager.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6#ifndef SVGTEXTTOOLOPTIONSOBJECT_H
7#define SVGTEXTTOOLOPTIONSOBJECT_H
8
9#include <QObject>
17class SvgTextToolOptionsManager : public QObject
18{
19 Q_OBJECT
21
22 Q_PROPERTY(int textType READ textType WRITE convertToTextType NOTIFY convertTextType)
26
27 /* Debug options */
28 Q_PROPERTY(bool showDebug READ showDebug WRITE setShowDebug NOTIFY showDebugChanged)
31
32public:
33 explicit SvgTextToolOptionsManager(QObject *parent = nullptr);
35
43 Q_ENUM(TextType)
44
47
48 /* Debug options */
49 bool showDebug() const;
50 void setShowDebug(const bool show);
51
52 bool showCharacterDebug() const;
53 void setShowCharacterDebug(const bool show);
54
55 bool showLineDebug() const;
56 void setShowLineDebug(const bool show);
57
58 /*
59 * typeType handles the conversion from textShapes
60 * to different types, like wrapped, preformatted
61 * and svg 1.1 style positioned text.
62 */
63 int textType() const;
64 void convertToTextType(const int type);
65
70 bool textPropertiesOpen() const;
71 void setTextPropertiesOpen(const bool open);
72
78 bool showTextPropertyButton() const;
79 void setShowTextPropertyButton(const bool show);
80
81 bool typeSettingMode() const;
82 void setTypeSettingMode(const bool activate);
83
84public Q_SLOTS:
89 void emitOpenTextEditor();
94 void emitGlyphPalette();
95
96Q_SIGNALS:
98 void convertTextType(int type);
101
104
105 /* Debug options */
109
111
112private:
113 struct Private;
114 QScopedPointer<Private> d;
115};
116
117#endif // SVGTEXTTOOLOPTIONSOBJECT_H
The SvgTextToolOptionsManager class.
void setTextPropertiesOpen(const bool open)
void setTypeSettingMode(const bool activate)
void setShowTextPropertyButton(const bool show)
void emitGlyphPalette()
emitGlyphPalette Emit the open glyph palette signal.
SvgTextToolOptionsModel * optionsModel
void setOptionsModel(SvgTextToolOptionsModel *model)
void openTextPropertiesDocker(bool open)
TextType
Sync with KoSvgTextShape::TextType.
void convertTextType(int type)
void setShowCharacterDebug(const bool show)
void emitOpenTextEditor()
emitOpenTextEditor Emit the open text editor signal.