Review Request 115512: added add text popup menu to calligra

Camilla Boemann cbr at boemann.dk
Tue Oct 21 08:20:36 BST 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/115512/#review68786
-----------------------------------------------------------


in genral i think the approach looks sane enough, except the undo/redo - why create new shape after undo redo - commands further down the stack will probably expect the same shape pointer to still be valid (just like you expect the containers to still be valid on the second call to redo

I think this should be fixed

- Camilla Boemann


On Oct. 21, 2014, 5:43 a.m., Yue Liu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/115512/
> -----------------------------------------------------------
> 
> (Updated Oct. 21, 2014, 5:43 a.m.)
> 
> 
> Review request for Calligra and Camilla Boemann.
> 
> 
> Repository: calligra
> 
> 
> Description
> -------
> 
> Added "Add Text" action to popup menu in DefaultTool, if an application don't want it appear in popup menu, set AllowAddTextToShapePopupAction=false in rc file. Currently disabled in Words, Sheets, and Kexi.
> 
> There is a problem that KoTosContainer doesn't have API to delete text shapes in it, so undo doesn't work.
> 
> Another thing is this action supports adding text to multiple shapes, after texts are added, should it activate text tool automatically? If there are multiple shapes, which one should have text tool activated? The first in list, or the one under cursor? If the shape under cursor is not a KoTosContainer, then which KoTosContainer should have TextTool activated? My current idea is if the shape under cursor is KoTosContainer, then activate TextTool on it, otherwise don't activate TextTool.
> 
> 
> Diffs
> -----
> 
>   kexi/data/kexirc 4c73bd0 
>   libs/flake/CMakeLists.txt 839b861 
>   libs/flake/commands/KoTosContainerAddTextCommand.h PRE-CREATION 
>   libs/flake/commands/KoTosContainerAddTextCommand.cpp PRE-CREATION 
>   plugins/defaultTools/defaulttool/DefaultTool.h dca6ae8 
>   plugins/defaultTools/defaulttool/DefaultTool.cpp 453a727 
>   sheets/sheetsrc 9b622fb 
>   words/part/wordsrc 4cd2801 
> 
> Diff: https://git.reviewboard.kde.org/r/115512/diff/
> 
> 
> Testing
> -------
> 
> Works on OSX
> 
> You can also test through branch add-text-popup-action-yue
> 
> 
> Thanks,
> 
> Yue Liu
> 
>

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


More information about the calligra-devel mailing list