|
Krita Source Code Documentation
|
The KoSvgTextShapeOutlineHelper class helper class that draws the text outlines and contour mode button of the KoSvgTextTool. More...
#include <KoSvgTextShapeOutlineHelper.h>
Classes | |
| struct | Private |
Public Member Functions | |
| KoSvgTextShape * | contourModeButtonHovered (const QPointF &point) |
| QRectF | decorationRect () |
| decorationRect | |
| bool | drawBoundingRect () const |
| bool | drawShapeOutlines () const |
| bool | drawTextWrappingArea () const |
| KoSvgTextShapeOutlineHelper (KoCanvasBase *canvas) | |
| void | paint (QPainter *painter, const KoViewConverter &converter) |
| void | setDecorationThickness (int thickness) |
| void | setDrawBoundingRect (bool enable) |
| setDrawBoundingRect Whether to draw the bounding rect of the shapes. | |
| void | setDrawShapeOutlines (bool enable) |
| setDrawShapeOutlines Draw the shape outlines instead of only the rect. | |
| void | setDrawTextWrappingArea (bool enable) |
| setDrawTextWrappingArea draw the wrapping area. The wrapping area is computed from the shapes as well as padding and margin. This also draws connection lines. | |
| void | setHandleRadius (int radius) |
| void | setTextAreasHovered (bool enabled) |
| void | toggleTextContourMode (KoSvgTextShape *shape) |
| bool | updateTextContourMode () |
| updateTextContourMode This checks if the text contour mode still has shapes, and otherwise switches out of this mode. | |
| ~KoSvgTextShapeOutlineHelper () | |
Private Member Functions | |
| void | paintTextShape (QPainter *painter, const KoViewConverter &converter, const QPalette &pal, KoSvgTextShape *text, bool contourModeActive=false) |
Private Attributes | |
| QScopedPointer< Private > | d |
The KoSvgTextShapeOutlineHelper class helper class that draws the text outlines and contour mode button of the KoSvgTextTool.
Definition at line 24 of file KoSvgTextShapeOutlineHelper.h.
| KoSvgTextShapeOutlineHelper::KoSvgTextShapeOutlineHelper | ( | KoCanvasBase * | canvas | ) |
Definition at line 70 of file KoSvgTextShapeOutlineHelper.cpp.
| KoSvgTextShapeOutlineHelper::~KoSvgTextShapeOutlineHelper | ( | ) |
Definition at line 75 of file KoSvgTextShapeOutlineHelper.cpp.
| KoSvgTextShape * KoSvgTextShapeOutlineHelper::contourModeButtonHovered | ( | const QPointF & | point | ) |
Definition at line 248 of file KoSvgTextShapeOutlineHelper.cpp.
References KoSvgTextShape::boundingRect(), and d.
| QRectF KoSvgTextShapeOutlineHelper::decorationRect | ( | ) |
decorationRect
Definition at line 192 of file KoSvgTextShapeOutlineHelper.cpp.
References KoSvgTextShape::boundingRect(), d, and decorationRect().
| bool KoSvgTextShapeOutlineHelper::drawBoundingRect | ( | ) | const |
Definition at line 218 of file KoSvgTextShapeOutlineHelper.cpp.
References d.
| bool KoSvgTextShapeOutlineHelper::drawShapeOutlines | ( | ) | const |
Definition at line 233 of file KoSvgTextShapeOutlineHelper.cpp.
References d.
| bool KoSvgTextShapeOutlineHelper::drawTextWrappingArea | ( | ) | const |
| void KoSvgTextShapeOutlineHelper::paint | ( | QPainter * | painter, |
| const KoViewConverter & | converter ) |
Definition at line 176 of file KoSvgTextShapeOutlineHelper.cpp.
References d, and paintTextShape().
|
private |
Definition at line 119 of file KoSvgTextShapeOutlineHelper.cpp.
References KoSvgTextShape::boundingRect(), BUTTON_CORNER_ROUND, BUTTON_ICON_SIZE, BUTTON_PADDING, KoShape::createHandlePainterHelperView(), d, KoViewConverter::documentToView(), KisHandlePainterHelper::drawGradientArrow(), KisHandlePainterHelper::drawPath(), getTextAreaOrderArrows(), ICON_ENTER, ICON_EXIT, KoSvgTextShape::internalShapeManager(), KisIconUtils::loadIcon(), KoShape::outline(), KoSvgTextShape::outlineRect(), p, KisHandleStyle::partiallyHighlightedPrimaryHandles(), KisHandleStyle::secondarySelection(), KisHandlePainterHelper::setHandleStyle(), KoShapeManager::shapes, KoSvgTextShape::shapesInside, KoSvgTextShape::textWrappingAreas(), and KoShape::transformation().
| void KoSvgTextShapeOutlineHelper::setDecorationThickness | ( | int | thickness | ) |
Definition at line 243 of file KoSvgTextShapeOutlineHelper.cpp.
References d.
| void KoSvgTextShapeOutlineHelper::setDrawBoundingRect | ( | bool | enable | ) |
setDrawBoundingRect Whether to draw the bounding rect of the shapes.
| enable |
Definition at line 213 of file KoSvgTextShapeOutlineHelper.cpp.
References d.
| void KoSvgTextShapeOutlineHelper::setDrawShapeOutlines | ( | bool | enable | ) |
setDrawShapeOutlines Draw the shape outlines instead of only the rect.
Definition at line 228 of file KoSvgTextShapeOutlineHelper.cpp.
References d.
| void KoSvgTextShapeOutlineHelper::setDrawTextWrappingArea | ( | bool | enable | ) |
setDrawTextWrappingArea draw the wrapping area. The wrapping area is computed from the shapes as well as padding and margin. This also draws connection lines.
Definition at line 223 of file KoSvgTextShapeOutlineHelper.cpp.
References d.
| void KoSvgTextShapeOutlineHelper::setHandleRadius | ( | int | radius | ) |
Definition at line 238 of file KoSvgTextShapeOutlineHelper.cpp.
References d.
| void KoSvgTextShapeOutlineHelper::setTextAreasHovered | ( | bool | enabled | ) |
Definition at line 280 of file KoSvgTextShapeOutlineHelper.cpp.
References d.
| void KoSvgTextShapeOutlineHelper::toggleTextContourMode | ( | KoSvgTextShape * | shape | ) |
Definition at line 269 of file KoSvgTextShapeOutlineHelper.cpp.
References d.
| bool KoSvgTextShapeOutlineHelper::updateTextContourMode | ( | ) |
updateTextContourMode This checks if the text contour mode still has shapes, and otherwise switches out of this mode.
Definition at line 259 of file KoSvgTextShapeOutlineHelper.cpp.
References d, and toggleTextContourMode().
|
private |
Definition at line 84 of file KoSvgTextShapeOutlineHelper.h.