Krita Source Code Documentation
Loading...
Searching...
No Matches
SvgTextToolOptionsManager Class Reference

The SvgTextToolOptionsManager class. More...

#include <SvgTextToolOptionsManager.h>

+ Inheritance diagram for SvgTextToolOptionsManager:

Classes

struct  Private
 

Public Types

enum  TextType { PrePositionedText = 0 , PreformattedText , InlineWrap , TextInShape }
 Sync with KoSvgTextShape::TextType. More...
 

Public Slots

void emitGlyphPalette ()
 emitGlyphPalette Emit the open glyph palette signal.
 
void emitOpenTextEditor ()
 emitOpenTextEditor Emit the open text editor signal.
 

Signals

void convertTextType (int type)
 
void openGlyphPalette ()
 
void openTextEditor ()
 
void openTextPropertiesDocker (bool open)
 
void optionsModelChanged ()
 
void showDebugChanged ()
 
void showDebugCharacterChanged ()
 
void showLineDebugChanged ()
 
void showTextPropertyButtonChanged ()
 
void typeSettingModeChanged ()
 

Public Member Functions

void convertToTextType (const int type)
 
SvgTextToolOptionsModeloptionsModel () const
 
void setOptionsModel (SvgTextToolOptionsModel *model)
 
void setShowCharacterDebug (const bool show)
 
void setShowDebug (const bool show)
 
void setShowLineDebug (const bool show)
 
void setShowTextPropertyButton (const bool show)
 
void setTextPropertiesOpen (const bool open)
 
void setTypeSettingMode (const bool activate)
 
bool showCharacterDebug () const
 
bool showDebug () const
 
bool showLineDebug () const
 
bool showTextPropertyButton () const
 showTextPropertyButton Whether to show the open text properties button. It is hidden when somehow that docker is missing.
 
 SvgTextToolOptionsManager (QObject *parent=nullptr)
 
bool textPropertiesOpen () const
 textPropertiesOpen
 
int textType () const
 
bool typeSettingMode () const
 
 ~SvgTextToolOptionsManager ()
 

Properties

SvgTextToolOptionsModeloptionsModel
 
bool showCharacterDebug
 
bool showDebug
 
bool showLineDebug
 
bool showTextPropertyButton
 
bool textPropertiesOpen
 
int textType
 
bool typeSettingMode
 

Private Attributes

QScopedPointer< Privated
 

Detailed Description

The SvgTextToolOptionsManager class.

Class that communicates state changes and signals between SvgTextTool.cpp and the SvgTextToolOptions.qml file.

Definition at line 17 of file SvgTextToolOptionsManager.h.

Member Enumeration Documentation

◆ TextType

Constructor & Destructor Documentation

◆ SvgTextToolOptionsManager()

SvgTextToolOptionsManager::SvgTextToolOptionsManager ( QObject * parent = nullptr)
explicit

Definition at line 24 of file SvgTextToolOptionsManager.cpp.

25 : QObject(parent)
26 , d(new Private())
27{
28}

◆ ~SvgTextToolOptionsManager()

SvgTextToolOptionsManager::~SvgTextToolOptionsManager ( )

Definition at line 30 of file SvgTextToolOptionsManager.cpp.

31{
32
33}

Member Function Documentation

◆ convertTextType

void SvgTextToolOptionsManager::convertTextType ( int type)
signal

◆ convertToTextType()

void SvgTextToolOptionsManager::convertToTextType ( const int type)

Definition at line 87 of file SvgTextToolOptionsManager.cpp.

88{
89 if (d->textType == type) return;
90 d->textType = type;
91 Q_EMIT convertTextType(type);
92}
void convertTextType(int type)

References convertTextType(), and d.

◆ emitGlyphPalette

void SvgTextToolOptionsManager::emitGlyphPalette ( )
slot

emitGlyphPalette Emit the open glyph palette signal.

Definition at line 135 of file SvgTextToolOptionsManager.cpp.

136{
137 Q_EMIT openGlyphPalette();
138}

References openGlyphPalette().

◆ emitOpenTextEditor

void SvgTextToolOptionsManager::emitOpenTextEditor ( )
slot

emitOpenTextEditor Emit the open text editor signal.

Definition at line 130 of file SvgTextToolOptionsManager.cpp.

131{
132 Q_EMIT openTextEditor();
133}

References openTextEditor().

◆ openGlyphPalette

void SvgTextToolOptionsManager::openGlyphPalette ( )
signal

◆ openTextEditor

void SvgTextToolOptionsManager::openTextEditor ( )
signal

◆ openTextPropertiesDocker

void SvgTextToolOptionsManager::openTextPropertiesDocker ( bool open)
signal

◆ optionsModel()

SvgTextToolOptionsModel * SvgTextToolOptionsManager::optionsModel ( ) const

Definition at line 35 of file SvgTextToolOptionsManager.cpp.

36{
37 return d->model;
38}

References d.

◆ optionsModelChanged

void SvgTextToolOptionsManager::optionsModelChanged ( )
signal

◆ setOptionsModel()

void SvgTextToolOptionsManager::setOptionsModel ( SvgTextToolOptionsModel * model)

Definition at line 40 of file SvgTextToolOptionsManager.cpp.

41{
42 if (d->model == model) return;
43 d->model = model;
44 Q_EMIT optionsModelChanged();
45}

References d, and optionsModelChanged().

◆ setShowCharacterDebug()

void SvgTextToolOptionsManager::setShowCharacterDebug ( const bool show)

Definition at line 64 of file SvgTextToolOptionsManager.cpp.

65{
66 if (d->showCharacterDebug == show) return;
67 d->showCharacterDebug = show;
69}

References d, and showDebugCharacterChanged().

◆ setShowDebug()

void SvgTextToolOptionsManager::setShowDebug ( const bool show)

Definition at line 52 of file SvgTextToolOptionsManager.cpp.

53{
54 if (d->showDebug == show) return;
55 d->showDebug = show;
56 Q_EMIT showDebugChanged();
57}

References d, and showDebugChanged().

◆ setShowLineDebug()

void SvgTextToolOptionsManager::setShowLineDebug ( const bool show)

Definition at line 76 of file SvgTextToolOptionsManager.cpp.

77{
78 if (d->showLineDebug == show) return;
79 d->showLineDebug = show;
80 Q_EMIT showLineDebugChanged();
81}

References d, and showLineDebugChanged().

◆ setShowTextPropertyButton()

void SvgTextToolOptionsManager::setShowTextPropertyButton ( const bool show)

Definition at line 111 of file SvgTextToolOptionsManager.cpp.

112{
113 if (d->showTextPropertyButton == show) return;
114 d->showTextPropertyButton = show;
116}

References d, and showTextPropertyButtonChanged().

◆ setTextPropertiesOpen()

void SvgTextToolOptionsManager::setTextPropertiesOpen ( const bool open)

Definition at line 99 of file SvgTextToolOptionsManager.cpp.

100{
101 if (d->textPropertiesDockerOpen == open) return;
102 d->textPropertiesDockerOpen = open;
103 Q_EMIT openTextPropertiesDocker(open);
104}
void openTextPropertiesDocker(bool open)
QAction * open(const QObject *recvr, const char *slot, QObject *parent)

References d, and openTextPropertiesDocker().

◆ setTypeSettingMode()

void SvgTextToolOptionsManager::setTypeSettingMode ( const bool activate)

Definition at line 123 of file SvgTextToolOptionsManager.cpp.

124{
125 if (d->typeSettingMode == activate) return;
126 d->typeSettingMode = activate;
127 Q_EMIT typeSettingModeChanged();
128}

References d, and typeSettingModeChanged().

◆ showCharacterDebug()

