|
Krita Source Code Documentation
|
The GlyphPaletteDialog class. More...
#include <GlyphPaletteDialog.h>
Inheritance diagram for GlyphPaletteDialog:Public Slots | |
| void | slotHidePopupPalette () |
| void | slotInsertRichText (const int charRow, const int glyphRow=-1, const bool replace=false, const bool useCharMap=false) |
| void | slotShowPopupPalette (const int charRow, const int x=0, const int y=0, const int cellWidth=100, const int cellHeight=100) |
Public Slots inherited from KoDialog | |
| void | delayedDestruct () |
| void | enableButton (ButtonCode id, bool state) |
| void | enableButtonApply (bool state) |
| void | enableButtonCancel (bool state) |
| void | enableButtonOk (bool state) |
| void | enableLinkedHelp (bool state) |
| bool | isDetailsWidgetVisible () const |
| virtual void | setCaption (const QString &caption) |
| virtual void | setCaption (const QString &caption, bool modified) |
| void | setDetailsWidget (QWidget *detailsWidget) |
| void | setDetailsWidgetVisible (bool visible) |
| void | setHelp (const QString &anchor, const QString &appname=QString()) |
| void | setHelpLinkText (const QString &text) |
| virtual void | setPlainCaption (const QString &caption) |
Signals | |
| void | signalInsertRichText (KoSvgTextShape *text, bool replace) |
Signals inherited from KoDialog | |
| void | aboutToShowDetails () |
| void | applyClicked () |
| void | buttonClicked (KoDialog::ButtonCode button) |
| void | cancelClicked () |
| void | closeClicked () |
| void | defaultClicked () |
| void | finished () |
| void | helpClicked () |
| void | hidden () |
| void | layoutHintChanged () |
| void | noClicked () |
| void | okClicked () |
| void | resetClicked () |
| void | tryClicked () |
| void | user1Clicked () |
| void | user2Clicked () |
| void | user3Clicked () |
| void | yesClicked () |
Public Member Functions | |
| GlyphPaletteDialog (QWidget *parent=nullptr) | |
| void | setGlyphModelFromProperties (const QPair< KoSvgTextProperties, KoSvgTextProperties > &properties, const QString &text) |
| setGlyphModelFromProperties This updates the glyph model. | |
| ~GlyphPaletteDialog () | |
Public Member Functions inherited from KoDialog | |
| QPushButton * | button (ButtonCode id) const |
| QIcon | buttonIcon (ButtonCode id) const |
| QString | buttonText (ButtonCode id) const |
| QString | buttonToolTip (ButtonCode id) const |
| QString | buttonWhatsThis (ButtonCode id) const |
| ButtonCode | defaultButton () const |
| QString | helpLinkText () const |
| void | incrementInitialSize (const QSize &size) |
| bool | isButtonEnabled (ButtonCode id) const |
| KoDialog (QWidget *parent=0, Qt::WindowFlags f=Qt::WindowFlags()) | |
| QWidget * | mainWidget () |
| QSize | minimumSizeHint () const override |
| void | setButtonFocus (ButtonCode id) |
| void | setButtonGuiItem (ButtonCode id, const KGuiItem &item) |
| void | setButtonIcon (ButtonCode id, const QIcon &icon) |
| void | setButtons (ButtonCodes buttonMask) |
| void | setButtonsOrientation (Qt::Orientation orientation) |
| void | setButtonText (ButtonCode id, const QString &text) |
| void | setButtonToolTip (ButtonCode id, const QString &text) |
| void | setButtonWhatsThis (ButtonCode id, const QString &text) |
| void | setDefaultButton (ButtonCode id) |
| void | setEscapeButton (ButtonCode id) |
| void | setInitialSize (const QSize &size) |
| void | setMainWidget (QWidget *widget) |
| void | showButton (ButtonCode id, bool state) |
| void | showButtonSeparator (bool state) |
| QSize | sizeHint () const override |
| ~KoDialog () override | |
Private Attributes | |
| GlyphPaletteAltPopup * | m_altPopup {0} |
| GlyphPaletteProxyModel * | m_charMapModel |
| QPair< KoSvgTextProperties, KoSvgTextProperties > | m_lastUsedProperties |
| KoFontGlyphModel * | m_model |
| KisQQuickWidget * | m_quickWidget {0} |
Additional Inherited Members | |
Public Types inherited from KoDialog | |
| enum | ButtonCode { None = 0x00000000 , Help = 0x00000001 , Default = 0x00000002 , Ok = 0x00000004 , Apply = 0x00000008 , Try = 0x00000010 , Cancel = 0x00000020 , Close = 0x00000040 , No = 0x00000080 , Yes = 0x00000100 , Reset = 0x00000200 , Details = 0x00000400 , User1 = 0x00001000 , User2 = 0x00002000 , User3 = 0x00004000 , NoDefault = 0x00008000 } |
| enum | ButtonPopupMode { InstantPopup = 0 , DelayedPopup = 1 } |
| enum | CaptionFlag { NoCaptionFlags = 0 , AppNameCaption = 1 , ModifiedCaption = 2 , HIGCompliantCaption = AppNameCaption } |
Static Public Member Functions inherited from KoDialog | |
| static int | groupSpacingHint () |
| static QString | makeStandardCaption (const QString &userCaption, QWidget *window=0, CaptionFlags flags=HIGCompliantCaption) |
| static int | marginHint () |
| static void | resizeLayout (QLayout *lay, int margin, int spacing) |
| static void | resizeLayout (QWidget *widget, int margin, int spacing) |
| static int | spacingHint () |
Protected Slots inherited from KoDialog | |
| virtual void | slotButtonClicked (int button) |
Protected Member Functions inherited from KoDialog | |
| void | closeEvent (QCloseEvent *e) override |
| void | hideEvent (QHideEvent *) override |
| void | keyPressEvent (QKeyEvent *) override |
| void | showEvent (QShowEvent *e) override |
The GlyphPaletteDialog class.
This dialog holds the glyph palette/character map for a given font. It can show both the alternate glyphs for the current text, and show a character map with selectable glyph alternates.
Definition at line 27 of file GlyphPaletteDialog.h.
| GlyphPaletteDialog::GlyphPaletteDialog | ( | QWidget * | parent = nullptr | ) |
Definition at line 20 of file GlyphPaletteDialog.cpp.
References connect(), m_altPopup, m_charMapModel, m_model, m_quickWidget, palette, KoDialog::setMainWidget(), GlyphPaletteAltPopup::setModel(), and slotInsertRichText().
| GlyphPaletteDialog::~GlyphPaletteDialog | ( | ) |
Definition at line 49 of file GlyphPaletteDialog.cpp.
References m_quickWidget.
| void GlyphPaletteDialog::setGlyphModelFromProperties | ( | const QPair< KoSvgTextProperties, KoSvgTextProperties > & | properties, |
| const QString & | text ) |
setGlyphModelFromProperties This updates the glyph model.
| properties | – text properties, first is non-inherited, second is inherited. |
| text | – the current text to display alternate glyphs for. |
Definition at line 55 of file GlyphPaletteDialog.cpp.
References KoFontRegistry::facesForCSSValues(), KoCSSFontInfo::families, KoSvgTextProperties::FontVariationSettingsId, KoFontGlyphModel::indexForString(), KoFontRegistry::instance(), m_altPopup, m_lastUsedProperties, m_model, m_quickWidget, KoFontGlyphModel::rowCount(), KoFontGlyphModel::setFace(), GlyphPaletteAltPopup::setMarkup(), KoCSSFontInfo::size, KoCSSFontInfo::slantMode, KoSvgTextProperties::TextLanguage, KoCSSFontInfo::weight, and KoCSSFontInfo::width.
|
signal |
|
slot |
Definition at line 145 of file GlyphPaletteDialog.cpp.
References m_altPopup.
|
slot |
Definition at line 102 of file GlyphPaletteDialog.cpp.
References KoSvgTextProperties::FontFeatureSettingsId, KoSvgTextShape::insertText(), m_altPopup, m_charMapModel, m_lastUsedProperties, m_model, m_quickWidget, KoFontGlyphModel::OpenTypeFeatures, KoSvgTextShape::setPropertiesAtPos(), KoSvgTextProperties::setProperty(), signalInsertRichText(), and slotHidePopupPalette().
|
slot |
Definition at line 135 of file GlyphPaletteDialog.cpp.
References m_altPopup, m_quickWidget, GlyphPaletteAltPopup::setCellSize(), and GlyphPaletteAltPopup::setRootIndex().
|
private |
Definition at line 53 of file GlyphPaletteDialog.h.
|
private |
Definition at line 56 of file GlyphPaletteDialog.h.
|
private |
Definition at line 54 of file GlyphPaletteDialog.h.
|
private |
Definition at line 55 of file GlyphPaletteDialog.h.
|
private |
Definition at line 52 of file GlyphPaletteDialog.h.