[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/office/flake
From: Thomas Zander <zander () kde ! org>
Date: 2006-04-30 14:03:40
Message-ID: 1146405820.878253.10125.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 535797 by zander:
First version of a Repaint Manager.
This allows each KoShape to have a repaint() method which will cause the
canvas to repaint it.
Design is a bit tricky due to the fact that each object can have more then
one canvas it works on; I have to work on that a little more but the idea
is already visible in the KoRepaintManager.h file
The bigest sacrifice I had to make is that KoShapeManager now has its own
list of the objects and a add/remove for the objects.
With the ShapeManager being a QObject anyway we can probably add some
slots to minimize the pain of a shadow administration.
Note that the repaint manager is currently not enabled as there are some
repainting bugs.
Edit FlakeCanvas::updateCanvas (in testapp/mainwindow.cpp) to enabled it.
M +12 -7 lib/KoCanvasBase.h
M +10 -5 lib/KoInteractionStrategy.cpp
M +1 -1 lib/KoInteractionStrategy.h
A lib/KoRepaintManager.cpp [License: LGPL (v2+)]
A lib/KoRepaintManager.h [License: LGPL (v2+)]
M +21 -10 lib/KoSelection.cpp
M +3 -1 lib/KoSelection.h
M +42 -3 lib/KoShape.cpp
M +24 -10 lib/KoShape.h
M +4 -0 lib/KoShapeContainer.cpp
M +26 -9 lib/KoShapeManager.cpp
M +10 -5 lib/KoShapeManager.h
M +3 -0 lib/KoShapeMoveStrategy.cpp
M +10 -6 lib/KoShapeRubberSelectStrategy.cpp
M +4 -4 lib/KoShapeRubberSelectStrategy.h
M +2 -2 lib/lib.pro
M +7 -17 testapp/mainwindow.cpp
M +8 -1 testapp/mainwindow.h
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic