1. 20 Feb, 2008 1 commit
  2. 15 Oct, 2007 1 commit
  3. 15 Aug, 2007 1 commit
    • Jan Hambrecht's avatar
      Changed api for transformation related methods in KoShape. · c0983937
      Jan Hambrecht authored
      When doing shape transformations one has to know that there
      are two coordinate systems involved. The first one is the
      global (absolute) coordinates system, the one that corresponds
      to the document. The second is the local coordinates system
      that is only relevant to a single shape. To distinguish on
      which coordinate system a methods works, there is the
      "absolute" prefix for the methods dealing with the global,
      document based coordinate system.
      
      methods working relative to the globale coordinate system:
      
      absolutePosition()
      setAbsolutePsotion()
      absoluteTransformation() -> was transformationMatrix before
      applyAbsoluteTransformation() -> was applyTransformation()
      
      methods working relative to the shape coordinate system:
      
      position()
      setPosition()
      rotate()
      setShear()
      setScale()
      transformation()
      setTransformation()
      applyTransformation()
      
      Additionally i removed the moveBy methods which used to
      be relative to the global coordinate system. I removed
      that one as one can simply type
      setAbsolutePosition( absolutePosition() + QPoinF(dx,dy) )
      to have the same effect as before.
      
      I hope that makes it easier to use transformation of
      shapes.
      
      
      svn path=/trunk/koffice/; revision=700574
      c0983937
  4. 31 Jul, 2007 1 commit
    • Thomas Zander's avatar
      Thanks to the new kDebug stuff, which is based on qDebug, we no longer · cf7bde75
      Thomas Zander authored
      need to pass an endline and there will be a space placed between
      arguments automatically.
      This means that everywhere we added those manually we get duplicates, so
      lets get rid of those.
      
      oh; here is the perl script I used; (regexps rock!)
      
      #!/usr/bin/perl -ni
      
      s/(kDebug\s*\(.*?)(\s*<<\s*endl\s*;)/$1;/;
      while(s/(kDebug\s*\(.*)((\\n|\s+)\")/$1"/s) {}
      print $_;
      
      svn path=/trunk/koffice/; revision=694641
      cf7bde75
  5. 03 Jul, 2007 1 commit
  6. 24 Jun, 2007 1 commit
  7. 20 May, 2007 1 commit
    • Thomas Zander's avatar
      Fixes in header includes · f0c7b014
      Thomas Zander authored
      * local includes go first (already showed some miscompiling headers ;)
      * local includes use double quotes
      * remove some unneeded includes.
      
      Rename .cc to .cpp for consistency
      
      svn path=/trunk/koffice/; revision=666587
      f0c7b014
  8. 15 May, 2007 1 commit
  9. 09 Apr, 2007 1 commit
    • Thomas Zander's avatar
      Change in event forwarding of flake shape changes. · 237d8e02
      Thomas Zander authored
       * A container will not be notified with a 'collision detection' when a child changes anymore.
       * for all such changes the KoShapeContainerModel will be notified separately.
      Using the above and some refactoring; make sure we only relayout 1 time on a change.
      Make the default anchred frame be an inline character, like KOffce1 used.
      
      svn path=/trunk/koffice/; revision=651797
      237d8e02
  10. 05 Apr, 2007 2 commits
    • Thomas Zander's avatar
      Add getter for the model. · 4985b3df
      Thomas Zander authored
      Make KoShapeContainerModel compile on its own
      Replace all 'object' references to 'shape' as a long time ago we renamed the classes
      
      svn path=/trunk/koffice/; revision=650925
      4985b3df
    • Thomas Zander's avatar
      Split KoShapeContainerModel out into its own file. · d4569079
      Thomas Zander authored
      Noted that the KoShapeLayer had a copy paste of a SimpleShapeContainerModel
      from KoShapeGroup, so splitted that out into its own file and remove the
      duplicate.
      
      svn path=/trunk/koffice/; revision=650915
      d4569079
  11. 21 Mar, 2007 1 commit
  12. 20 Mar, 2007 1 commit
  13. 19 Mar, 2007 1 commit
  14. 28 Feb, 2007 1 commit
    • Thomas Zander's avatar
      Fix EBN warning; · 4469aaac
      Thomas Zander authored
      apparantly private inner classes are not a smart thing to have an a public
      and installable header file.
      
      svn path=/trunk/koffice/; revision=638066
      4469aaac
  15. 22 Feb, 2007 1 commit
  16. 14 Feb, 2007 1 commit
  17. 21 Jan, 2007 1 commit
  18. 07 Jan, 2007 1 commit
  19. 03 Jan, 2007 1 commit
    • Thomas Zander's avatar
      Add a new feature to Shapes. · 934996f6
      Thomas Zander authored
      The KoShape::shapeChanged virtual hook has always been called when
      one of the properties of a shape changed; I expanded that by making
      it also get called when another shape is changed in the bounding rect
      of the shape to allow a shape to update itself if thats needed.
      Note that I added a collisionDetection() boolean so there is little
      impact on performance for those that don't want it.
      
      This effectively finishes the runAround of KWord to make sure layouting
      is changed when a shape is moved above it.
      
      svn path=/trunk/koffice/; revision=619584
      934996f6
  20. 02 Jan, 2007 1 commit
  21. 29 Dec, 2006 1 commit
    • Peter Simonsson's avatar
      * Remove KoShapeAddRemoveData · a911ddd6
      Peter Simonsson authored
      * Make KoPAPageBase a KoShapeContainer
      * Fix drawing of child shapes in KoShapeContainer
      * Make KoShapeLayer resize correctly depending on the children
      * Fix adding and removing of child shapes in KoShapeManager
      Plus everything I've forgotten ;)
      
      svn path=/trunk/koffice/; revision=617691
      a911ddd6
  22. 28 Dec, 2006 1 commit
  23. 14 Nov, 2006 1 commit
  24. 12 Oct, 2006 1 commit
  25. 06 Aug, 2006 1 commit
  26. 31 Jul, 2006 4 commits
  27. 19 Jul, 2006 1 commit
  28. 28 Jun, 2006 1 commit
    • Thomas Zander's avatar
      - Let KWord do its own WYSIWYG text layout. · f00aabaa
      Thomas Zander authored
      - Make KoShape::recalcMatrix no longer virtual, but provide a shapeChanged() hook
      - Make KoTextShape be aware of multiple shapes using 1 document, as thats what
        KWord needs
      - Fix clipping in KoTextShape for paragraphs other then the first
      
      svn path=/trunk/koffice/; revision=555850
      f00aabaa
  29. 25 Jun, 2006 1 commit
    • Thomas Zander's avatar
      To make it anywhere near workable to change the libs, I disabled much of the apps · 0e6611cb
      Thomas Zander authored
      to compile; so I can't commit every now and then (since it takes 90 min to check
      if I didn't break anything)
      
      * Refactoring kword into part/
      * Merge with darcs:
      Sun Jun 25 09:50:38 CEST 2006  Thomas Zander <zander@kde.org>
        * add api dox
          M ./kofficecore/KoProperties.h -1 +50
      
      Sun Jun 25 09:33:00 CEST 2006  Thomas Zander <zander@kde.org>
        * Cleanup QDebug includes, use kDebug
      
          M ./flake/KoCreateShapeStrategy.cpp -3 +1
          M ./flake/KoCreateShapesTool.cpp -1
          M ./flake/KoInteractionTool.cpp -1
          M ./flake/KoRectangleShapeFactory.cpp -1
          M ./flake/KoRepaintManager.cpp -1
          M ./flake/KoSelection.cpp -1
          M ./flake/KoShape.cpp -1 +1
          M ./flake/KoShapeContainer.cpp -3 +2
          M ./flake/KoShapeManager.cpp -2 +1
          M ./flake/KoShapeMoveStrategy.cpp -1
          M ./flake/KoShapeResizeStrategy.cpp -2
          M ./flake/KoShapeRotateStrategy.cpp -1
          M ./flake/KoShapeRubberSelectStrategy.cpp -2
      
      Fri Jun 23 22:09:11 CEST 2006  Thomas Zander <zander@kde.org>
        * add api docs
      
          M ./kofficecore/KoPageLayout.h +2
      
      Fri Jun 23 16:31:23 CEST 2006  Thomas Zander <zander@kde.org>
        * Allow external document
      
          M ./kotext/KoTextShape.cpp -22 +22
          M ./kotext/KoTextShape.h -11 +7
          M ./kotext/KoTextShapeFactory.cpp -1 +6
      
      Wed Jun 21 09:19:36 CEST 2006  Thomas Zander <zander@kde.org>
        * Make ID for textShape
      
          M ./kotext/KoTextShape.h +2
          M ./kotext/KoTextShapeFactory.cpp -1 +1
      
      Tue Jun 20 16:43:47 CEST 2006  Thomas Zander <zander@kde.org>
        * Fix width/height reporting
      
          M ./flake/KoCanvasController.cpp -6 +17
      
      Tue Jun 20 09:47:48 CEST 2006  Thomas Zander <zander@kde.org>
          * Rename viewToNormal and normalToView to
          viewToDocument and documentToView (by popular demand)
      
      
      svn path=/trunk/koffice/; revision=554763
      0e6611cb
  30. 15 Jun, 2006 1 commit
  31. 11 Jun, 2006 1 commit
  32. 25 May, 2006 1 commit