Krita Source Code Documentation
Loading...
Searching...
No Matches
SvgTextToolOptionsManager.cpp
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 */
7
21
23 : QObject(parent)
24 , d(new Private)
25{
26
27}
28
33
38
40{
41 if (d->model == model) return;
42 d->model = model;
43 Q_EMIT optionsModelChanged();
44}
45
47{
48 return d->showDebug;
49}
50
52{
53 if (d->showDebug == show) return;
54 d->showDebug = show;
55 Q_EMIT showDebugChanged();
56}
57
59{
60 return d->showCharacterDebug;
61}
62
64{
65 if (d->showCharacterDebug == show) return;
66 d->showCharacterDebug = show;
68}
69
71{
72 return d->showLineDebug;
73}
74
76{
77 if (d->showLineDebug == show) return;
78 d->showLineDebug = show;
79 Q_EMIT showLineDebugChanged();
80}
81
83{
84 return d->textType;
85}
87{
88 if (d->textType == type) return;
89 d->textType = type;
90 Q_EMIT convertTextType(type);
91}
92
94{
95 return d->textPropertiesDockerOpen;
96}
97
99{
100 if (d->textPropertiesDockerOpen == open) return;
101 d->textPropertiesDockerOpen = open;
102 Q_EMIT openTextPropertiesDocker(open);
103}
104
106{
107 return d->showTextPropertyButton;
108}
109
111{
112 if (d->showTextPropertyButton == show) return;
113 d->showTextPropertyButton = show;
115}
116
121
void setTextPropertiesOpen(const bool open)
SvgTextToolOptionsManager(QObject *parent=nullptr)
void setShowTextPropertyButton(const bool show)
void emitGlyphPalette()
emitGlyphPalette Emit the open glyph palette signal.
SvgTextToolOptionsModel * optionsModel
void setOptionsModel(SvgTextToolOptionsModel *model)
void openTextPropertiesDocker(bool open)
void convertTextType(int type)
void setShowCharacterDebug(const bool show)
void emitOpenTextEditor()
emitOpenTextEditor Emit the open text editor signal.