Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgTextPropertiesInterface.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KOSVGTEXTPROPERTIESINTERFACE_H
7#define KOSVGTEXTPROPERTIESINTERFACE_H
8
9#include <QObject>
10#include <KoSvgTextProperties.h>
11#include <kritaflake_export.h>
12
19class KRITAFLAKE_EXPORT KoSvgTextPropertiesInterface : public QObject
20{
21 Q_OBJECT
22public:
23 explicit KoSvgTextPropertiesInterface(QObject *parent = nullptr): QObject(parent){}
24
30
36
45
53 virtual void setPropertiesOnSelected(KoSvgTextProperties properties, QSet<KoSvgTextProperties::PropertyId> removeProperties = QSet<KoSvgTextProperties::PropertyId>()) = 0;
54
63 virtual void setCharacterPropertiesOnSelected(KoSvgTextProperties properties, QSet<KoSvgTextProperties::PropertyId> removeProperties = QSet<KoSvgTextProperties::PropertyId>()) = 0;
64
66 virtual bool spanSelection() = 0;
67
69 virtual bool characterPropertiesEnabled() = 0;
70Q_SIGNALS:
76};
77
78
79#endif // KOSVGTEXTPROPERTIESINTERFACE_H
The KoSvgTextPropertiesInterface class.
virtual bool characterPropertiesEnabled()=0
Whether character selections are possible at all.
virtual QList< KoSvgTextProperties > getSelectedProperties()=0
getSelectedProperties
virtual QList< KoSvgTextProperties > getCharacterProperties()=0
getSelectedProperties
virtual void setPropertiesOnSelected(KoSvgTextProperties properties, QSet< KoSvgTextProperties::PropertyId > removeProperties=QSet< KoSvgTextProperties::PropertyId >())=0
setPropertiesOnSelected This sets the properties on the selection. The implementation is responsible ...
virtual bool spanSelection()=0
Whether the tool is currently selecting a set of characters instead of whole paragraphs.
virtual KoSvgTextProperties getInheritedProperties()=0
getInheritedProperties The properties that should be visible when a given property isn't available in...
void textSelectionChanged()
Emit to signal to KisTextPropertiesManager to call getSelectedProperties.
virtual void setCharacterPropertiesOnSelected(KoSvgTextProperties properties, QSet< KoSvgTextProperties::PropertyId > removeProperties=QSet< KoSvgTextProperties::PropertyId >())=0
setCharacterPropertiesOnSelected This sets the properties for a character selection instead of the fu...
KoSvgTextPropertiesInterface(QObject *parent=nullptr)