bool SvgTextToolOptionsManager::showCharacterDebug ( ) const

Definition at line 59 of file SvgTextToolOptionsManager.cpp.

60{
61 return d->showCharacterDebug;
62}

References d.

◆ showDebug()

bool SvgTextToolOptionsManager::showDebug ( ) const

Definition at line 47 of file SvgTextToolOptionsManager.cpp.

48{
49 return d->showDebug;
50}

References d.

◆ showDebugChanged

void SvgTextToolOptionsManager::showDebugChanged ( )
signal

◆ showDebugCharacterChanged

void SvgTextToolOptionsManager::showDebugCharacterChanged ( )
signal

◆ showLineDebug()

bool SvgTextToolOptionsManager::showLineDebug ( ) const

Definition at line 71 of file SvgTextToolOptionsManager.cpp.

72{
73 return d->showLineDebug;
74}

References d.

◆ showLineDebugChanged

void SvgTextToolOptionsManager::showLineDebugChanged ( )
signal

◆ showTextPropertyButton()

bool SvgTextToolOptionsManager::showTextPropertyButton ( ) const

showTextPropertyButton Whether to show the open text properties button. It is hidden when somehow that docker is missing.

Definition at line 106 of file SvgTextToolOptionsManager.cpp.

107{
108 return d->showTextPropertyButton;
109}

References d.

◆ showTextPropertyButtonChanged

void SvgTextToolOptionsManager::showTextPropertyButtonChanged ( )
signal

◆ textPropertiesOpen()

bool SvgTextToolOptionsManager::textPropertiesOpen ( ) const

textPropertiesOpen

Returns
whether the text properties docker is open.

Definition at line 94 of file SvgTextToolOptionsManager.cpp.

95{
96 return d->textPropertiesDockerOpen;
97}

References d.

◆ textType()

int SvgTextToolOptionsManager::textType ( ) const

Definition at line 83 of file SvgTextToolOptionsManager.cpp.

84{
85 return d->textType;
86}

References d.

◆ typeSettingMode()

bool SvgTextToolOptionsManager::typeSettingMode ( ) const

Definition at line 118 of file SvgTextToolOptionsManager.cpp.

119{
120 return d->typeSettingMode;
121}

References d.

◆ typeSettingModeChanged

void SvgTextToolOptionsManager::typeSettingModeChanged ( )
signal

Member Data Documentation

◆ d

QScopedPointer<Private> SvgTextToolOptionsManager::d
private

Definition at line 114 of file SvgTextToolOptionsManager.h.

Property Documentation

◆ optionsModel

SvgTextToolOptionsModel * SvgTextToolOptionsManager::optionsModel
readwrite

Definition at line 20 of file SvgTextToolOptionsManager.h.

◆ showCharacterDebug

bool SvgTextToolOptionsManager::showCharacterDebug
readwrite

Definition at line 29 of file SvgTextToolOptionsManager.h.

◆ showDebug

bool SvgTextToolOptionsManager::showDebug
readwrite

Definition at line 28 of file SvgTextToolOptionsManager.h.

◆ showLineDebug

bool SvgTextToolOptionsManager::showLineDebug
readwrite

Definition at line 30 of file SvgTextToolOptionsManager.h.

◆ showTextPropertyButton

bool SvgTextToolOptionsManager::showTextPropertyButton
readwrite

Definition at line 24 of file SvgTextToolOptionsManager.h.

◆ textPropertiesOpen

bool SvgTextToolOptionsManager::textPropertiesOpen
readwrite

Definition at line 23 of file SvgTextToolOptionsManager.h.

◆ textType

int SvgTextToolOptionsManager::textType
readwrite

Definition at line 22 of file SvgTextToolOptionsManager.h.

◆ typeSettingMode

bool SvgTextToolOptionsManager::typeSettingMode
readwrite

Definition at line 25 of file SvgTextToolOptionsManager.h.


The documentation for this class was generated from the following files: