|
Krita Source Code Documentation
|
#include "SvgTextShortCuts.h"#include <QAction>#include <KoSvgTextProperties.h>#include <KisStaticInitializer.h>Go to the source code of this file.
Classes | |
| struct | SvgTextShortcutInfo |
| The SvgTextShortcutInfo class This is a struct that describes a text property shortcut. More... | |
Functions | |
| QVariant | adjustValue (SvgTextShortcutInfo info, QVariant oldValue) |
| adjustValue Handles increase/decrease value for getModifiedProperties, split out to make code easier to navigate. | |
| bool | testPropertyEnabled (const SvgTextShortcutInfo &info, const QList< KoSvgTextProperties > currentProperties) |
| testPropertyEnabled | |
| QVariant | toggleProperty (SvgTextShortcutInfo info, bool checked, QList< KoSvgTextProperties > currentProperties) |
| toggleProperty Handles toggling properties for getModifiedProperties split out to make code easier to navigate. | |
Variables | |
| KIS_DECLARE_STATIC_INITIALIZER | |
| const QMap< QString, SvgTextShortcutInfo > | textShortCuts |
| QVariant adjustValue | ( | SvgTextShortcutInfo | info, |
| QVariant | oldValue ) |
adjustValue Handles increase/decrease value for getModifiedProperties, split out to make code easier to navigate.
TODO: handle max/min.
Definition at line 296 of file SvgTextShortCuts.cpp.
References SvgTextShortcutInfo::Increase, KoSvgText::AutoValue::isAuto, KoSvgText::AutoLengthPercentage::isAuto, length(), SvgTextShortcutInfo::type, KoSvgText::CssLengthPercentage::value, value(), and SvgTextShortcutInfo::value1.
| bool testPropertyEnabled | ( | const SvgTextShortcutInfo & | info, |
| const QList< KoSvgTextProperties > | currentProperties ) |
testPropertyEnabled
| info | |
| currentProperties |
Definition at line 193 of file SvgTextShortCuts.cpp.
References KoSvgText::AutoValue::customValue, KoSvgText::AutoValue::isAuto, KoSvgText::AutoLengthPercentage::length, KoSvgText::LineHeightInfo::length, SvgTextShortcutInfo::propertyId, KoSvgText::CssFontStyleData::style, SvgTextShortcutInfo::testValue, KoSvgTextProperties::TextDecorationLineId, SvgTextShortcutInfo::Toggle, SvgTextShortcutInfo::type, KoSvgText::CssLengthPercentage::value, and SvgTextShortcutInfo::value1.
| QVariant toggleProperty | ( | SvgTextShortcutInfo | info, |
| bool | checked, | ||
| QList< KoSvgTextProperties > | currentProperties ) |
toggleProperty Handles toggling properties for getModifiedProperties split out to make code easier to navigate.
Definition at line 266 of file SvgTextShortCuts.cpp.
References SvgTextShortcutInfo::propertyId, SvgTextShortcutInfo::testValue, KoSvgTextProperties::TextDecorationLineId, SvgTextShortcutInfo::value1, and SvgTextShortcutInfo::value2.
| KIS_DECLARE_STATIC_INITIALIZER |
Definition at line 72 of file SvgTextShortCuts.cpp.
| const QMap<QString, SvgTextShortcutInfo> textShortCuts |
Definition at line 79 of file SvgTextShortCuts.cpp.