Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/*
* SPDX-FileCopyrightText: 2025 Wolthera van Hövell tot Westerflier <[email protected]>
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef SVGTEXTTOOLOPTIONSMODEL_H
#define SVGTEXTTOOLOPTIONSMODEL_H
#include <QObject>
#include <lager/cursor.hpp>
#include <lager/state.hpp>
#include <lager/extra/qt.hpp>
#include <SvgTextToolOptionsData.h>
class SvgTextToolOptionsModel : public QObject
{
Q_OBJECT
public:
SvgTextToolOptionsModel(const QString &configName = "SvgTextTool", lager::cursor<SvgTextToolOptionsData> _data = lager::make_state(SvgTextToolOptionsData(), lager::automatic_tag{}), QObject *parent = nullptr);
lager::cursor<SvgTextToolOptionsData> data;
LAGER_QT_CURSOR(bool, useCurrentTextProperties);
LAGER_QT_CURSOR(QString, cssStylePresetName);
LAGER_QT_CURSOR(bool, useVisualBidiCursor);
LAGER_QT_CURSOR(bool, pasteRichtTextByDefault);
void setConfigName(const QString &configName);
public Q_SLOTS:
void saveOptions();
void loadOptions();
void resetOptions();
Q_SIGNALS:
void optionsChanged();
private:
QString m_configName;
};
#endif // SVGTEXTTOOLOPTIONSMODEL_H