[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    ShapeSelector
From:       Thomas Zander <zander () kde ! org>
Date:       2006-12-15 11:50:55
Message-ID: 200612151250.57296.zander () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


As we talked about in Deventer, the shapeSelector should have different ways 
to insert shapes.
Single click, which we always had.
double click / pressing enter to insert the currently selected shape (TODO)
and drag&drop.

I added the drag and drop functionality; I managed to do it completely in the 
library so all apps that use the KoCanvasController will automatically 
benefit from this.
Kivio will probably like this most; as this will replace a big chunk of 
existing functionality that needed to be ported.

In Krita this also works; kinda.  I got a crash. From the backtrace I think 
its not my fault. But please let me know if you think otherwise.

Have fun!

#0  0x00002aaaaae5d6dd in KisLayerContainerShape::groupLayer (this=0x0)
    at /usr/local/work/kde/koffice/krita/ui/kis_layer_container_shape.cc:53
#1  0x00002aaaaaddce09 in KisDoc2::addShape (this=0x6e0950, shape=0xc99420)
    at /usr/local/work/kde/koffice/krita/ui/kis_doc2.cc:1308
#2  0x00002aaaab938829 in KoShapeCreateCommand::recurse (this=0xaab340, 
shape=0xc99420, ar=KoShapeCreateCommand::Add)
    at /usr/local/work/kde/koffice/libs/flake/KoCommand.cpp:307
#3  0x00002aaaab938a10 in KoShapeCreateCommand::execute (this=0xaab340)
    at /usr/local/work/kde/koffice/libs/flake/KoCommand.cpp:292
#4  0x00002aaaab9661f7 in KoCanvasController::Viewport::dropEvent 
(this=0xa5b140, event=0x7fffffc3b4a0)
    at /usr/local/work/kde/koffice/libs/flake/KoCanvasController.cpp:279

-- 
Thomas Zander

[Attachment #5 (application/pgp-signature)]

_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic