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 ()
 

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)
 
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
 
 ~SvgTextToolOptionsManager ()
 

Properties

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

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 22 of file SvgTextToolOptionsManager.cpp.

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

◆ ~SvgTextToolOptionsManager()

SvgTextToolOptionsManager::~SvgTextToolOptionsManager ( )

Definition at line 29 of file SvgTextToolOptionsManager.cpp.

30{
31
32}

Member Function Documentation

◆ convertTextType

void SvgTextToolOptionsManager::convertTextType ( int type)
signal

◆ convertToTextType()

void SvgTextToolOptionsManager::convertToTextType ( const int type)

Definition at line 86 of file SvgTextToolOptionsManager.cpp.

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

References convertTextType(), and d.

◆ emitGlyphPalette

void SvgTextToolOptionsManager::emitGlyphPalette ( )
slot

emitGlyphPalette Emit the open glyph palette signal.

Definition at line 122 of file SvgTextToolOptionsManager.cpp.

123{
124 Q_EMIT openGlyphPalette();
125}

References openGlyphPalette().

◆ emitOpenTextEditor

void SvgTextToolOptionsManager::emitOpenTextEditor ( )
slot

emitOpenTextEditor Emit the open text editor signal.

Definition at line 117 of file SvgTextToolOptionsManager.cpp.

118{
119 Q_EMIT openTextEditor();
120}

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 34 of file SvgTextToolOptionsManager.cpp.

35{
36 return d->model;
37}

References d.

◆ optionsModelChanged

void SvgTextToolOptionsManager::optionsModelChanged ( )
signal

◆ setOptionsModel()

void SvgTextToolOptionsManager::setOptionsModel ( SvgTextToolOptionsModel * model)

Definition at line 39 of file SvgTextToolOptionsManager.cpp.

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

References d, and optionsModelChanged().

◆ setShowCharacterDebug()

void SvgTextToolOptionsManager::setShowCharacterDebug ( const bool show)

Definition at line 63 of file SvgTextToolOptionsManager.cpp.

64{
65 if (d->showCharacterDebug == show) return;
66 d->showCharacterDebug = show;
68}

References d, and showDebugCharacterChanged().

◆ setShowDebug()

void SvgTextToolOptionsManager::setShowDebug ( const bool show)

Definition at line 51 of file SvgTextToolOptionsManager.cpp.

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

References d, and showDebugChanged().

◆ setShowLineDebug()

void SvgTextToolOptionsManager::setShowLineDebug ( const bool show)

Definition at line 75 of file SvgTextToolOptionsManager.cpp.

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

References d, and showLineDebugChanged().

◆ setShowTextPropertyButton()

void SvgTextToolOptionsManager::setShowTextPropertyButton ( const bool show)

Definition at line 110 of file SvgTextToolOptionsManager.cpp.

111{
112 if (d->showTextPropertyButton == show) return;
113 d->showTextPropertyButton = show;
115}

References d, and showTextPropertyButtonChanged().

◆ setTextPropertiesOpen()

void SvgTextToolOptionsManager::setTextPropertiesOpen ( const bool open)

Definition at line 98 of file SvgTextToolOptionsManager.cpp.

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

References d, and openTextPropertiesDocker().

◆ showCharacterDebug()

bool SvgTextToolOptionsManager::showCharacterDebug ( ) const

Definition at line 58 of file SvgTextToolOptionsManager.cpp.

59{
60 return d->showCharacterDebug;
61}

References d.

◆ showDebug()

bool SvgTextToolOptionsManager::showDebug ( ) const

Definition at line 46 of file SvgTextToolOptionsManager.cpp.

47{
48 return d->showDebug;
49}

References d.

◆ showDebugChanged

void SvgTextToolOptionsManager::showDebugChanged ( )
signal

◆ showDebugCharacterChanged

void SvgTextToolOptionsManager::showDebugCharacterChanged ( )
signal

◆ showLineDebug()

bool SvgTextToolOptionsManager::showLineDebug ( ) const

Definition at line 70 of file SvgTextToolOptionsManager.cpp.

71{
72 return d->showLineDebug;
73}

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 105 of file SvgTextToolOptionsManager.cpp.

106{
107 return d->showTextPropertyButton;
108}

References d.

◆ showTextPropertyButtonChanged

void SvgTextToolOptionsManager::showTextPropertyButtonChanged ( )
signal

◆ textPropertiesOpen()

bool SvgTextToolOptionsManager::textPropertiesOpen ( ) const

textPropertiesOpen

Returns
whether the text properties docker is open.

Definition at line 93 of file SvgTextToolOptionsManager.cpp.

94{
95 return d->textPropertiesDockerOpen;
96}

References d.

◆ textType()

int SvgTextToolOptionsManager::textType ( ) const

Definition at line 82 of file SvgTextToolOptionsManager.cpp.

83{
84 return d->textType;
85}

References d.

Member Data Documentation

◆ d

QScopedPointer<Private> SvgTextToolOptionsManager::d
private

Definition at line 108 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 28 of file SvgTextToolOptionsManager.h.

◆ showDebug

bool SvgTextToolOptionsManager::showDebug
readwrite

Definition at line 27 of file SvgTextToolOptionsManager.h.

◆ showLineDebug

bool SvgTextToolOptionsManager::showLineDebug
readwrite

Definition at line 29 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.


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