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
23
25 : QObject(parent)
26 , d(new Private())
27{
28}
29
34
39
41{
42 if (d->model == model) return;
43 d->model = model;
44 Q_EMIT optionsModelChanged();
45}
46
48{
49 return d->showDebug;
50}
51
53{
54 if (d->showDebug == show) return;
55 d->showDebug = show;
56 Q_EMIT showDebugChanged();
57}
58
60{
61 return d->showCharacterDebug;
62}
63
65{
66 if (d->showCharacterDebug == show) return;
67 d->showCharacterDebug = show;
69}
70
72{
73 return d->showLineDebug;
74}
75
77{
78 if (d->showLineDebug == show) return;
79 d->showLineDebug = show;
80 Q_EMIT showLineDebugChanged();
81}
82
84{
85 return d->textType;
86}
88{
89 if (d->textType == type) return;
90 d->textType = type;
91 Q_EMIT convertTextType(type);
92}
93
95{
96 return d->textPropertiesDockerOpen;
97}
98
100{
101 if (d->textPropertiesDockerOpen == open) return;
102 d->textPropertiesDockerOpen = open;
103 Q_EMIT openTextPropertiesDocker(open);
104}
105
107{
108 return d->showTextPropertyButton;
109}
110
112{
113 if (d->showTextPropertyButton == show) return;
114 d->showTextPropertyButton = show;
116}
117
119{
120 return d->typeSettingMode;
121}
122
124{
125 if (d->typeSettingMode == activate) return;
126 d->typeSettingMode = activate;
127 Q_EMIT typeSettingModeChanged();
128}
129
134
void setTextPropertiesOpen(const bool open)
SvgTextToolOptionsManager(QObject *parent=nullptr)
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)
void convertTextType(int type)
void setShowCharacterDebug(const bool show)
void emitOpenTextEditor()
emitOpenTextEditor Emit the open text editor signal.