Hello all,
I am currently working on a workshop. For this I would like to
show how to add a plug-in. This plug-in should be a compass
shape (a circle with an angle basically) I've written some code
for that (you can see it as a git diff joined). It is not ended, but
I already have a trouble because nothing is added to the shapes
and especially in the quickShapes. My question is, what is missing
and/or wrong in my patch so that it could be added to the shapes ?
Thank you guys,
Regards
--
Jean-Nicolas
diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt
index 69e5d96..2cd5a25 100644
--- a/plugins/CMakeLists.txt
+++ b/plugins/CMakeLists.txt
@@ -25,6 +25,7 @@ IF (NOT TINY)
macro_optional_add_subdirectory( dockers )
macro_optional_add_subdirectory( textediting )
macro_optional_add_subdirectory( commentshape )
+ macro_optional_add_subdirectory( compassshape )
macro_optional_add_subdirectory( staging )
if(MARBLE_FOUND)
macro_optional_add_subdirectory( mapshape )
diff --git a/plugins/compassshape/CMakeLists.txt b/plugins/compassshape/CMakeLists.txt
new file mode 100644
index 0000000..c35cd49
--- /dev/null
+++ b/plugins/compassshape/CMakeLists.txt
@@ -0,0 +1,20 @@
+include_directories( ${FLAKE_INCLUDES} ${KOMAIN_INCLUDES} )
+
+SET( compassshape_LIB_SRCS
+ CompassShape.cpp
+ CompassShapeFactory.cpp
+ CompassShapeConfigWidget.cpp
+ Plugin.cpp
+ )
+
+kde4_add_ui_files(compassshape_LIB_SRCS
+ CompassShapeConfigWidget.ui)
+
+kde4_add_plugin(compassshape ${compassshape_LIB_SRCS})
+
+target_link_libraries(compassshape pathshapes flake kowidgets)
+
+install(TARGETS compassshape DESTINATION ${PLUGIN_INSTALL_DIR})
+install( FILES compassshape.desktop DESTINATION ${SERVICES_INSTALL_DIR})
+
+# kde4_install_icons( ${DATA_INSTALL_DIR}/calligra/icons )
diff --git a/plugins/compassshape/CompassShape.cpp b/plugins/compassshape/CompassShape.cpp
new file mode 100644
index 0000000..be2ae77
--- /dev/null
+++ b/plugins/compassshape/CompassShape.cpp
@@ -0,0 +1,99 @@
+/* This file is part of the KDE project
+ * Copyright (C) 2011 Jean-Nicolas Artaud <[email protected]>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#include "CompassShape.h"
+#include "Globals.h"
+
+#include <KoXmlReader.h>
+#include <KoXmlNS.h>
+#include <KoXmlWriter.h>
+
+#include <KoShapeLoadingContext.h>
+#include <KoShapeApplicationData.h>
+#include <KoShapeSavingContext.h>
+#include <KoShapeRegistry.h>
+#include <KoTextShapeData.h>
+#include <KoColorBackground.h>
+#include <KoLineBorder.h>
+#include <KoGradientBackground.h>
+#include <KoApplication.h>
+#include <KoViewConverter.h>
+
+#include <kmessagebox.h>
+#include <klocale.h>
+
+#include <QPainter>
+#include <QGradient>
+#include <QBrush>
+#include <QRectF>
+#include <QPaintEvent>
+
+CompassShape::CompassShape()
+: m_angle(0)
+{
+ setSize(QSizeF(100,100));
+ //updatePath(QSizeF(100,100));
+}
+
+CompassShape::~CompassShape()
+{
+}
+
+void CompassShape::paint(QPainter &painter, const KoViewConverter &converter, KoShapePaintingContext &paintcontext)
+{
+ QRectF target = converter.documentToView(QRectF(QPointF(0, 0), size()));
+ painter.setPen(QColor(0,0,0));
+ painter.drawEllipse(target);
+}
+
+bool CompassShape::loadOdf(const KoXmlElement& element, KoShapeLoadingContext& context)
+{
+ return true;
+}
+
+void CompassShape::saveOdf(KoShapeSavingContext& context) const
+{
+
+}
+
+void CompassShape::setAngle(const qreal angle)
+{
+ m_angle = angle;
+}
+
+qreal CompassShape::angle()
+{
+ return m_angle;
+}
+/*
+void CompassShape::moveHandleAction(int handleId, const QPointF &point, Qt::KeyboardModifiers modifiers)
+{
+
+}
+
+void CompassShape::updatePath(const QSizeF &size)
+{
+ QPointF radii(size.width()/2, size.height()/2);
+ QPointF startPoint(size.width()/2, 0);
+ QPointF curvePoints[12];
+
+ arcToCurve(radii.x(), radii.y(), 0, 3, startPoint, curvePoints);
+
+}
+*/
diff --git a/plugins/compassshape/CompassShape.h b/plugins/compassshape/CompassShape.h
new file mode 100644
index 0000000..76fc0ff
--- /dev/null
+++ b/plugins/compassshape/CompassShape.h
@@ -0,0 +1,53 @@
+/* This file is part of the KDE project
+ * Copyright (C) 2011 Jean-Nicolas Artaud <[email protected]>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef COMPASSSHAPE_H
+#define COMPASSSHAPE_H
+
+#include <KoShape.h>
+#include <KoDocumentResourceManager.h>
+
+#define CompassShapeId "CompassShapeID"
+
+class CompassShape : public KoShape
+{
+public:
+ CompassShape();
+ virtual ~CompassShape();
+
+ void paint(QPainter &painter, const KoViewConverter &converter, KoShapePaintingContext &paintcontext);
+ void setAngle(const qreal angle);
+ qreal angle();
+
+ // reimplemented
+ virtual void saveOdf(KoShapeSavingContext &context) const;
+ // reimplemented
+ virtual bool loadOdf(const KoXmlElement &element, KoShapeLoadingContext &context);
+ // reimplemented
+ //virtual void moveHandleAction(int handleId, const QPointF & point, Qt::KeyboardModifiers modifiers = Qt::NoModifier);
+ // reimplemented
+ //virtual void updatePath(const QSizeF &size);
+
+private:
+ qreal m_angle;
+};
+
+#endif // COMPASSSHAPE_H
+
+
diff --git a/plugins/compassshape/CompassShapeConfigWidget.cpp b/plugins/compassshape/CompassShapeConfigWidget.cpp
new file mode 100644
index 0000000..298f4fa
--- /dev/null
+++ b/plugins/compassshape/CompassShapeConfigWidget.cpp
@@ -0,0 +1,56 @@
+/* This file is part of the KDE project
+ * Copyright (C) 2011 Jean-Nicolas Artaud <[email protected]>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#include "CompassShapeConfigWidget.h"
+#include <klocale.h>
+
+CompassShapeConfigWidget::CompassShapeConfigWidget()
+{
+ widget.setupUi(this);
+
+ widget.angle->setMinimum(0.0);
+ widget.angle->setMaximum(360.0);
+}
+
+void CompassShapeConfigWidget::open(KoShape *shape)
+{
+ m_compass = dynamic_cast<CompassShape*>(shape);
+ if (!m_compass)
+ return;
+
+ widget.angle->blockSignals(true);
+ widget.angle->setValue(m_compass->angle());
+ widget.angle->blockSignals(false);
+}
+
+void CompassShapeConfigWidget::save()
+{
+ if (!m_compass)
+ return;
+}
+
+KUndo2Command *CompassShapeConfigWidget::createCommand()
+{
+ if (!m_compass) {
+ return 0;
+ }
+ return 0;
+}
+
+#include <CompassShapeConfigWidget.moc>
diff --git a/plugins/compassshape/CompassShapeConfigWidget.h b/plugins/compassshape/CompassShapeConfigWidget.h
new file mode 100644
index 0000000..56f2954
--- /dev/null
+++ b/plugins/compassshape/CompassShapeConfigWidget.h
@@ -0,0 +1,47 @@
+/* This file is part of the KDE project
+ * Copyright (C) 2011 Jean-Nicolas Artaud <[email protected]>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef COMPASSSHAPECONFIGWIDGET_H
+#define COMPASSSHAPECONFIGWIDGET_H
+
+#include "CompassShape.h"
+#include <ui_CompassShapeConfigWidget.h>
+
+#include <KoShapeConfigWidgetBase.h>
+
+class CompassShapeConfigWidget : public KoShapeConfigWidgetBase
+{
+ Q_OBJECT
+public:
+ CompassShapeConfigWidget();
+ /// reimplemented
+ virtual void open(KoShape *shape);
+ /// reimplemented
+ virtual void save();
+ /// reimplemented
+ virtual bool showOnShapeCreate() { return false; }
+ /// reimplemented
+ virtual KUndo2Command * createCommand();
+
+private:
+ Ui::CompassShapeConfigWidget widget;
+ CompassShape *m_compass;
+};
+
+#endif // COMPASSSHAPECONFIGWIDGET_H
\ No newline at end of file
diff --git a/plugins/compassshape/CompassShapeConfigWidget.ui b/plugins/compassshape/CompassShapeConfigWidget.ui
new file mode 100644
index 0000000..b4bb297
--- /dev/null
+++ b/plugins/compassshape/CompassShapeConfigWidget.ui
@@ -0,0 +1,37 @@
+<ui version="4.0" >
+ <class>CompassShapeConfigWidget</class>
+ <widget class="QWidget" name="CompassShapeConfigWidget" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>187</width>
+ <height>173</height>
+ </rect>
+ </property>
+ <property name="windowTitle" >
+ <string>Compass Shape</string>
+ </property>
+ <layout class="QGridLayout" >
+ <item row="0" column="0" >
+ <widget class="QLabel" name="label_1" >
+ <property name="text" >
+ <string>Angle:</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1" >
+ <widget class="QDoubleSpinBox" name="angle" >
+ <property name="alignment" >
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ <property name="suffix" >
+ <string>°</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>
diff --git a/plugins/compassshape/CompassShapeFactory.cpp b/plugins/compassshape/CompassShapeFactory.cpp
new file mode 100644
index 0000000..2c4c894
--- /dev/null
+++ b/plugins/compassshape/CompassShapeFactory.cpp
@@ -0,0 +1,91 @@
+/* This file is part of the KDE project
+ * Copyright (C) 2011 Jean-Nicolas Artaud <[email protected]>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#include "CompassShapeFactory.h"
+#include "CompassShape.h"
+#include "CompassShapeConfigWidget.h"
+
+#include <klocale.h>
+#include <KoXmlNS.h>
+#include <KoDocumentResourceManager.h>
+#include <KoOdfDocument.h>
+#include <KoShapeLoadingContext.h>
+#include <KoProperties.h>
+
+#include <KoLineBorder.h>
+#include <KoGradientBackground.h>
+
+#include <klocale.h>
+
+CompassShapeFactory::CompassShapeFactory()
+: KoShapeFactoryBase(COMPASSSHAPEID, i18n("Compass"))
+{
+ setToolTip(i18n("A compass"));
+ setIcon("ellipse-shape");
+ setLoadingPriority(5);
+ setXmlElementNames(KoXmlNS::svg, QStringList("compass"));
+
+ KoShapeTemplate t;
+ t.id = COMPASSSHAPEID;
+ t.templateId = "compass";
+ t.name = i18n("Compass");
+ t.toolTip = i18n("A compass");
+ t.icon = "ellipse-shape";
+ addTemplate(t);
+}
+
+CompassShapeFactory::~CompassShapeFactory()
+{
+}
+
+KoShape* CompassShapeFactory::createDefaultShape(const KoProperties *params) const
+{
+ CompassShape *compass = new CompassShape();
+ compass->setShapeId(COMPASSSHAPEID);
+ compass->setBorder(new KoLineBorder(1.0));
+
+ QRadialGradient *gradient = new QRadialGradient(QPointF(0.5,0.5), 0.5, QPointF(0.25,0.25));
+ gradient->setCoordinateMode(QGradient::ObjectBoundingMode);
+ gradient->setColorAt(0.0, Qt::white);
+ gradient->setColorAt(1.0, Qt::gray);
+ compass->setBackground(new KoGradientBackground(gradient));
+
+ return compass;
+}
+
+KoShape *CompassShapeFactory::createShape(const KoProperties *params, KoDocumentResourceManager *documentResources) const
+{
+ CompassShape *fooShape = new CompassShape();
+ fooShape->setShapeId(COMPASSSHAPEID);
+
+ return fooShape;
+}
+
+bool CompassShapeFactory::supports(const KoXmlElement& element, KoShapeLoadingContext &context) const
+{
+ Q_UNUSED(context);
+ return element.localName() == "compass";
+}
+
+QList<KoShapeConfigWidgetBase*> CompassShapeFactory::createShapeOptionPanels()
+{
+ QList<KoShapeConfigWidgetBase*> panels;
+ panels.append(new CompassShapeConfigWidget());
+ return panels;
+}
diff --git a/plugins/compassshape/CompassShapeFactory.h b/plugins/compassshape/CompassShapeFactory.h
new file mode 100644
index 0000000..1bb74f2
--- /dev/null
+++ b/plugins/compassshape/CompassShapeFactory.h
@@ -0,0 +1,39 @@
+/* This file is part of the KDE project
+ * Copyright (C) 2011 Jean-Nicolas Artaud <[email protected]>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef COMPASSSHAPEFACTORY_H
+#define COMPASSSHAPEFACTORY_H
+
+#include <KoShapeFactoryBase.h>
+
+#define COMPASSSHAPEID "CompassShapeID"
+
+class CompassShapeFactory : public KoShapeFactoryBase
+{
+public:
+ CompassShapeFactory();
+ virtual ~CompassShapeFactory();
+
+ virtual bool supports(const KoXmlElement& element, KoShapeLoadingContext &context) const;
+ virtual KoShape* createDefaultShape(const KoProperties *params) const;
+ virtual KoShape *createShape(const KoProperties *params, KoDocumentResourceManager *documentResources = 0) const;
+ virtual QList<KoShapeConfigWidgetBase*> createShapeOptionPanels();
+};
+
+#endif // COMPASSSHAPEFACTORY_H
\ No newline at end of file
diff --git a/plugins/compassshape/Globals.h b/plugins/compassshape/Globals.h
new file mode 100644
index 0000000..318553c
--- /dev/null
+++ b/plugins/compassshape/Globals.h
@@ -0,0 +1,28 @@
+/* This file is part of the KDE project
+ * Copyright (C) 2011 Jean-Nicolas Artaud <[email protected]>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#include <QPointF>
+#include <QSizeF>
+
+const QPointF initialsBoxPoint = QPointF(0.0,0.0);
+const QSizeF initialsBoxSize = QSizeF(20.0,20.0);
+const QPointF commentBoxPoint = QPointF(22.0,0.0);
+const QSizeF commentBoxSize = QSizeF(100.0,100.0);
+
+const QSizeF wholeSize = QSizeF(120.0,100.0);
diff --git a/plugins/compassshape/Messages.sh b/plugins/compassshape/Messages.sh
new file mode 100755
index 0000000..46e8652
--- /dev/null
+++ b/plugins/compassshape/Messages.sh
@@ -0,0 +1,2 @@
+#! /bin/sh
+$XGETTEXT *.cpp -o $podir/CompassShape.pot
diff --git a/plugins/compassshape/Plugin.cpp b/plugins/compassshape/Plugin.cpp
new file mode 100644
index 0000000..2e4756e
--- /dev/null
+++ b/plugins/compassshape/Plugin.cpp
@@ -0,0 +1,37 @@
+/* This file is part of the KDE project
+ * Copyright (C) 2011 Jean-Nicolas Artaud <[email protected]>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#include "Plugin.h"
+#include "CompassShapeFactory.h"
+
+#include <KoToolRegistry.h>
+#include <KoShapeRegistry.h>
+
+#include <kpluginfactory.h>
+
+K_PLUGIN_FACTORY(PluginFactory, registerPlugin<Plugin>();)
+K_EXPORT_PLUGIN(PluginFactory("CompassShape"))
+
+Plugin::Plugin(QObject* parent, const QVariantList&)
+: QObject(parent)
+{
+ KoShapeRegistry::instance()->add(new CompassShapeFactory());
+}
+
+#include <Plugin.moc>
diff --git a/plugins/compassshape/Plugin.h b/plugins/compassshape/Plugin.h
new file mode 100644
index 0000000..a01ebdc
--- /dev/null
+++ b/plugins/compassshape/Plugin.h
@@ -0,0 +1,33 @@
+/* This file is part of the KDE project
+ * Copyright (C) 2011 Jean-Nicolas Artaud <[email protected]>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef PLUGIN_H
+#define PLUGIN_H
+
+#include <QObject>
+#include <QVariantList>
+
+class Plugin : public QObject
+{
+ Q_OBJECT
+public:
+ Plugin(QObject* parent, const QVariantList&);
+};
+
+#endif // PLUGIN_H
diff --git a/plugins/compassshape/compassshape.desktop b/plugins/compassshape/compassshape.desktop
new file mode 100644
index 0000000..882550d
--- /dev/null
+++ b/plugins/compassshape/compassshape.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Name=Compass Shape
+X-KDE-ServiceTypes=Calligra/Shape
+Type=Service
+X-KDE-Library=compassshape
+X-Flake-MinVersion=4
+X-Flake-PluginVersion=4
diff --git a/plugins/dockers/shapecollection/ShapeCollectionDocker.cpp b/plugins/dockers/shapecollection/ShapeCollectionDocker.cpp
index f863b3a..cf95067 100644
--- a/plugins/dockers/shapecollection/ShapeCollectionDocker.cpp
+++ b/plugins/dockers/shapecollection/ShapeCollectionDocker.cpp
@@ -231,7 +231,7 @@ void ShapeCollectionDocker::loadDefaultShapes()
int quickCount=0;
QStringList quickShapes;
- quickShapes << "TextShapeID" << "PictureShape" << "KoConnectionShape" << "ChartShape" << "ArtisticText";
+ quickShapes << "TextShapeID" << "PictureShape" << "KoConnectionShape" << "ChartShape" << "CompassShapeID" << "ArtisticText" ;
KConfigGroup cfg = KGlobal::config()->group("KoShapeCollection");
quickShapes = cfg.readEntry("QuickShapes", quickShapes);
_______________________________________________
calligra-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/calligra-devel