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
20
class
GlyphPaletteAltPopup
:
public
QFrame
21
{
22
Q_OBJECT
23
public
:
24
GlyphPaletteAltPopup
(QWidget *parent =
nullptr
);
25
~GlyphPaletteAltPopup
();
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
51
public
Q_SLOTS:
52
53
void
slotInsertRichText
(
const
int
charRow,
const
int
glyphRow = -1,
const
bool
replace =
false
,
const
bool
useCharMap =
false
);
54
Q_SIGNALS:
55
void
sigInsertRichText
(
int
charRow,
int
glyphRow,
bool
replace,
bool
useCharMap);
56
private
:
57
KisQQuickWidget
*
m_quickWidget
{0};
58
QAbstractItemModel *
m_charMapModel
{0};
59
};
60
61
#endif
// GLYPHPALETTEALTPOPUP_H
KisQQuickWidget.h
GlyphPaletteAltPopup
The GlyphPaletteAltPopup class.
Definition
GlyphPaletteAltPopup.h:21
GlyphPaletteAltPopup::m_quickWidget
KisQQuickWidget * m_quickWidget
Definition
GlyphPaletteAltPopup.h:57
GlyphPaletteAltPopup::~GlyphPaletteAltPopup
~GlyphPaletteAltPopup()
Definition
GlyphPaletteAltPopup.cpp:42
GlyphPaletteAltPopup::setModel
void setModel(QAbstractItemModel *model)
setModel Set the glyph proxy model.
Definition
GlyphPaletteAltPopup.cpp:67
GlyphPaletteAltPopup::sigInsertRichText
void sigInsertRichText(int charRow, int glyphRow, bool replace, bool useCharMap)
GlyphPaletteAltPopup::setCellSize
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...
Definition
GlyphPaletteAltPopup.cpp:62
GlyphPaletteAltPopup::setMarkup
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.
Definition
GlyphPaletteAltPopup.cpp:76
GlyphPaletteAltPopup::GlyphPaletteAltPopup
GlyphPaletteAltPopup(QWidget *parent=nullptr)
Definition
GlyphPaletteAltPopup.cpp:15
GlyphPaletteAltPopup::setRootIndex
void setRootIndex(const int index)
setRootIndex Set the charmap root index to show glyph alts for.
Definition
GlyphPaletteAltPopup.cpp:52
GlyphPaletteAltPopup::m_charMapModel
QAbstractItemModel * m_charMapModel
Definition
GlyphPaletteAltPopup.h:58
GlyphPaletteAltPopup::slotInsertRichText
void slotInsertRichText(const int charRow, const int glyphRow=-1, const bool replace=false, const bool useCharMap=false)
Definition
GlyphPaletteAltPopup.cpp:89
KisQQuickWidget
The KisQQuickWidget class.
Definition
KisQQuickWidget.h:21
QList< QString >
plugins
tools
svgtexttool
glyphpalette
GlyphPaletteAltPopup.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52