Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Krita
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tusooa Zhu
Krita
Commits
fbc7ab6b
Commit
fbc7ab6b
authored
Feb 14, 2007
by
Thomas Zander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use real debug area.
svn path=/trunk/koffice/; revision=633682
parent
38b720a2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
libs/flake/KoCanvasController.cpp
libs/flake/KoCanvasController.cpp
+1
-1
libs/flake/KoCreateShapeStrategy.cpp
libs/flake/KoCreateShapeStrategy.cpp
+1
-1
libs/flake/KoShape.cpp
libs/flake/KoShape.cpp
+1
-1
libs/flake/KoShapeContainer.cpp
libs/flake/KoShapeContainer.cpp
+3
-3
libs/flake/KoShapeShearStrategy.cpp
libs/flake/KoShapeShearStrategy.cpp
+3
-3
No files found.
libs/flake/KoCanvasController.cpp
View file @
fbc7ab6b
...
...
@@ -272,7 +272,7 @@ void KoCanvasController::Viewport::dragEnterEvent(QDragEnterEvent *event) {
// So, lets remove this again when Zagge adds his new class that does this kind of thing. (KoLoadSave)
KoShapeFactory
*
factory
=
KoShapeRegistry
::
instance
()
->
get
(
id
);
if
(
!
factory
)
{
kWarning
(
3000
1
)
<<
"Application requested a shape that is not registered '"
<<
kWarning
(
3000
6
)
<<
"Application requested a shape that is not registered '"
<<
id
<<
"', Ignoring"
<<
endl
;
event
->
ignore
();
return
;
...
...
libs/flake/KoCreateShapeStrategy.cpp
View file @
fbc7ab6b
...
...
@@ -53,7 +53,7 @@ QUndoCommand* KoCreateShapeStrategy::createCommand() {
KoCreateShapesTool
*
parent
=
static_cast
<
KoCreateShapesTool
*>
(
m_parent
);
KoShapeFactory
*
factory
=
KoShapeRegistry
::
instance
()
->
get
(
parent
->
shapeId
());
if
(
!
factory
)
{
kWarning
(
3000
1
)
<<
"Application requested a shape that is not registered '"
<<
kWarning
(
3000
6
)
<<
"Application requested a shape that is not registered '"
<<
parent
->
shapeId
()
<<
"'"
<<
endl
;
return
0
;
}
...
...
libs/flake/KoShape.cpp
View file @
fbc7ab6b
...
...
@@ -344,7 +344,7 @@ void KoShape::setAbsolutePosition(QPointF newPosition) {
matrix
.
scale
(
d
->
scaleX
,
d
->
scaleY
);
QPointF
vector2
=
matrix
.
map
(
QPointF
(
size
().
width
()
/
2.0
,
size
().
height
()
/
2.0
)
);
//kDebug() << "vector1: " << vector1 << ", vector2: " << vector2 << endl;
//kDebug(
30006
) << "vector1: " << vector1 << ", vector2: " << vector2 << endl;
setPosition
(
newPosition
+
vector1
-
vector2
);
}
...
...
libs/flake/KoShapeContainer.cpp
View file @
fbc7ab6b
...
...
@@ -86,7 +86,7 @@ void KoShapeContainer::paint(QPainter &painter, const KoViewConverter &converter
painter
.
setMatrix
(
matrix
().
inverted
()
*
painter
.
matrix
()
);
QMatrix
myMatrix
=
transformationMatrix
(
&
converter
);
foreach
(
KoShape
*
shape
,
sortedObjects
)
{
kDebug
()
<<
"painting shape: "
<<
shape
->
shapeId
()
<<
", "
<<
shape
->
boundingRect
()
<<
endl
;
kDebug
(
30006
)
<<
"painting shape: "
<<
shape
->
shapeId
()
<<
", "
<<
shape
->
boundingRect
()
<<
endl
;
if
(
!
shape
->
isVisible
())
continue
;
// TODO this is not perfect yet..
...
...
@@ -107,8 +107,8 @@ void KoShapeContainer::paint(QPainter &painter, const KoViewConverter &converter
painter
.
setClipRegion
(
QRegion
(
clip
));
}
//kDebug() << "rect: " << position() << endl;
//kDebug() << "polygon: " << clip.boundingRect() << endl;
//kDebug(
30006
) << "rect: " << position() << endl;
//kDebug(
30006
) << "polygon: " << clip.boundingRect() << endl;
//painter.drawPolygon(clip);
painter
.
setMatrix
(
shape
->
transformationMatrix
(
&
converter
)
*
painter
.
matrix
()
);
shape
->
paint
(
painter
,
converter
);
...
...
libs/flake/KoShapeShearStrategy.cpp
View file @
fbc7ab6b
...
...
@@ -84,7 +84,7 @@ KoShapeShearStrategy::KoShapeShearStrategy( KoTool *tool, KoCanvasBase *canvas,
else
if
(
m_right
)
m_solidPoint
-=
QPointF
(
m_initialSize
.
width
()
/
2
,
0
);
kDebug
()
<<
" PREsol.x="
<<
m_solidPoint
.
x
()
<<
" sol.y="
<<
m_solidPoint
.
y
()
<<
endl
;
kDebug
(
30006
)
<<
" PREsol.x="
<<
m_solidPoint
.
x
()
<<
" sol.y="
<<
m_solidPoint
.
y
()
<<
endl
;
QMatrix
matrix
=
canvas
->
shapeManager
()
->
selection
()
->
transformationMatrix
(
0
);
m_solidPoint
=
matrix
.
map
(
m_solidPoint
);
}
...
...
@@ -114,7 +114,7 @@ void KoShapeShearStrategy::handleMouseMove(const QPointF &point, Qt::KeyboardMod
applyMatrix
.
rotate
(
-
m_initialSelectionAngle
);
applyMatrix
.
translate
(
-
m_solidPoint
.
x
(),
-
m_solidPoint
.
y
());
kDebug
()
<<
"Begin retransform"
<<
endl
;
kDebug
(
30006
)
<<
"Begin retransform"
<<
endl
;
int
counter
=
0
;
foreach
(
KoShape
*
shape
,
m_selectedShapes
)
{
shape
->
repaint
();
...
...
@@ -122,7 +122,7 @@ kDebug() << "Begin retransform" <<endl;
QMatrix
orm
=
m_startRotationMatrices
[
counter
];
shape
->
shear
((
m
.
m21
()
-
orm
.
m21
())
/
orm
.
m11
(),
(
m
.
m12
()
-
orm
.
m12
())
/
orm
.
m22
());
QPointF
p
=
applyMatrix
.
map
(
m_startPositions
[
counter
]);
kDebug
()
<<
" px="
<<
p
.
x
()
<<
" py="
<<
p
.
y
()
<<
endl
;
kDebug
(
30006
)
<<
" px="
<<
p
.
x
()
<<
" py="
<<
p
.
y
()
<<
endl
;
shape
->
setPosition
(
p
);
shape
->
repaint
();
counter
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment