|
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. More... | |
Functions | |
| QVariant | adjustValue (SvgTextShortcutInfo info, QVariant oldValue) |
| adjustValue Handles increase/decrease value for getModifiedProperties, split out to make code easier to navigate. | |
| QVariant | toggleProperty (SvgTextShortcutInfo info, 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 316 of file SvgTextShortCuts.cpp.
References SvgTextShortcutInfo::Increase, KoSvgText::AutoValue::isAuto, KoSvgText::AutoLengthPercentage::isAuto, length(), SvgTextShortcutInfo::type, KoSvgText::CssLengthPercentage::value, value(), and SvgTextShortcutInfo::value1.
| QVariant toggleProperty | ( | SvgTextShortcutInfo | info, |
| QList< KoSvgTextProperties > | currentProperties ) |
toggleProperty Handles toggling properties for getModifiedProperties split out to make code easier to navigate.
Definition at line 255 of file SvgTextShortCuts.cpp.
References KoSvgText::AutoValue::customValue, KoSvgTextProperties::FontStyleId, KoSvgText::AutoValue::isAuto, KoSvgTextProperties::KerningId, SvgTextShortcutInfo::propertyId, KoSvgText::CssFontStyleData::style, 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.