Review Request: Use the canvas' shape selection instead of the active tool to insert an inline object

Casper Boemann cbr at boemann.dk
Fri Jul 29 09:59:22 BST 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/102127/#review5199
-----------------------------------------------------------


I'm fine with this.

Pierre?

- Casper


On July 29, 2011, 8:47 a.m., Boudewijn Rempt wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/102127/
> -----------------------------------------------------------
> 
> (Updated July 29, 2011, 8:47 a.m.)
> 
> 
> Review request for Calligra, Pierre Stirnweiss and Casper Boemann.
> 
> 
> Summary
> -------
> 
> Using KoToolProxy->selection and casting that into a KoTextEditor is is
> confusing: it is meant to allow access to the selection, not to allow
> access to the complete contents of a shape. The KoTexSelectionHandler
> to KoTextEditor change was meant to get away from the dependency on the
> active tool.
> 
> Now we get the selected shape from the active canvas and if it has the
> right userdata, get the right KoTextEditor from it, and use that to
> insert the variable.
>  
> Also, KoTextEditor now return the variable instead of a bool, because
> the InsertInlineObjectActionBase::createInlineObject wants to return
> that object.
> 
> 
> Diffs
> -----
> 
>   libs/kotext/InsertTextLocator.cpp 2195a02 
>   libs/kotext/KoTextEditor.h 02d0ef1 
>   libs/kotext/KoTextEditor.cpp 70c421d 
> 
> Diff: http://git.reviewboard.kde.org/r/102127/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Boudewijn
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20110729/5096aa21/attachment.htm>


More information about the calligra-devel mailing list