11#include <QExplicitlySharedDataPointer>
17#include <klocalizedstring.h>
23 QExplicitlySharedDataPointer<KoMarker>
marker;
38 m_d->oldMarkers.append(QExplicitlySharedDataPointer<KoMarker>(shape->
marker(
position)));
69 auto markerIt =
m_d->oldMarkers.begin();
70 auto autoFillIt =
m_d->oldAutoFillMarkers.begin();
91 other->
m_d->shapes !=
m_d->shapes ||
92 other->
m_d->position !=
m_d->position) {
The position of a path point within a path shape.
bool autoFillMarkers() const
KoMarker * marker(KoFlake::MarkerPosition pos) const
void setAutoFillMarkers(bool value)
void setMarker(KoMarker *marker, KoFlake::MarkerPosition pos)
static void bulkShapesUpdate(const UpdatesList &updates)
KUndo2MagicString kundo2_i18n(const char *text)
The undo / redo command for setting the shape marker.
QList< bool > oldAutoFillMarkers
KoPathShapeMarkerCommand(const QList< KoPathShape * > &shapes, KoMarker *marker, KoFlake::MarkerPosition position, KUndo2Command *parent=0)
QExplicitlySharedDataPointer< KoMarker > marker
the new marker to set
const QScopedPointer< Private > m_d
bool mergeWith(const KUndo2Command *command) override
KoFlake::MarkerPosition position
QList< QExplicitlySharedDataPointer< KoMarker > > oldMarkers
the old markers, one for each shape
QList< KoPathShape * > shapes
the shapes to set marker for
~KoPathShapeMarkerCommand() override