|
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 | 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 29 of file KisTextPropertiesManager.cpp.
| KisTextPropertiesManager::~KisTextPropertiesManager | ( | ) |
Definition at line 35 of file KisTextPropertiesManager.cpp.
| void KisTextPropertiesManager::setCanvasResourceProvider | ( | KisCanvasResourceProvider * | provider | ) |
setCanvasResourceProvider set the canvas resource provider.
| provider |
Definition at line 39 of file KisTextPropertiesManager.cpp.
References d, 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 48 of file KisTextPropertiesManager.cpp.
References d, and slotInterfaceSelectionChanged().
|
privateslot |
Definition at line 79 of file KisTextPropertiesManager.cpp.
References d, KoSvgTextPropertyData::inheritedProperties, p, KoSvgTextPropertyData::spanSelection, and textDataProperties().
|
privateslot |
Definition at line 103 of file KisTextPropertiesManager.cpp.
References KoSvgTextPropertyData::commonProperties, d, KoSvgTextProperties::hasProperty(), KoSvgTextProperties::isEmpty(), KoSvgTextProperties::ownProperties(), p, and KoSvgTextPropertyData::tristate.
|
private |
Definition at line 51 of file KisTextPropertiesManager.h.