Revision 851499

Go back to digest for 24th August 2008

Optimization in Office

Thomas Zander committed changes in /trunk/koffice:

Fixes: slowness on embedded devices.

Details: On embedded devices like n810 (which uses an Arm processor) usage of double is incredably expensive. In almost all cases our usage of double can be done just as well using floats on those devices.
This is something that Qt does as well using the type 'qreal' which is a double on all modern platforms but float on those that don't have doublenatively.

So we get the best of both worlds by replacing double with qreal.

File Changes

Modified 367 files
  • /trunk/koffice
  •   /karbon/common/KarbonGlobal.cpp
  •   /karbon/common/KarbonGlobal.h
  •   /karbon/common/KarbonGradientHelper.cpp
  •   /karbon/ui/KarbonPart.cpp
  •   /karbon/ui/KarbonView.cpp
  •   /karbon/ui/KarbonZoomController.cpp
  •   /karbon/ui/KarbonZoomController.h
  •   /krita/ui/kis_layer_box.cpp
  •   /krita/ui/kis_layer_box.h
  •   /krita/ui/kis_node_manager.cpp
  •   /krita/ui/kis_node_manager.h
  •   /krita/ui/kis_tool_paint.cc
  •   /krita/ui/kis_tool_paint.h
  •   /krita/ui/kis_view2.cpp
  •   /kspread/part/View.cpp
  •   /kspread/part/View.h
  •   /kword/part/KWApplicationConfig.cpp
  •   /kword/part/KWApplicationConfig.h
  •   /kword/part/KWCanvas.cpp
  •   /kword/part/KWCanvas.h
  •   /kword/part/KWDLoader.cpp
  •   /kword/part/KWDocument.cpp
  •   /kword/part/KWOdfSharedLoadingData.cpp
  •   /kword/part/KWPage.cpp
  •   /kword/part/KWPage.h
  •   /kword/part/KWPageManager.cpp
  •   /kword/part/KWPageManager.h
  •   /kword/part/KWPageStyle.h
  •   /kword/part/KWView.cpp
  •   /kword/part/KWView.h
  •   /kword/part/KWViewModeNormal.cpp
  •   /kword/part/KWViewModeNormal.h
  •   /libs/flake/KoCanvasBase.h
  •   /libs/flake/KoCanvasController.cpp
  •   /libs/flake/KoCanvasController.h
  •   /libs/flake/KoCanvasResourceProvider.h
  •   /libs/flake/KoConnectionShape.cpp
  •   /libs/flake/KoConnectionShape.h
  •   /libs/flake/KoImageData.cpp
  •   /libs/flake/KoInsets.h
  •   /libs/flake/KoLineBorder.cpp
  •   /libs/flake/KoLineBorder.h
  •   /libs/flake/KoPathSegment.cpp
  •   /libs/flake/KoPathShape.cpp
  •   /libs/flake/KoPathShape.h
  •   /libs/flake/KoPathShapeLoader.cpp
  •   /libs/flake/KoPathShapeLoader.h
  •   /libs/flake/KoShape.cpp
  •   /libs/flake/KoShape.h
  •   /libs/flake/KoShapeContainer.cpp
  •   /libs/flake/KoShapeManager.cpp
  •   /libs/flake/KoShapeResizeStrategy.cpp
  •   /libs/flake/KoShapeRotateStrategy.cpp
  •   /libs/flake/KoShapeShearStrategy.cpp
  •   /libs/flake/KoShapeShearStrategy.h
  •   /libs/flake/KoSnapGuide.cpp
  •   /libs/flake/KoSnapStrategy.cpp
  •   /libs/flake/KoSnapStrategy.h
  •   /libs/flake/KoSvgPathParser.cpp
  •   /libs/flake/KoSvgPathParser.h
  •   /libs/flake/KoTool.h
  •   /libs/guiutils/KoColorSlider.cpp
  •   /libs/guiutils/KoDocumentSectionDelegate.cpp
  •   /libs/guiutils/KoGuideLineDia.cpp
  •   /libs/guiutils/KoGuideLineDia.h
  •   /libs/guiutils/KoGuides.cpp
  •   /libs/guiutils/KoGuides.h
  •   /libs/guiutils/KoPageLayoutColumns.cpp
  •   /libs/guiutils/KoPageLayoutColumns.h
  •   /libs/guiutils/KoPageLayoutDia.cpp
  •   /libs/guiutils/KoPageLayoutDia.h
  •   /libs/guiutils/KoPageLayoutSize.cpp
  •   /libs/guiutils/KoPageLayoutSize.h
  •   /libs/guiutils/KoPageLayoutWidget.cpp
  •   /libs/guiutils/KoPagePreviewWidget.cpp
  •   /libs/guiutils/KoPagePreviewWidget.h
  •   /libs/guiutils/KoResourceItemChooser.cpp
  •   /libs/guiutils/KoRuler.cpp
  •   /libs/guiutils/KoRuler.h
  •   /libs/guiutils/KoRuler_p.h
  •   /libs/guiutils/KoShadowConfigWidget.cpp
  •   /libs/guiutils/KoShapePainter.cpp
  •   /libs/guiutils/KoSliderCombo.cpp
  •   /libs/guiutils/KoSliderCombo.h
  •   /libs/guiutils/KoTriangleColorSelector.cpp
  •   /libs/guiutils/KoUnitDoubleSpinBox.h
  •   /libs/guiutils/KoXYColorSelector.cpp
  •   /libs/guiutils/KoZoomAction.cpp
  •   /libs/guiutils/KoZoomAction.h
  •   /libs/guiutils/KoZoomController.cpp
  •   /libs/guiutils/KoZoomController.h
  •   /libs/guiutils/KoZoomHandler.cpp
  •   /libs/guiutils/KoZoomHandler.h
  •   /libs/kopageapp/KoPACanvas.cpp
  •   /libs/kopageapp/KoPACanvas.h
  •   /libs/kopageapp/KoPADocument.cpp
  •   /libs/kopageapp/KoPADocumentModel.cpp
  •   /libs/kopageapp/KoPAUtil.cpp
  •   /libs/kopageapp/KoPAView.cpp
  •   /libs/kopageapp/KoPAView.h
  •   /libs/kotext/KoText.h
  •   /libs/kotext/KoTextBlockBorderData.cpp
  •   /libs/kotext/KoTextBlockBorderData.h
  •   /libs/kotext/KoTextBlockData.cpp
  •   /libs/kotext/KoTextBlockData.h
  •   /libs/kotext/KoTextDocumentLayout.cpp
  •   /libs/kotext/KoTextDocumentLayout.h
  •   /libs/kotext/KoTextEditingPlugin.cpp
  •   /libs/kotext/KoTextShapeContainerModel.cpp
  •   /libs/kotext/KoTextShapeData.cpp
  •   /libs/kotext/KoTextShapeData.h
  •   /libs/main/KoChild.cpp
  •   /libs/main/KoChild.h
  •   /libs/main/KoContainerHandler.cpp
  •   /libs/main/KoDocument.cpp
  •   /libs/main/KoDocumentChild.cpp
  •   /libs/main/KoGridData.cpp
  •   /libs/main/KoGridData.h
  •   /libs/main/KoGuidesData.cpp
  •   /libs/main/KoGuidesData.h
  •   /libs/main/KoMainWindow.cpp
  •   /libs/main/KoOdfGraphicStyles.cpp
  •   /libs/main/KoPageFormat.cpp
  •   /libs/main/KoPageFormat.h
  •   /libs/main/KoPageLayout.h
  •   /libs/main/KoPictureClipart.cpp
  •   /libs/main/KoPictureEps.cpp
  •   /libs/main/KoPictureImage.cpp
  •   /libs/main/KoProperties.cpp
  •   /libs/main/KoProperties.h
  •   /libs/main/KoRTree.h
  •   /libs/main/KoView.cpp
  •   /libs/main/KoView.h
  •   /libs/main/KoViewConverter.h
  •   /libs/odf/KoGenStyle.cpp
  •   /libs/odf/KoGenStyle.h
  •   /libs/odf/KoOasisSettings.cpp
  •   /libs/odf/KoOasisSettings.h
  •   /libs/odf/KoStyleStack.cpp
  •   /libs/odf/KoStyleStack.h
  •   /libs/odf/KoUnit.cpp
  •   /libs/odf/KoUnit.h
  •   /libs/pigment/KoBasicHistogramProducers.cpp
  •   /libs/pigment/KoBasicHistogramProducers.h
  •   /libs/pigment/KoChromaticities.h
  •   /libs/pigment/KoColorSpace.h
  •   /libs/pigment/KoColorSpaceAbstract.h
  •   /libs/pigment/KoColorSpaceMaths.cpp
  •   /libs/pigment/KoColorSpaceMaths.h
  •   /libs/pigment/KoColorSpaceTraits.h
  •   /libs/pigment/KoCtlColorSpace.cpp
  •   /libs/pigment/KoCtlColorSpace.h
  •   /libs/pigment/KoHistogramProducer.h
  •   /libs/pigment/KoLabDarkenColorTransformation.h
  •   /libs/pigment/KoLcmsColorSpace.h
  •   /libs/resources/KoAbstractGradient.cpp
  •   /libs/resources/KoAbstractGradient.h
  •   /libs/resources/KoColorSet.cpp
  •   /libs/resources/KoSegmentGradient.cc
  •   /libs/resources/KoSegmentGradient.h
  •   /libs/resources/KoStopGradient.cpp
  •   /libs/resources/KoStopGradient.h
  •   /libs/store/KoXmlReader.cpp
  •   /libs/store/KoXmlWriter.cpp
  •   /libs/store/KoXmlWriter.h
  •   /plugins/divineProportion/DivineProportionShape.cpp
  •   /plugins/divineProportion/DivineProportionShape.h
  •   /plugins/musicshape/Engraver.cpp
  •   /plugins/musicshape/MusicStyle.cpp
  •   /plugins/musicshape/MusicStyle.h
  •   /plugins/musicshape/Renderer.cpp
  •   /plugins/musicshape/Renderer.h
  •   /plugins/musicshape/SimpleEntryTool.cpp
  •   /plugins/simpletextshape/SimpleTextShape.cpp
  •   /plugins/simpletextshape/SimpleTextTool.cpp
  •   /plugins/textshape/Layout.cpp
  •   /plugins/textshape/Layout.h
  •   /plugins/textshape/ListItemsHelper.cpp
  •   /plugins/textshape/TextShape.cpp
  •   /plugins/textshape/TextTool.cpp
  •   /karbon/plugins/flattenpath/FlattenPathPlugin.cpp
  •   /karbon/plugins/flattenpath/FlattenPathPlugin.h
  •   /karbon/plugins/flattenpath/KarbonPathFlattenCommand.cpp
  •   /karbon/plugins/flattenpath/KarbonPathFlattenCommand.h
  •   /karbon/plugins/refinepath/KarbonPathRefineCommand.cpp
  •   /karbon/plugins/roundcorners/RoundCornersCommand.cpp
  •   /karbon/plugins/roundcorners/RoundCornersCommand.h
  •   /karbon/plugins/roundcorners/RoundCornersPlugin.cpp
  •   /karbon/plugins/roundcorners/RoundCornersPlugin.h
  •   /karbon/plugins/tools/KarbonCurveFit.cpp
  •   /karbon/plugins/tools/KarbonGradientEditStrategy.cpp
  •   /karbon/plugins/tools/KarbonGradientEditStrategy.h
  •   /karbon/plugins/tools/KarbonPatternEditStrategy.cpp
  •   /karbon/plugins/tools/KarbonPatternEditStrategy.h
  •   /karbon/plugins/tools/KarbonPencilTool.cpp
  •   /karbon/plugins/tools/KarbonPencilTool.h
  •   /karbon/plugins/whirlpinch/KarbonWhirlPinchCommand.cpp
  •   /karbon/plugins/whirlpinch/KarbonWhirlPinchCommand.h
  •   /karbon/plugins/whirlpinch/WhirlPinchPlugin.cpp
  •   /karbon/plugins/whirlpinch/WhirlPinchPlugin.h
  •   /karbon/ui/dialogs/KarbonConfigureDialog.cpp
  •   /karbon/ui/dialogs/KarbonConfigureDialog.h
  •   /karbon/ui/dockers/KarbonLayerModel.cpp
  •   /karbon/ui/dockers/vdocumentdocker.cc
  •   /karbon/ui/dockers/vdocumentdocker.h
  •   /karbon/ui/widgets/KarbonCanvas.cpp
  •   /karbon/ui/widgets/KarbonCanvas.h
  •   /karbon/ui/widgets/KarbonGradientTabWidget.cpp
  •   /karbon/ui/widgets/KarbonGradientTabWidget.h
  •   /karbon/ui/widgets/KarbonGradientWidget.cpp
  •   /krita/colorspaces/gray_u16_no_alpa/kis_gray_u16_colorspace.cc
  •   /krita/colorspaces/gray_u8_no_alpha/kis_gray_colorspace.cc
  •   /krita/colorspaces/xyz_u16/kis_xyz_u16_colorspace.cc
  •   /kword/part/commands/KWPagePropertiesCommand.cpp
  •   /kword/part/commands/KWPageRemoveCommand.cpp
  •   /kword/part/dialogs/KWDocumentColumns.cpp
  •   /kword/part/dialogs/KWFrameGeometry.cpp
  •   /kword/part/dialogs/KWFrameGeometry.h
  •   /kword/part/dialogs/KWFrameRunaroundProperties.cpp
  •   /kword/part/dialogs/KWPrintingDialog.cpp
  •   /kword/part/frames/KWAnchorStrategy.cpp
  •   /kword/part/frames/KWAnchorStrategy.h
  •   /kword/part/frames/KWFrame.cpp
  •   /kword/part/frames/KWFrame.h
  •   /kword/part/frames/KWFrameLayout.cpp
  •   /kword/part/frames/KWTableFrame.cpp
  •   /kword/part/frames/KWTableFrame.h
  •   /kword/part/frames/KWTextDocumentLayout.cpp
  •   /kword/part/frames/KWTextFrame.cpp
  •   /kword/part/frames/KWTextFrame.h
  •   /kword/part/frames/KWTextFrameSet.cpp
  •   /kword/part/frames/KWTextFrameSet.h
  •   /kword/plugins/scripting/Frame.h
  •   /kword/plugins/scripting/Page.h
  •   /kword/plugins/scripting/PageLayout.h
  •   /kword/plugins/scripting/Style.h
  •   /kword/plugins/scripting/TextDocument.h
  •   /libs/flake/commands/KoPathPointInsertCommand.cpp
  •   /libs/flake/commands/KoPathPointInsertCommand.h
  •   /libs/flake/commands/KoShapeDistributeCommand.cpp
  •   /libs/flake/commands/KoShapeDistributeCommand.h
  •   /libs/flake/commands/KoShapeShearCommand.cpp
  •   /libs/flake/commands/KoShapeShearCommand.h
  •   /libs/flake/tests/MockShapes.h
  •   /libs/flake/tools/KoCreatePathTool.cpp
  •   /libs/flake/tools/KoCreateShapeStrategy.cpp
  •   /libs/flake/tools/KoInteractionStrategy.cpp
  •   /libs/flake/tools/KoPathConnectionPointStrategy.cpp
  •   /libs/flake/tools/KoPathTool.cpp
  •   /libs/flake/tools/KoShapeRubberSelectStrategy.cpp
  •   /libs/guiutils/tests/zoomhandler_test.cpp
  •   /libs/kotext/styles/KoCharacterStyle.cpp
  •   /libs/kotext/styles/KoCharacterStyle.h
  •   /libs/kotext/styles/KoListLevelProperties.cpp
  •   /libs/kotext/styles/KoListLevelProperties.h
  •   /libs/kotext/styles/KoParagraphStyle.cpp
  •   /libs/kotext/styles/KoParagraphStyle.h
  •   /libs/kotext/styles/KoTabulator.h
  •   /libs/kotext/tests/kobordertest.cpp
  •   /libs/kotext/tests/TestDocumentLayout.cpp
  •   /libs/main/tests/kopropertiestest.cpp
  •   /libs/main/tests/rtreetestapp.h
  •   /libs/pigment/colorprofiles/KoCtlColorProfile.cpp
  •   /libs/pigment/colorprofiles/KoHdrColorProfile.cpp
  •   /libs/pigment/colorprofiles/KoHdrColorProfile.h
  •   /libs/pigment/colorprofiles/KoIccColorProfile.cpp
  •   /libs/pigment/colorprofiles/KoIccColorProfile.h
  •   /libs/pigment/colorprofiles/KoLcmsColorProfileContainer.cpp
  •   /libs/pigment/colorprofiles/KoLcmsColorProfileContainer.h
  •   /libs/pigment/colorspaces/KoAlphaColorSpace.h
  •   /libs/pigment/colorspaces/KoLabColorSpace.cpp
  •   /libs/pigment/colorspaces/KoRgbU16ColorSpace.cpp
  •   /libs/pigment/colorspaces/KoRgbU8ColorSpace.cc
  •   /libs/pigment/colorspaces/KoRgbU8CompositeOp.cpp
  •   /libs/pigment/tests/TestKoLcmsColorProfile.cpp
  •   /libs/store/tests/xmlwritertest.cpp
  •   /plugins/colorspaces/cmyk_u16/kis_cmyk_u16_colorspace.cc
  •   /plugins/colorspaces/cmyk_u8/kis_cmyk_colorspace.cc
  •   /plugins/colorspaces/gray_u16/kis_gray_u16_colorspace.cc
  •   /plugins/colorspaces/gray_u8/kis_gray_colorspace.cc
  •   /plugins/defaultTools/defaulttool/DefaultTool.cpp
  •   /plugins/defaultTools/defaulttool/DefaultTool.h
  •   /plugins/defaultTools/defaulttool/DefaultToolWidget.cpp
  •   /plugins/defaultTools/defaulttool/SelectionDecorator.cpp
  •   /plugins/defaultTools/defaulttool/ShapeResizeStrategy.cpp
  •   /plugins/defaultTools/defaulttool/ShapeRotateStrategy.cpp
  •   /plugins/defaultTools/defaulttool/ShapeShearStrategy.cpp
  •   /plugins/defaultTools/defaulttool/ShapeShearStrategy.h
  •   /plugins/defaultTools/guidestool/GuidesTool.cpp
  •   /plugins/defaultTools/guidestool/GuidesTool.h
  •   /plugins/defaultTools/guidestool/GuidesToolOptionWidget.cpp
  •   /plugins/defaultTools/guidestool/GuidesToolOptionWidget.h
  •   /plugins/dockers/shapecollection/KoShapeCollectionDocker.cpp
  •   /plugins/dockers/shapeselector/Canvas.cpp
  •   /plugins/dockers/shapeselector/Canvas.h
  •   /plugins/dockers/shapeselector/FolderBorder.cpp
  •   /plugins/dockers/shapeselector/FolderShapeModel.cpp
  •   /plugins/dockers/shapeselector/ZoomHandler.cpp
  •   /plugins/dockers/shapeselector/ZoomHandler.h
  •   /plugins/dockers/strokedocker/StrokeDocker.cpp
  •   /plugins/musicshape/actions/AbstractNoteMusicAction.cpp
  •   /plugins/musicshape/actions/AbstractNoteMusicAction.h
  •   /plugins/musicshape/actions/AccidentalAction.cpp
  •   /plugins/musicshape/actions/AccidentalAction.h
  •   /plugins/musicshape/actions/DotsAction.cpp
  •   /plugins/musicshape/actions/DotsAction.h
  •   /plugins/musicshape/actions/EraserAction.cpp
  •   /plugins/musicshape/actions/EraserAction.h
  •   /plugins/musicshape/actions/NoteEntryAction.cpp
  •   /plugins/musicshape/actions/SelectionAction.cpp
  •   /plugins/musicshape/actions/TiedNoteAction.cpp
  •   /plugins/musicshape/actions/TiedNoteAction.h
  •   /plugins/musicshape/core/Bar.cpp
  •   /plugins/musicshape/core/Bar.h
  •   /plugins/musicshape/core/Chord.cpp
  •   /plugins/musicshape/core/Chord.h
  •   /plugins/musicshape/core/MusicXmlReader.cpp
  •   /plugins/musicshape/core/Sheet.cpp
  •   /plugins/musicshape/core/Staff.cpp
  •   /plugins/musicshape/core/Staff.h
  •   /plugins/musicshape/core/StaffElement.cpp
  •   /plugins/musicshape/core/StaffElement.h
  •   /plugins/musicshape/core/StaffSystem.cpp
  •   /plugins/musicshape/core/StaffSystem.h
  •   /plugins/musicshape/core/VoiceElement.cpp
  •   /plugins/musicshape/core/VoiceElement.h
  •   /plugins/pathshapes/ellipse/EllipseShapeConfigCommand.cpp
  •   /plugins/pathshapes/ellipse/EllipseShapeConfigCommand.h
  •   /plugins/pathshapes/ellipse/KoEllipseShape.cpp
  •   /plugins/pathshapes/ellipse/KoEllipseShape.h
  •   /plugins/pathshapes/enhancedpath/KoEnhancedPathCommand.cpp
  •   /plugins/pathshapes/enhancedpath/KoEnhancedPathCommand.h
  •   /plugins/pathshapes/enhancedpath/KoEnhancedPathFormula.cpp
  •   /plugins/pathshapes/enhancedpath/KoEnhancedPathFormula.h
  •   /plugins/pathshapes/enhancedpath/KoEnhancedPathHandle.cpp
  •   /plugins/pathshapes/enhancedpath/KoEnhancedPathParameter.cpp
  •   /plugins/pathshapes/enhancedpath/KoEnhancedPathParameter.h
  •   /plugins/pathshapes/enhancedpath/KoEnhancedPathShape.cpp
  •   /plugins/pathshapes/enhancedpath/KoEnhancedPathShape.h
  •   /plugins/pathshapes/enhancedpath/KoEnhancedPathShapeFactory.cpp
  •   /plugins/pathshapes/rectangle/KoRectangleShape.cpp
  •   /plugins/pathshapes/rectangle/KoRectangleShape.h
  •   /plugins/pathshapes/rectangle/RectangleShapeConfigCommand.cpp
  •   /plugins/pathshapes/rectangle/RectangleShapeConfigCommand.h
  •   /plugins/pathshapes/rectangle/RectangleShapeConfigWidget.cpp
  •   /plugins/pathshapes/spiral/KoSpiralShape.cpp
  •   /plugins/pathshapes/spiral/KoSpiralShape.h
  •   /plugins/pathshapes/spiral/SpiralShapeConfigCommand.cpp
  •   /plugins/pathshapes/spiral/SpiralShapeConfigCommand.h
  •   /plugins/pathshapes/star/KoStarShape.cpp
  •   /plugins/pathshapes/star/KoStarShape.h
  •   /plugins/pathshapes/star/StarShapeConfigCommand.cpp
  •   /plugins/pathshapes/star/StarShapeConfigCommand.h
  •   /plugins/textediting/autocorrection/Autocorrect.cpp
  •   /plugins/textediting/autocorrection/Autocorrect.h
  •   /plugins/textediting/thesaurus/Thesaurus.cpp
  •   /plugins/textshape/dialogs/ParagraphIndentSpacing.cpp
  •   /plugins/textshape/tests/TestDocumentLayout.cpp
  •   /plugins/textshape/tests/TestLists.cpp
  •   /karbon/plugins/tools/CalligraphyTool/KarbonCalligraphicShape.cpp
  •   /karbon/plugins/tools/CalligraphyTool/KarbonCalligraphicShape.h
  •   /karbon/plugins/tools/CalligraphyTool/KarbonCalligraphyOptionWidget.h
  •   /karbon/plugins/tools/CalligraphyTool/KarbonCalligraphyTool.cpp
  •   /karbon/plugins/tools/CalligraphyTool/KarbonCalligraphyTool.h
  •   /karbon/plugins/tools/CalligraphyTool/KarbonSimplifyPath.cpp
  •   /karbon/plugins/tools/CalligraphyTool/KarbonSimplifyPath.h
  •   /libs/kotext/opendocument/tests/TestLoading.cpp
367 files changed in total