|
Krita Source Code Documentation
|
The SvgTextShortCuts class. More...
#include <SvgTextShortCuts.h>
Static Public Member Functions | |
| static bool | actionEnabled (QAction *action, const QList< KoSvgTextProperties > currentProperties) |
| static bool | configureAction (QAction *action, const QString &name) |
| static KoSvgTextProperties | getModifiedProperties (const QAction *action, QList< KoSvgTextProperties > currentProperties) |
| static QStringList | possibleActions () |
The SvgTextShortCuts class.
Class to handle text property shortcuts generically.
Many text property shortcuts are about toggling/enabling a single property. Given there's a huge amount of them, it thus makes sense to generalize the actions by adding a special QVariant to them and using that QVariant to determine which property adjustment is at play.
Definition at line 24 of file SvgTextShortCuts.h.
|
static |
Definition at line 188 of file SvgTextShortCuts.cpp.
References KoSvgText::AutoValue::customValue, KoSvgText::AutoValue::isAuto, KoSvgText::AutoLengthPercentage::length, KoSvgText::LineHeightInfo::length, SvgTextShortcutInfo::propertyId, SvgTextShortcutInfo::Set, KoSvgText::CssFontStyleData::style, SvgTextShortcutInfo::testValue, KoSvgTextProperties::TextDecorationLineId, SvgTextShortcutInfo::Toggle, SvgTextShortcutInfo::type, KoSvgText::CssLengthPercentage::value, and SvgTextShortcutInfo::value1.
|
static |
Definition at line 179 of file SvgTextShortCuts.cpp.
References textShortCuts.
|
static |
Definition at line 366 of file SvgTextShortCuts.cpp.
References adjustValue(), SvgTextShortcutInfo::propertyId, KoSvgTextProperties::propertyOrDefault(), SvgTextShortcutInfo::Set, KoSvgTextProperties::setProperty(), SvgTextShortcutInfo::Toggle, toggleProperty(), SvgTextShortcutInfo::type, and SvgTextShortcutInfo::value1.
|
static |
Definition at line 174 of file SvgTextShortCuts.cpp.
References textShortCuts.