Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit fe9d26a7 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Port plugins from klocale to klocalizedstring and kf5::ki18n

parent 08be1101
......@@ -20,7 +20,7 @@
#include "AddTextRangeCommand.h"
#include "ArtisticTextShape.h"
#include <klocale.h>
#include <klocalizedstring.h>
AddTextRangeCommand::AddTextRangeCommand(ArtisticTextTool *tool, ArtisticTextShape *shape, const QString &text, int from)
: m_tool(tool), m_shape(shape), m_plainText(text), m_formattedText(QString(), QFont()), m_from(from)
......
......@@ -39,7 +39,7 @@
#include <SvgWriter.h>
#include <SvgStyleWriter.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include <kdebug.h>
#include <QBuffer>
......
......@@ -24,7 +24,7 @@
#include <KoColorBackground.h>
#include <KoIcon.h>
#include <klocale.h>
#include <klocalizedstring.h>
ArtisticTextShapeFactory::ArtisticTextShapeFactory()
: KoShapeFactoryBase(ArtisticTextShapeID, i18n("ArtisticTextShape"))
......
......@@ -44,7 +44,7 @@
#include <KoInteractionStrategy.h>
#include <KoIcon.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include <kstandardaction.h>
#include <QAction>
#include <kdebug.h>
......
......@@ -22,7 +22,7 @@
#include "ArtisticTextShape.h"
#include <KoIcon.h>
#include <klocale.h>
#include <klocalizedstring.h>
ArtisticTextToolFactory::ArtisticTextToolFactory()
: KoToolFactoryBase("ArtisticTextToolFactoryID")
......
......@@ -20,7 +20,7 @@
#include "AttachTextToPathCommand.h"
#include "ArtisticTextShape.h"
#include <klocale.h>
#include <klocalizedstring.h>
AttachTextToPathCommand::AttachTextToPathCommand( ArtisticTextShape * textShape, KoPathShape * pathShape, KUndo2Command * parent )
: KUndo2Command(parent), m_textShape(textShape), m_pathShape(pathShape)
......
......@@ -19,7 +19,7 @@
*/
#include "ChangeTextAnchorCommand.h"
#include <klocale.h>
#include <klocalizedstring.h>
ChangeTextAnchorCommand::ChangeTextAnchorCommand( ArtisticTextShape * shape, ArtisticTextShape::TextAnchor anchor )
: m_shape(shape), m_anchor( anchor )
......
......@@ -20,7 +20,7 @@
#include "ChangeTextFontCommand.h"
#include "ArtisticTextShape.h"
#include <klocale.h>
#include <klocalizedstring.h>
ChangeTextFontCommand::ChangeTextFontCommand(ArtisticTextShape * shape, const QFont &font, KUndo2Command *parent)
: KUndo2Command(parent), m_shape(shape), m_newFont( font ), m_rangeStart(-1), m_rangeCount(-1)
......
......@@ -20,7 +20,7 @@
#include "ChangeTextOffsetCommand.h"
#include "ArtisticTextShape.h"
#include <klocale.h>
#include <klocalizedstring.h>
ChangeTextOffsetCommand::ChangeTextOffsetCommand( ArtisticTextShape * textShape, qreal oldOffset, qreal newOffset, KUndo2Command * parent )
: KUndo2Command(parent), m_textShape(textShape), m_oldOffset(oldOffset), m_newOffset(newOffset)
......
......@@ -19,7 +19,7 @@
#include "DetachTextFromPathCommand.h"
#include "ArtisticTextShape.h"
#include <klocale.h>
#include <klocalizedstring.h>
DetachTextFromPathCommand::DetachTextFromPathCommand( ArtisticTextShape * textShape, KUndo2Command * parent )
: KUndo2Command(parent), m_textShape(textShape), m_pathShape(0)
......
......@@ -20,7 +20,7 @@
#include "RemoveTextRangeCommand.h"
#include "ArtisticTextShape.h"
#include <klocale.h>
#include <klocalizedstring.h>
RemoveTextRangeCommand::RemoveTextRangeCommand(ArtisticTextTool *tool, ArtisticTextShape *shape, int from, unsigned int count)
: m_tool(tool), m_shape(shape), m_from(from), m_count(count)
......
......@@ -19,7 +19,7 @@
#include "ReplaceTextRangeCommand.h"
#include "ArtisticTextShape.h"
#include <klocale.h>
#include <klocalizedstring.h>
ReplaceTextRangeCommand::ReplaceTextRangeCommand(ArtisticTextShape *shape, const QString &text, int from, int count, ArtisticTextTool *tool, KUndo2Command *parent)
: KUndo2Command(parent), m_tool(tool), m_shape(shape), m_from(from), m_count(count)
......
......@@ -32,7 +32,7 @@
#include <QMenu>
// KDE
#include <klocale.h>
#include <klocalizedstring.h>
#include <kdebug.h>
#include <kmessagebox.h>
#include <kfontchooser.h>
......
......@@ -27,7 +27,7 @@
// KDE
#include <kiconloader.h>
#include <kpluginfactory.h>
#include <klocale.h>
#include <klocalizedstring.h>
// Calligra
#include <KoIcon.h>
......
......@@ -32,7 +32,7 @@
#include <QPainter>
// KDE
#include <klocale.h>
#include <klocalizedstring.h>
#include <kdebug.h>
// Calligra
......
......@@ -29,7 +29,7 @@
#include <KoIcon.h>
// KDE
#include <klocale.h>
#include <klocalizedstring.h>
......
......@@ -34,7 +34,7 @@
#include <QPainter>
// KDE
#include <klocale.h>
#include <klocalizedstring.h>
// KChart
#include <KChartDataValueAttributes>
......
......@@ -21,7 +21,7 @@
#include "FontEditorDialog.h"
#include <klocale.h>
#include <klocalizedstring.h>
#include <kfontchooser.h>
using namespace KoChart;
......
......@@ -90,6 +90,6 @@ endif ()
add_library(kolcmsengine MODULE ${lcmsengine_SRCS})
kcoreaddons_desktop_to_json(kolcmsengine kolcmsengine.desktop)
target_link_libraries(kolcmsengine pigmentcms KF5::KDELibs4Support ${LCMS2_LIBRARIES} ${LINK_OPENEXR_LIB})
target_link_libraries(kolcmsengine pigmentcms KF5::I18n KF5::KDELibs4Support ${LCMS2_LIBRARIES} ${LINK_OPENEXR_LIB})
install(TARGETS kolcmsengine DESTINATION ${CALLIGRA_PLUGIN_INSTALL_DIR})
......@@ -22,7 +22,7 @@
#include "KoColorModelStandardIds.h"
#include <klocale.h>
#include <klocalizedstring.h>
#include "LcmsColorSpace.h"
......
......@@ -28,7 +28,7 @@
#include <kcomponentdata.h>
#include <kpluginfactory.h>
#include <kstandarddirs.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include <kglobal.h>
#include <kdebug.h>
......
......@@ -21,7 +21,7 @@
#include <QDomElement>
#include <kdebug.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include "compositeops/KoCompositeOps.h"
......
......@@ -21,7 +21,7 @@
#include <QDomElement>
#include <kdebug.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include "compositeops/KoCompositeOps.h"
......
......@@ -22,7 +22,7 @@
#include <QDomElement>
#include <kdebug.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include "compositeops/KoCompositeOps.h"
......
......@@ -21,7 +21,7 @@
#include <QDomElement>
#include <kdebug.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include <KoIntegerMaths.h>
#include <KoColorSpaceRegistry.h>
......
......@@ -18,7 +18,7 @@
#ifndef COLORSPACE_GRAYSCALE_F32_H_
#define COLORSPACE_GRAYSCALE_F32_H_
#include <klocale.h>
#include <klocalizedstring.h>
#include <KoColorSpaceTraits.h>
#include <KoColorModelStandardIds.h>
#include "LcmsColorSpace.h"
......
......@@ -21,7 +21,7 @@
#include <QDomElement>
#include <kdebug.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include <KoIntegerMaths.h>
#include <KoColorSpaceRegistry.h>
......
......@@ -18,7 +18,7 @@
#ifndef KIS_COLORSPACE_GRAYSCALE_U16_H_
#define KIS_COLORSPACE_GRAYSCALE_U16_H_
#include <klocale.h>
#include <klocalizedstring.h>
#include "LcmsColorSpace.h"
#include <KoColorSpaceTraits.h>
#include "KoColorModelStandardIds.h"
......
......@@ -20,7 +20,7 @@
#include <QDomElement>
#include <kdebug.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include <KoIntegerMaths.h>
#include <KoColorSpaceRegistry.h>
......
......@@ -18,7 +18,7 @@
#ifndef KIS_GRAY_COLORSPACE_H_
#define KIS_GRAY_COLORSPACE_H_
#include <klocale.h>
#include <klocalizedstring.h>
#include <LcmsColorSpace.h>
#include <KoColorSpaceTraits.h>
#include "KoColorModelStandardIds.h"
......
......@@ -21,7 +21,7 @@
#include <QDomElement>
#include <klocale.h>
#include <klocalizedstring.h>
#include "../compositeops/KoCompositeOps.h"
......
......@@ -21,7 +21,7 @@
#include <QDomElement>
#include <klocale.h>
#include <klocalizedstring.h>
#include "../compositeops/KoCompositeOps.h"
......
......@@ -21,7 +21,7 @@
#include <QDomElement>
#include <klocale.h>
#include <klocalizedstring.h>
#include "../compositeops/KoCompositeOps.h"
......
......@@ -21,7 +21,7 @@
#include <QDomElement>
#include <klocale.h>
#include <klocalizedstring.h>
#include "compositeops/KoCompositeOps.h"
......
......@@ -21,7 +21,7 @@
#include <QDomElement>
#include <klocale.h>
#include <klocalizedstring.h>
#include "compositeops/KoCompositeOps.h"
......
......@@ -21,7 +21,7 @@
#include <QDomElement>
#include <klocale.h>
#include <klocalizedstring.h>
#include "compositeops/KoCompositeOps.h"
#include "compositeops/RgbCompositeOps.h"
......
......@@ -22,7 +22,7 @@
#include <QDomElement>
#include <QImage>
#include <klocale.h>
#include <klocalizedstring.h>
#include <KoIntegerMaths.h>
#include <KoColorSpaceRegistry.h>
......
......@@ -18,7 +18,7 @@
#ifndef KO_STRATEGY_COLORSPACE_RGB_H_
#define KO_STRATEGY_COLORSPACE_RGB_H_
#include <klocale.h>
#include <klocalizedstring.h>
#include <LcmsColorSpace.h>
#include <KoColorSpaceTraits.h>
#include "KoColorModelStandardIds.h"
......
......@@ -21,7 +21,7 @@
#include <QDomElement>
#include <kdebug.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include "compositeops/KoCompositeOps.h"
......
......@@ -21,7 +21,7 @@
#include <QDomElement>
#include <kdebug.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include "compositeops/KoCompositeOps.h"
......
......@@ -21,7 +21,7 @@
#include <QDomElement>
#include <kdebug.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include "compositeops/KoCompositeOps.h"
......
......@@ -21,7 +21,7 @@
#include <QDomElement>
#include <kdebug.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include "compositeops/KoCompositeOps.h"
......
......@@ -21,7 +21,7 @@
#include <QDomElement>
#include <kdebug.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include "compositeops/KoCompositeOps.h"
......
......@@ -21,7 +21,7 @@
#include <QDomElement>
#include <kdebug.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include "compositeops/KoCompositeOps.h"
......
......@@ -21,7 +21,7 @@
#include <QDomElement>
#include <kdebug.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include "compositeops/KoCompositeOps.h"
......
......@@ -31,7 +31,7 @@ set(TestKoLcmsColorProfile_test_SRCS TestKoLcmsColorProfile.cpp )
kde4_add_unit_test(TestKoLcmsColorProfile TESTNAME libs-pigment-TestKoLcmsColorProfile ${TestKoLcmsColorProfile_test_SRCS})
target_link_libraries(TestKoLcmsColorProfile pigmentcms KF5::KDELibs4Support Qt5::Test ${LCMS2_LIBRARIES} kolcmsengine )
target_link_libraries(TestKoLcmsColorProfile pigmentcms KF5::I18n KF5::KDELibs4Support Qt5::Test ${LCMS2_LIBRARIES} kolcmsengine )
########### next target ###############
......@@ -39,7 +39,7 @@ set(TestKoColorSpaceRegistry_test_SRCS TestKoColorSpaceRegistry.cpp )
kde4_add_unit_test(TestKoColorSpaceRegistry TESTNAME libs-pigment-TestKoColorSpaceRegistry ${TestKoColorSpaceRegistry_test_SRCS})
target_link_libraries(TestKoColorSpaceRegistry pigmentcms ${LCMS2_LIBRARIES} KF5::KDELibs4Support Qt5::Test)
target_link_libraries(TestKoColorSpaceRegistry pigmentcms ${LCMS2_LIBRARIES} KF5::I18n KF5::KDELibs4Support Qt5::Test)
########### next target ###############
......
......@@ -36,7 +36,7 @@
#include <KoApplication.h>
#include <kmessagebox.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include <QPainter>
#include <QGradient>
......
......@@ -20,7 +20,7 @@
#include "CommentShapeFactory.h"
#include "CommentShape.h"
#include <klocale.h>
#include <klocalizedstring.h>
#include <KoXmlNS.h>
#include <KoDocumentResourceManager.h>
#include <KoDocumentBase.h>
......
......@@ -54,7 +54,7 @@
#include <KoIcon.h>
#include <kaction.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include <kdebug.h>
#include <kstandarddirs.h>
#include <kundo2command.h>
......
......@@ -22,7 +22,7 @@
#include "ConnectionTool.h"
#include <KoIcon.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include <kdebug.h>
ConnectionToolFactory::ConnectionToolFactory()
......
......@@ -22,7 +22,7 @@
#include "DefaultTool.h"
#include <KoIcon.h>
#include <klocale.h>
#include <klocalizedstring.h>
DefaultToolFactory::DefaultToolFactory()
: KoToolFactoryBase(KoInteractionTool_ID)
......
......@@ -31,7 +31,7 @@
#include <KoPointerEvent.h>
#include <KoToolBase.h>
#include <KoSelection.h>
#include <klocale.h>
#include <klocalizedstring.h>
ShapeMoveStrategy::ShapeMoveStrategy(KoToolBase *tool, const QPointF &clicked)
: KoInteractionStrategy(tool)
......
......@@ -30,7 +30,7 @@
#include <KoToolBase.h>
#include <KoSelection.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include <limits>
#include <math.h>
......
......@@ -31,7 +31,7 @@
#include <QPointF>
#include <math.h>
#include <klocale.h>
#include <klocalizedstring.h>
ShapeRotateStrategy::ShapeRotateStrategy(KoToolBase *tool, const QPointF &clicked, Qt::MouseButtons buttons)
: KoInteractionStrategy(tool)
......
......@@ -36,7 +36,7 @@
#include <math.h>
#include <kdebug.h>
#include <klocale.h>
#include <klocalizedstring.h>
ShapeShearStrategy::ShapeShearStrategy( KoToolBase *tool, const QPointF &clicked, KoFlake::SelectionHandle direction )
: KoInteractionStrategy(tool)
......
......@@ -19,7 +19,7 @@
#include "GuidesToolFactory.h"
#include "GuidesTool.h"
#include <klocale.h>
#include <klocalizedstring.h>
GuidesToolFactory::GuidesToolFactory()
: KoToolFactoryBase(GuidesToolId)
......
......@@ -21,7 +21,7 @@
#include <KoSnapGuide.h>
#include <KoIcon.h>
#include <klocale.h>
#include <klocalizedstring.h>
GuidesToolOptionWidget::GuidesToolOptionWidget(QWidget *parent)
:QWidget(parent)
......
......@@ -28,7 +28,7 @@
#include <KoShapeLoadingContext.h>
#include <KoOdf.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include <kdebug.h>
#include <kmimetype.h>
#include <kurl.h>
......
......@@ -34,7 +34,7 @@
#include <KoIcon.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include <kdebug.h>
#include <kstandarddirs.h>
#include <kcomponentdata.h>
......
......@@ -30,7 +30,7 @@
#include <KoParameterShape.h>
#include <KoUnit.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include <QStackedWidget>
......
......@@ -27,7 +27,7 @@
#include "SnapGuideDocker.h"
#include <klocale.h>
#include <klocalizedstring.h>
#include <KoCanvasBase.h>
#include <KoCanvasObserverBase.h>
......