|
Krita Source Code Documentation
|
The KisTextPropertyManager class. More...
#include <KisTextPropertiesManager.h>
Inheritance diagram for KisTextPropertiesManager:Classes | |
| struct | Private |
Public Member Functions | |
| KisTextPropertiesManager (QObject *parent=nullptr) | |
| void | setCanvasResourceProvider (KisCanvasResourceProvider *provider) |
| setCanvasResourceProvider set the canvas resource provider. | |
| void | setTextPropertiesInterface (KoSvgTextPropertiesInterface *interface) |
| setTextPropertiesInterface set the text properties interface. This should be done on tool activation. On tool deactivation this should be set to a nullptr, so that signals from the text properties manager don't get sent to the deactivated tool if a tool that does not have a text properties interface is currently active. | |
| ~KisTextPropertiesManager () | |
Private Slots | |
| void | slotCharacterInterfaceSelectionChanged () |
| void | slotCharacterPropertiesChanged () |
| void | slotInterfaceSelectionChanged () |
| void | slotTextPropertiesChanged () |
Private Attributes | |
| QScopedPointer< Private > | d |
The KisTextPropertyManager class.
This class handles taking text property data from the currently selected text objects and then setting it on the resource provider.
Definition at line 22 of file KisTextPropertiesManager.h.
| KisTextPropertiesManager::KisTextPropertiesManager | ( | QObject * | parent = nullptr | ) |
Definition at line 30 of file KisTextPropertiesManager.cpp.
| KisTextPropertiesManager::~KisTextPropertiesManager | ( | ) |
Definition at line 36 of file KisTextPropertiesManager.cpp.
| void KisTextPropertiesManager::setCanvasResourceProvider | ( | KisCanvasResourceProvider * | provider | ) |
setCanvasResourceProvider set the canvas resource provider.
| provider |
Definition at line 40 of file KisTextPropertiesManager.cpp.
References d, slotCharacterPropertiesChanged(), and slotTextPropertiesChanged().
| void KisTextPropertiesManager::setTextPropertiesInterface | ( | KoSvgTextPropertiesInterface * | interface | ) |
setTextPropertiesInterface set the text properties interface. This should be done on tool activation. On tool deactivation this should be set to a nullptr, so that signals from the text properties manager don't get sent to the deactivated tool if a tool that does not have a text properties interface is currently active.
| interface | – the tool's text property interface. |
Definition at line 50 of file KisTextPropertiesManager.cpp.
References d, slotCharacterInterfaceSelectionChanged(), and slotInterfaceSelectionChanged().
|
privateslot |
Definition at line 112 of file KisTextPropertiesManager.cpp.
References d, KoSvgTextPropertyData::enabled, getTristate(), KoSvgTextPropertyData::inheritedProperties, KoSvgTextPropertyData::spanSelection, and textDataProperties().
|
privateslot |
Definition at line 157 of file KisTextPropertiesManager.cpp.
References KoSvgTextPropertyData::commonProperties, d, KoSvgTextProperties::isEmpty(), KoSvgTextProperties::ownProperties(), and removedProps().
|
privateslot |
Definition at line 95 of file KisTextPropertiesManager.cpp.
References d, KoSvgTextPropertyData::enabled, getTristate(), KoSvgTextPropertyData::inheritedProperties, and textDataProperties().
|
privateslot |
Definition at line 143 of file KisTextPropertiesManager.cpp.
References KoSvgTextPropertyData::commonProperties, d, KoSvgTextProperties::isEmpty(), KoSvgTextProperties::ownProperties(), and removedProps().
|
private |
Definition at line 53 of file KisTextPropertiesManager.h.