Krita Source Code Documentation
Loading...
Searching...
No Matches
GlyphPaletteAltPopup.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef GLYPHPALETTEALTPOPUP_H
7#define GLYPHPALETTEALTPOPUP_H
8
9#include <QFrame>
10#include <KisQQuickWidget.h>
11#include <QAbstractItemModel>
12
20class GlyphPaletteAltPopup : public QFrame
21{
22 Q_OBJECT
23public:
24 GlyphPaletteAltPopup(QWidget *parent = nullptr);
26
31 void setRootIndex(const int index);
38 void setCellSize(const int width, const int height);
43 void setModel(QAbstractItemModel *model);
44
49 void setMarkup(const QStringList &families, const int size, const int weight, const int width, const QFont::Style style, const QVariantMap &axes, const QString &language);
50
51public Q_SLOTS:
52
53 void slotInsertRichText(const int charRow, const int glyphRow = -1, const bool replace = false, const bool useCharMap = false);
54Q_SIGNALS:
55 void sigInsertRichText(int charRow, int glyphRow, bool replace, bool useCharMap);
56private:
58 QAbstractItemModel *m_charMapModel {0};
59};
60
61#endif // GLYPHPALETTEALTPOPUP_H
The GlyphPaletteAltPopup class.
KisQQuickWidget * m_quickWidget
void setModel(QAbstractItemModel *model)
setModel Set the glyph proxy model.
void sigInsertRichText(int charRow, int glyphRow, bool replace, bool useCharMap)
void setCellSize(const int width, const int height)
setCellSize Set the size of the pop-up relative to its cellsize. The popup is 3 cells wide and 4 high...
void setMarkup(const QStringList &families, const int size, const int weight, const int width, const QFont::Style style, const QVariantMap &axes, const QString &language)
setMarkup Set the css font markup to be used inside the palette.
GlyphPaletteAltPopup(QWidget *parent=nullptr)
void setRootIndex(const int index)
setRootIndex Set the charmap root index to show glyph alts for.
QAbstractItemModel * m_charMapModel
void slotInsertRichText(const int charRow, const int glyphRow=-1, const bool replace=false, const bool useCharMap=false)
The KisQQuickWidget class.