|
Krita Source Code Documentation
|
#include <SvgTextTool.h>
Inheritance diagram for SvgTextTool:Public Member Functions | |
| void | activate (const QSet< KoShape * > &shapes) override |
| reimplemented from KoToolBase | |
| void | copy () const override |
| reimplemented from superclass | |
| void | deactivate () override |
| reimplemented from KoToolBase | |
| QRectF | decorationsRect () const override |
| reimplemented from KoToolBase | |
| void | deleteSelection () override |
| reimplemented from superclass | |
| void | deselect () override |
| deselect the tool should clear the selection if it has one. | |
| void | focusInEvent (QFocusEvent *event) override |
| void | focusOutEvent (QFocusEvent *event) override |
| bool | hasSelection () override |
| reimplemented from superclass | |
| void | inputMethodEvent (QInputMethodEvent *event) override |
| QVariant | inputMethodQuery (Qt::InputMethodQuery query) const override |
| void | keyPressEvent (QKeyEvent *event) override |
| void | keyReleaseEvent (QKeyEvent *event) override |
| void | mouseDoubleClickEvent (KoPointerEvent *event) override |
| reimplemented from superclass | |
| void | mouseMoveEvent (KoPointerEvent *event) override |
| reimplemented from KoToolBase | |
| void | mousePressEvent (KoPointerEvent *event) override |
| reimplemented from KoToolBase | |
| void | mouseReleaseEvent (KoPointerEvent *event) override |
| reimplemented from KoToolBase | |
| void | mouseTripleClickEvent (KoPointerEvent *event) override |
| reimplemented from KoToolBase | |
| void | paint (QPainter &gc, const KoViewConverter &converter) override |
| reimplemented from KoToolBase | |
| bool | paste () override |
| reimplemented from superclass | |
| KisPopupWidgetInterface * | popupWidget () override |
| void | requestStrokeCancellation () override |
| void | requestStrokeEnd () override |
| bool | selectAll () override |
| selectAll select all data the tool can select. | |
| KoToolSelection * | selection () override |
| reimplemented from superclass | |
| SvgTextTool (KoCanvasBase *canvas) | |
| ~SvgTextTool () override | |
Public Member Functions inherited from KoToolBase | |
| QAction * | action (const QString &name) const |
| KoCanvasBase * | canvas () const |
| Returns the canvas the tool is working on. | |
| QCursor | cursor () const |
| return the last emitted cursor | |
| virtual void | customMoveEvent (KoPointerEvent *event) |
| virtual void | customPressEvent (KoPointerEvent *event) |
| virtual void | customReleaseEvent (KoPointerEvent *event) |
| virtual void | cut () |
| int | decorationThickness () const |
| decorationThickness The minimum thickness for tool decoration lines, this is derived from the screen magnification, thus the HiDPI settings. Note: to use this effectively, also set the pen to isCosmetic(true); | |
| virtual void | dragLeaveEvent (QDragLeaveEvent *event) |
| virtual void | dragMoveEvent (QDragMoveEvent *event, const QPointF &point) |
| virtual void | dropEvent (QDropEvent *event, const QPointF &point) |
| virtual void | explicitUserStrokeEndRequest () |
| explicitUserStrokeEndRequest is called by the input manager when the user presses Enter key or any equivalent. This callback comes before requestStrokeEnd(), which comes from a different source. | |
| KoToolFactoryBase * | factory () const |
| bool | isInTextMode () const |
| bool | isOpacityPresetMode () const |
| KoToolBase (KoCanvasBase *canvas) | |
| bool | maskSyntheticEvents () const |
| QList< QPointer< QWidget > > | optionWidgets () |
| virtual QMenu * | popupActionsMenu () |
| Q_INVOKABLE QString | toolId () const |
| virtual bool | wantsAutoScroll () const |
| ~KoToolBase () override | |
Protected Member Functions | |
| virtual QWidget * | createOptionWidget () override |
| reimplemented from KoToolBase | |
| KoSelection * | koSelection () const |
| KoSvgTextShape * | selectedShape () const |
Protected Member Functions inherited from KoToolBase | |
| virtual QList< QPointer< QWidget > > | createOptionWidgets () |
| int | grabSensitivity () const |
| Convenience function to get the current grab sensitivity. | |
| qreal | handleDocRadius () const |
| QRectF | handleGrabRect (const QPointF &position) const |
| QRectF | handlePaintRect (const QPointF &position) const |
| int | handleRadius () const |
| Convenience function to get the current handle radius. | |
| bool | isActivated () const |
| KoToolBase (KoToolBasePrivate &dd) | |
| KoPointerEvent * | lastDeliveredPointerEvent () const |
| void | setAbstractResource (KoAbstractCanvasResourceInterfaceSP abstractResource) |
| void | setConverter (KoDerivedResourceConverterSP converter) |
| void | setIsOpacityPresetMode (bool value) |
| void | setMaskSyntheticEvents (bool value) |
| void | setTextMode (bool value) |
| QHash< int, KoAbstractCanvasResourceInterfaceSP > | toolAbstractResources () |
| QHash< int, KoDerivedResourceConverterSP > | toolConverters () |
| void | useCursor (const QCursor &cursor) |
Private Types | |
| enum class | DragMode { None = 0 , Create , Select , InlineSizeHandle , Move } |
| enum class | HighlightItem { None = 0 , InlineSizeStartHandle , InlineSizeEndHandle , MoveBorder } |
Private Slots | |
| QString | generateDefs (const KoSvgTextProperties &properties=KoSvgTextProperties()) |
| generateDefs This generates a defs section with the appropriate css and css strings assigned. | |
| void | insertRichText (KoSvgTextShape *richText, bool replaceLastGlyph=false) |
| insertRichText Insert a rich text shape, used by the glyph palette.. | |
| KoSvgTextProperties | propertiesForNewText () const |
| propertiesForNewText get the text properties that should be used for new text. | |
| void | showEditor () |
| void | showGlyphPalette () |
| showGlyphPalette Shows the glyph palette dialog. | |
| void | slotConvertType (int index) |
| slotConvertType | |
| void | slotShapeSelectionChanged () |
| selectionChanged called when the canvas selection is changed. | |
| void | slotTextEditorClosed () |
| void | slotTextTypeUpdated () |
| slotTextTypeUpdated Update the text type in the tool options. | |
| void | slotUpdateCursorDecoration (QRectF updateRect) |
| updateCursor update the canvas decorations in a particular update rect for the text cursor. | |
| void | slotUpdateTextPasteBehaviour () |
| slotUpdateTextPasteBehaviour update the default text paste behaviour. | |
| void | slotUpdateVisualCursor () |
| slotUpdateVisualCursor update the visual cursor mode on the text cursor. | |
| void | textUpdated (KoSvgTextShape *shape, const QString &svg, const QString &defs) |
| void | updateGlyphPalette () |
| updateGlyphPalette update the glyph palette dialog from the current selection. | |
Private Member Functions | |
| qreal | grabSensitivityInPt () const |
| KoSvgText::WritingMode | writingMode () const |
Private Attributes | |
| QCursor | m_base_cursor |
| KisSignalAutoConnectionsStore | m_canvasConnections |
| DragMode | m_dragging {DragMode::None} |
| QPointer< SvgTextEditor > | m_editor |
| QPointer< GlyphPaletteDialog > | m_glyphPalette |
| HighlightItem | m_highlightItem {HighlightItem::None} |
| QPainterPath | m_hoveredShapeHighlightRect |
| QCursor | m_ibeam_horizontal |
| QCursor | m_ibeam_horizontal_done |
| QCursor | m_ibeam_vertical |
| std::unique_ptr< KoInteractionStrategy > | m_interactionStrategy |
| QPointF | m_lastMousePos |
| QScopedPointer< SvgTextToolOptionsManager > | m_optionManager |
| bool | m_strategyAddingCommand {false} |
| QCursor | m_text_in_shape |
| QCursor | m_text_inline_horizontal |
| QCursor | m_text_inline_vertical |
| QCursor | m_text_on_path |
| SvgTextCursor | m_textCursor |
| QScopedPointer< KisSignalMapper > | m_textTypeSignalsMapper |
Friends | |
| class | SvgCreateTextStrategy |
Additional Inherited Members | |
Public Slots inherited from KoToolBase | |
| virtual void | canvasResourceChanged (int key, const QVariant &res) |
| virtual void | documentResourceChanged (int key, const QVariant &res) |
| virtual void | repaintDecorations () |
| virtual void | requestRedoDuringStroke () |
| virtual void | requestUndoDuringStroke () |
| void | setStatusText (const QString &statusText) |
| void | updateOptionsWidgetIcons () |
Signals inherited from KoToolBase | |
| void | activateTool (const QString &id) |
| void | cursorChanged (const QCursor &cursor) |
| void | selectionChanged (bool hasSelection) |
| void | statusTextChanged (const QString &statusText) |
| void | textModeChanged (bool inTextMode) |
Protected Attributes inherited from KoToolBase | |
| KoToolBasePrivate * | d_ptr |
Definition at line 32 of file SvgTextTool.h.
|
strongprivate |
| Enumerator | |
|---|---|
| None | |
| Create | |
| Select | |
| InlineSizeHandle | |
| Move | |
Definition at line 177 of file SvgTextTool.h.
|
strongprivate |
| Enumerator | |
|---|---|
| None | |
| InlineSizeStartHandle | |
| InlineSizeEndHandle | |
| MoveBorder | |
Definition at line 184 of file SvgTextTool.h.
|
explicit |
Definition at line 90 of file SvgTextTool.cpp.
References KoToolBase::action(), connect(), dbgTools, KoSvgTextShape::InlineWrap, m_base_cursor, m_ibeam_horizontal, m_ibeam_horizontal_done, m_ibeam_vertical, m_text_in_shape, m_text_inline_horizontal, m_text_inline_vertical, m_text_on_path, m_textCursor, m_textTypeSignalsMapper, SvgTextShortCuts::possibleActions(), KoSvgTextShape::PreformattedText, KoSvgTextShape::PrePositionedText, SvgTextCursor::registerPropertyAction(), SvgTextCursor::setCaretSetting(), showGlyphPalette(), and slotUpdateCursorDecoration().
|
override |
Definition at line 146 of file SvgTextTool.cpp.
References m_editor, and m_glyphPalette.
reimplemented from KoToolBase
Reimplemented from KoToolBase.
Definition at line 156 of file SvgTextTool.cpp.
References KoToolBase::activate(), KisSignalAutoConnectionsStore::addConnection(), KoToolBase::canvas(), connect(), KisMainWindow::dockWidget(), m_base_cursor, m_canvasConnections, m_optionManager, m_textCursor, m_textTypeSignalsMapper, KisViewManager::mainWindow(), KoToolBase::repaintDecorations(), KoToolBase::selectionChanged(), KisTextPropertiesManager::setTextPropertiesInterface(), slotConvertType(), slotShapeSelectionChanged(), SvgTextCursor::textPropertyInterface(), KisViewManager::textPropertyManager(), KoToolBase::useCursor(), and KisCanvas2::viewManager().
|
overridevirtual |
reimplemented from superclass
Reimplemented from KoToolBase.
Definition at line 449 of file SvgTextTool.cpp.
References SvgTextCursor::copy(), and m_textCursor.
|
overrideprotectedvirtual |
reimplemented from KoToolBase
Reimplemented from KoToolBase.
Definition at line 214 of file SvgTextTool.cpp.
References KoToolBase::canvas(), connect(), KisQQuickWidget::connectMinimumHeightToRootObject(), debugEnabled(), KisMainWindow::dockWidget(), m_optionManager, KisViewManager::mainWindow(), SvgTextToolOptionsManager::openTextPropertiesDocker(), showEditor(), showGlyphPalette(), slotConvertType(), slotTextTypeUpdated(), slotUpdateTextPasteBehaviour(), slotUpdateVisualCursor(), and KisCanvas2::viewManager().
|
overridevirtual |
reimplemented from KoToolBase
Reimplemented from KoToolBase.
Definition at line 178 of file SvgTextTool.cpp.
References KoToolBase::canvas(), KisSignalAutoConnectionsStore::clear(), KoToolBase::deactivate(), m_canvasConnections, m_hoveredShapeHighlightRect, m_textCursor, m_textTypeSignalsMapper, KoToolBase::repaintDecorations(), SvgTextCursor::setShape(), KisTextPropertiesManager::setTextPropertiesInterface(), KisViewManager::textPropertyManager(), and KisCanvas2::viewManager().
|
overridevirtual |
reimplemented from KoToolBase
Reimplemented from KoToolBase.
Definition at line 562 of file SvgTextTool.cpp.
References KoShape::absoluteTransformation(), KoSnapGuide::boundingRect(), KoSvgTextShape::boundingRect(), KoToolBase::canvas(), KoToolBase::handleRadius(), INLINE_SIZE_DASHES_PATTERN_A, INLINE_SIZE_DASHES_PATTERN_B, INLINE_SIZE_DASHES_PATTERN_LENGTH, kisGrowRect(), length(), m_hoveredShapeHighlightRect, selectedShape(), KoCanvasBase::snapGuide, KoCanvasBase::viewConverter(), and KoViewConverter::viewToDocumentX().
|
overridevirtual |
reimplemented from superclass
Reimplemented from KoToolBase.
Definition at line 454 of file SvgTextTool.cpp.
References m_textCursor, and SvgTextCursor::removeSelection().
|
overridevirtual |
deselect the tool should clear the selection if it has one.
Reimplemented from KoToolBase.
Definition at line 476 of file SvgTextTool.cpp.
References SvgTextCursor::deselectText(), and m_textCursor.
|
overridevirtual |
This passes on the focusInEven from the canvas widget, which can be used to activate animating decorations (like a cursor blink effect in the text tool).
Reimplemented from KoToolBase.
Definition at line 936 of file SvgTextTool.cpp.
References SvgTextCursor::focusIn(), and m_textCursor.
|
overridevirtual |
This passes on the focusInEven from the canvas widget, which can be used to deactivate animating decorations (like a cursor blink effect in the text tool).
Reimplemented from KoToolBase.
Definition at line 942 of file SvgTextTool.cpp.
References SvgTextCursor::focusOut(), and m_textCursor.
|
privateslot |
generateDefs This generates a defs section with the appropriate css and css strings assigned.
Definition at line 361 of file SvgTextTool.cpp.
References KoSvgTextProperties::convertParagraphProperties(), and KoSvgTextProperties::convertToSvgTextAttributes().
|
private |
Definition at line 974 of file SvgTextTool.cpp.
References KoToolBase::canvas(), KoToolBase::grabSensitivity(), KoCanvasBase::viewConverter(), and KoViewConverter::viewToDocumentX().
|
overridevirtual |
reimplemented from superclass
Reimplemented from KoToolBase.
Definition at line 464 of file SvgTextTool.cpp.
References SvgTextCursor::hasSelection(), and m_textCursor.
|
overridevirtual |
Text entry of complex text, like CJK, can be made more interactive if a tool implements this and the InputMethodQuery() methods. Reimplementing this only provides the user with a more responsive text experience, since the default implementation forwards the typed text as key pressed events.
| event | the input method event. |
Reimplemented from KoToolBase.
Definition at line 209 of file SvgTextTool.cpp.
References SvgTextCursor::inputMethodEvent(), and m_textCursor.
|
overridevirtual |
This method is used to query a set of properties of the tool to be able to support complex input method operations as support for surrounding text and reconversions. Default implementation returns simple defaults, for tools that want to provide a more responsive text entry experience for CJK languages it would be good to reimplement.
| query | specifies which property is queried. |
| converter | the view converter for the current canvas. |
Reimplemented from KoToolBase.
Definition at line 200 of file SvgTextTool.cpp.
References KoToolBase::canvas(), KoToolBase::inputMethodQuery(), SvgTextCursor::inputMethodQuery(), and m_textCursor.
|
privateslot |
insertRichText Insert a rich text shape, used by the glyph palette..
| richText | – rich text shape. |
| replaceLastGlyph | – whether to replace the last glyph or to fully insert. |
Definition at line 345 of file SvgTextTool.cpp.
References SvgTextCursor::getPos(), SvgTextCursor::insertRichText(), m_textCursor, SvgTextCursor::moveCursor(), SvgTextCursor::MoveNextChar, SvgTextCursor::MovePreviousChar, and SvgTextCursor::setPos().
|
overridevirtual |
Called when a key is pressed. Implementors should call event->ignore() if they do not actually use the event. Default implementation ignores this event.
| event | state and reason of this key press |
Reimplemented from KoToolBase.
Definition at line 907 of file SvgTextTool.cpp.
References SvgTextCursor::keyPressEvent(), m_interactionStrategy, m_lastMousePos, m_textCursor, requestStrokeEnd(), and selectedShape().
|
overridevirtual |
Called when a key is released Implementors should call event->ignore() if they do not actually use the event. Default implementation ignores this event.
| event | state and reason of this key release |
Reimplemented from KoToolBase.
Definition at line 924 of file SvgTextTool.cpp.
References m_interactionStrategy, and m_lastMousePos.
|
protected |
Definition at line 259 of file SvgTextTool.cpp.
References KoToolBase::canvas(), KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, KoCanvasBase::selectedShapesProxy(), and KoSelectedShapesProxy::selection().
|
overridevirtual |
reimplemented from superclass
Reimplemented from KoToolBase.
Definition at line 948 of file SvgTextTool.cpp.
References KoToolBase::canvas(), kisGrowRect(), m_hoveredShapeHighlightRect, m_textCursor, SvgTextCursor::moveCursor(), SvgTextCursor::MoveWordLeft, SvgTextCursor::MoveWordRight, KoPointerEvent::point, selectedShape(), SvgTextCursor::setPosToPoint(), and KoCanvasBase::updateCanvas().
|
overridevirtual |
reimplemented from KoToolBase
Implements KoToolBase.
Definition at line 760 of file SvgTextTool.cpp.
References KoShape::absoluteTransformation(), KoSvgTextShape::boundingRect(), KoToolBase::canvas(), Create, KoToolBase::cursor(), SvgCreateTextStrategy::draggingInlineSize(), grabSensitivityInPt(), KoToolBase::handleGrabRect(), KoSvgText::HorizontalTB, InlineSizeEndHandle, InlineSizeStartHandle, KoPathShape::isClosedSubpath(), KoPathSegment::isValid(), kisGrowRect(), KoSvgTextShape_SHAPEID, lineToCursor(), m_base_cursor, m_dragging, m_highlightItem, m_hoveredShapeHighlightRect, m_ibeam_horizontal, m_ibeam_horizontal_done, m_ibeam_vertical, m_interactionStrategy, m_lastMousePos, m_text_in_shape, m_text_inline_horizontal, m_text_inline_vertical, m_text_on_path, KoPointerEvent::modifiers(), MoveBorder, None, KoPathShape::outline(), KoSvgTextShape::outlineRect(), KoPointerEvent::point, KoToolBase::repaintDecorations(), Select, selectedShape(), KoShapeManager::shapeAt(), KisToolUtils::shapeHoverInfoCrossLayer(), KoCanvasBase::shapeManager(), KoSvgTextShape::shapesInside, KoPathShape::subpathCount(), KoToolBase::useCursor(), KoSvgTextShape::writingMode(), and writingMode().
|
overridevirtual |
reimplemented from KoToolBase
Implements KoToolBase.
Definition at line 678 of file SvgTextTool.cpp.
References KoToolBase::canvas(), Create, KoSelection::deselectAll(), InlineSizeEndHandle, InlineSizeHandle, InlineSizeStartHandle, KoSvgTextShape_SHAPEID, m_dragging, m_highlightItem, m_hoveredShapeHighlightRect, m_interactionStrategy, m_textCursor, KoPointerEvent::modifiers(), Move, MoveBorder, KoPointerEvent::point, KoToolBase::repaintDecorations(), KoSelection::select(), Select, selectedShape(), KoShapeManager::selection, KisToolUtils::selectShapeCrossLayer(), KoShapeManager::shapeAt(), KisToolUtils::shapeHoverInfoCrossLayer(), KoCanvasBase::shapeManager(), KoSnapGuide::snap(), KoCanvasBase::snapGuide, and SvgCreateTextStrategy.
|
overridevirtual |
reimplemented from KoToolBase
Implements KoToolBase.
Definition at line 885 of file SvgTextTool.cpp.
References KoCanvasBase::addCommand(), KoToolBase::canvas(), m_base_cursor, m_dragging, m_interactionStrategy, m_strategyAddingCommand, KoPointerEvent::modifiers(), None, Select, and KoToolBase::useCursor().
|
overridevirtual |
reimplemented from KoToolBase
Reimplemented from KoToolBase.
Definition at line 963 of file SvgTextTool.cpp.
References KoToolBase::canvas(), m_textCursor, SvgTextCursor::moveCursor(), SvgTextCursor::ParagraphEnd, SvgTextCursor::ParagraphStart, KoPointerEvent::point, and selectedShape().
|
overridevirtual |
reimplemented from KoToolBase
Implements KoToolBase.
Definition at line 589 of file SvgTextTool.cpp.
References KoShape::absoluteTransformation(), KoToolBase::canvas(), Create, KoShape::createHandlePainterHelperView(), debugEnabled(), KoToolBase::decorationThickness(), KoViewConverter::documentToView(), KisHandlePainterHelper::drawConnectionLine(), KisHandlePainterHelper::drawHandleCircle(), KisHandlePainterHelper::drawHandleLine(), KisHandlePainterHelper::drawPath(), KoToolBase::handleRadius(), KisHandleStyle::highlightedPrimaryHandles(), KisHandleStyle::highlightedPrimaryHandlesWithSolidOutline(), INLINE_SIZE_DASHES_PATTERN_A, INLINE_SIZE_DASHES_PATTERN_B, INLINE_SIZE_DASHES_PATTERN_LENGTH, INLINE_SIZE_HANDLE_THICKNESS, InlineSizeEndHandle, InlineSizeHandle, InlineSizeStartHandle, KoToolBase::isActivated(), length(), m_dragging, m_highlightItem, m_hoveredShapeHighlightRect, m_interactionStrategy, m_optionManager, m_textCursor, Move, MoveBorder, KoSvgTextShape::outlineRect(), KoSnapGuide::paint(), KoSvgTextShape::paintDebug(), SvgTextCursor::paintDecorations(), KisHandleStyle::partiallyHighlightedPrimaryHandles(), KisHandleStyle::primarySelection(), KisHandleStyle::secondarySelection(), selectedShape(), KisHandlePainterHelper::setHandleStyle(), KoCanvasBase::snapGuide, KoCanvasBase::viewConverter(), and KoViewConverter::viewToDocumentX().
|
overridevirtual |
reimplemented from superclass
Reimplemented from KoToolBase.
Definition at line 459 of file SvgTextTool.cpp.
References m_textCursor, and SvgTextCursor::paste().
|
overridevirtual |
popupActionsMenu() does not return null. Reimplemented from KoToolBase.
Definition at line 195 of file SvgTextTool.cpp.
|
privateslot |
propertiesForNewText get the text properties that should be used for new text.
Definition at line 376 of file SvgTextTool.cpp.
References KoToolBase::canvas(), KoSvgTextPropertyData::commonProperties, ResourceType::CssStyles, KoSvgTextProperties::FillId, KisCanvas2::image(), m_optionManager, KoCanvasBase::resourceManager, KisResourceModelProvider::resourceModel(), KisAllResourcesModel::resourcesForName(), KoSvgTextProperties::setProperty(), KoCanvasResource::SvgTextPropertyData, and KisImage::xRes().
|
overridevirtual |
Called when the user requested the cancellation of the current stroke. If you tool supports cancelling, override this method and do the needed work there
Doing nothing, since these signals come on undo/redo actions in the mainland undo stack, which we manipulate while editing text
Reimplemented from KoToolBase.
Definition at line 501 of file SvgTextTool.cpp.
|
overridevirtual |
Called when the image decided that the stroke should better be ended. If you tool supports long strokes, override this method and do the needed work there
Reimplemented from KoToolBase.
Definition at line 486 of file SvgTextTool.cpp.
References KoToolBase::canvas(), KoSelection::deselectAll(), KoToolBase::isActivated(), SvgTextCursor::isAddingCommand, KoToolBase::isInTextMode(), m_dragging, m_interactionStrategy, m_strategyAddingCommand, m_textCursor, None, KoShapeManager::selection, KoCanvasBase::shapeManager(), and KoToolBase::useCursor().
|
overridevirtual |
selectAll select all data the tool can select.
Reimplemented from KoToolBase.
Definition at line 469 of file SvgTextTool.cpp.
References m_textCursor, SvgTextCursor::moveCursor(), SvgTextCursor::ParagraphEnd, and SvgTextCursor::ParagraphStart.
|
protected |
Definition at line 267 of file SvgTextTool.cpp.
References KoToolBase::canvas(), KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, koSelection(), and KoSelection::selectedEditableShapes().
|
overridevirtual |
reimplemented from superclass
Reimplemented from KoToolBase.
Definition at line 481 of file SvgTextTool.cpp.
References m_textCursor.
|
privateslot |
Definition at line 280 of file SvgTextTool.cpp.
References connect(), m_editor, selectedShape(), slotTextEditorClosed(), and textUpdated().
|
privateslot |
showGlyphPalette Shows the glyph palette dialog.
Definition at line 313 of file SvgTextTool.cpp.
References connect(), insertRichText(), m_glyphPalette, m_textCursor, KoToolBase::selectionChanged(), and updateGlyphPalette().
|
privateslot |
slotConvertType
| index |
Definition at line 517 of file SvgTextTool.cpp.
References KoCanvasBase::addCommand(), KoToolBase::canvas(), KisCommandUtils::FlipFlopCommand::FINALIZING, SvgTextCursor::getPos(), KisCommandUtils::FlipFlopCommand::INITIALIZING, m_textCursor, selectedShape(), KoCanvasBase::selectedShapesProxy(), KUndo2Command::setText(), and slotTextTypeUpdated().
|
privateslot |
selectionChanged called when the canvas selection is changed.
Definition at line 411 of file SvgTextTool.cpp.
References KoSelection::deselectAll(), koSelection(), m_textCursor, KoSelection::select(), KoSelection::selectedEditableShapes(), selectedShape(), SvgTextCursor::setShape(), KoToolBase::setTextMode(), SvgTextCursor::shape, and slotTextTypeUpdated().
|
privateslot |
Definition at line 354 of file SvgTextTool.cpp.
References KoToolManager::instance(), and KoToolManager::switchToolRequested().
|
privateslot |
slotTextTypeUpdated Update the text type in the tool options.
Definition at line 541 of file SvgTextTool.cpp.
References KoToolBase::action(), KoSvgTextShape::InlineWrap, m_optionManager, KoSvgTextShape::PreformattedText, KoSvgTextShape::PrePositionedText, selectedShape(), and KoSvgTextShape::textType().
|
privateslot |
updateCursor update the canvas decorations in a particular update rect for the text cursor.
| updateRect | the rect to update in. |
Definition at line 510 of file SvgTextTool.cpp.
References KoToolBase::canvas(), and KoCanvasBase::updateCanvas().
|
privateslot |
slotUpdateTextPasteBehaviour update the default text paste behaviour.
Definition at line 536 of file SvgTextTool.cpp.
References m_optionManager, m_textCursor, and SvgTextCursor::setPasteRichTextByDefault().
|
privateslot |
slotUpdateVisualCursor update the visual cursor mode on the text cursor.
Definition at line 531 of file SvgTextTool.cpp.
References m_optionManager, m_textCursor, and SvgTextCursor::setVisualMode().
|
privateslot |
Definition at line 307 of file SvgTextTool.cpp.
References KoCanvasBase::addCommand(), and KoToolBase::canvas().
|
privateslot |
updateGlyphPalette update the glyph palette dialog from the current selection.
Definition at line 330 of file SvgTextTool.cpp.
References SvgTextCursor::currentTextProperties(), SvgTextCursor::getPos(), KoSvgTextShape::indexForPos(), m_glyphPalette, m_textCursor, KoSvgTextShape::plainText, KoSvgTextShape::posLeft(), KoSvgTextShape::posRight(), and SvgTextCursor::shape.
|
private |
Definition at line 980 of file SvgTextTool.cpp.
References propertiesForNewText(), KoSvgTextProperties::propertyOrDefault(), and KoSvgTextProperties::WritingModeId.
|
friend |
Definition at line 36 of file SvgTextTool.h.
|
private |
Definition at line 208 of file SvgTextTool.h.
|
private |
Definition at line 204 of file SvgTextTool.h.
|
private |
Definition at line 195 of file SvgTextTool.h.
|
private |
Definition at line 192 of file SvgTextTool.h.
|
private |
Definition at line 193 of file SvgTextTool.h.
|
private |
Definition at line 197 of file SvgTextTool.h.
|
private |
Definition at line 206 of file SvgTextTool.h.
|
private |
Definition at line 214 of file SvgTextTool.h.
|
private |
Definition at line 215 of file SvgTextTool.h.
|
private |
Definition at line 213 of file SvgTextTool.h.
|
private |
Definition at line 196 of file SvgTextTool.h.
|
private |
Definition at line 194 of file SvgTextTool.h.
|
private |
Definition at line 191 of file SvgTextTool.h.
|
private |
Definition at line 198 of file SvgTextTool.h.
|
private |
Definition at line 212 of file SvgTextTool.h.
|
private |
Definition at line 209 of file SvgTextTool.h.
|
private |
Definition at line 210 of file SvgTextTool.h.
|
private |
Definition at line 211 of file SvgTextTool.h.
|
private |
Definition at line 203 of file SvgTextTool.h.
|
private |
Definition at line 200 of file SvgTextTool.h.