Review Request 119222: Make labels inline-editable

Jarosław Staniek staniek at kde.org
Thu Nov 13 10:36:38 GMT 2014


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



libs/koreport/items/label/BoundedTextItem.h
<https://git.reviewboard.kde.org/r/119222/#comment49184>

    With app due respect:
    
    Copyright (C) 2014 Adam Pigg <adam at piggz.co.uk>



libs/koreport/items/label/BoundedTextItem.cpp
<https://git.reviewboard.kde.org/r/119222/#comment49185>

    see above



libs/koreport/items/label/BoundedTextItem.cpp
<https://git.reviewboard.kde.org/r/119222/#comment49186>

    Why QPalette::Background? It's the same as QPalette::Windowm, i.e. gray. I guess we want to use Base...
    
    Related to DEFECT10.
    
    Moreover use it only when !m_backgroundColor.isValid().
    When m_backgroundColor.isValid() use m_backgroundColor (as before).



libs/koreport/items/label/LabelEditButton.cpp
<https://git.reviewboard.kde.org/r/119222/#comment49188>

    not fixed



libs/koreport/items/label/LabelEditButton.cpp
<https://git.reviewboard.kde.org/r/119222/#comment49189>

    I would prefer not to display the icon. 
    
    Please see the DEFECT16 below.


Adam. We're aware this is a task full of interaction stuff, that's why it's harder. Thanks for patience!

I am refering to my previous notes (I'll number them for future reference):

"DEFECT1 after showing the label is not resized to the size of parent - see http://wstaw.org/m/2014/07/10/plasma-desktoppn2275.png"

Fixed!

"DEFECT2 dashed frame is not needed then (see the same screenshot)"

Not fixed, see http://i.imgur.com/4t6h2fj.png

"DEFECT3 the font is not copied"

Fixed!

"DEFECT4 clicking on any area of the label during editing does not change cursor, maybe z-order isn't proper?"

Not fixed

"DEFECT5 would be nice if F2 shortcut also entered into the edit mode"

Not fixed (please also support double click)

"DEFECT6 when I use the property editor to enter the caption, after clicking outside the caption text is reset to the original value; now the only way to enter the text is to use the inline editor"

"DEFECT7 inserting a new label (or copy-pasting) crashes, exactly 6 times result of dynamic_cast<KoReportItemBase*> does not seem to be compared with 0"

Fixed!

"DEFECT8 when double clicking it's supereasy to accidentally move the item by a few pixels; on displays with even more density it will be even more noticeable"

N/A

"DEFECT9 the edited text isn't aligned well (horizontally/vertically)"

Fixed!

"DEFECT10 bg/fg color not copied to the edited text"

Not fixed

"DEFECT11 clicking on any area of the label during editing still does not change cursor's position; instead just ends the editing mode"

Fixed!

"DEFECT12 when in editing mode, if I switch to other report and switch back, the BoundedTextItem is apparently still present but the cursor is invisible; it's also impossible to enter text; the only solution is to click BoundedTextItem again; could we set focus on BoundedTextItem when needed?"

Not fixed

"DEFECT13 escape key shall exit from the edit mode"

Not fixed

---

Extra nitpicks:
* DEFECT14: when the BoundedTextItem gets displayed and focused, parent section's property set is activated in the property editor, this shouldn't be the case; property set shouldn't change at all.
* DEFECT15: clicking outside of the BoundedTextItem instance does not hide it; see http://i.imgur.com/0c7S4Y3.png; the only way to hide the BoundedTextItem instance is to click the LabelEditButton; that shouldn't be the solution. Even if I click click the LabelEditButton
* DEFECT16 I would prefer not to display the LabelEditButton. For quite typical sizes it looks as follows: http://i.imgur.com/XRAOq1d.png. This makes it hard to click and drag the element. Instead of using the LabelEditButton, I propose to do the same as we do with Kexi form labels and with shapes in the word processor: initiate editing on double click and F2 key (see DEFECT5).
* DEFECT17 Resize handles are covered by the BoundedTextItem; see http://i.imgur.com/0c7S4Y3.png
* DEFECT18 Inline editing mode should be activated automatically when the label is interactively inserted (either using the Insert action or Paste action)
* DEFECT19 Exiting the inline editing mode (actually only possible by clicking the LabelEditButton again) should keep the label element selected. Currently the parent section gets selected (visible in property editor).

- Jarosław Staniek


On Nov. 12, 2014, 11:51 p.m., Adam Pigg wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/119222/
> -----------------------------------------------------------
> 
> (Updated Nov. 12, 2014, 11:51 p.m.)
> 
> 
> Review request for Calligra and Jarosław Staniek.
> 
> 
> Bugs: 336825
>     http://bugs.kde.org/show_bug.cgi?id=336825
> 
> 
> Repository: calligra
> 
> 
> Description
> -------
> 
> Usage:
> Insert label
> Double click to enter inline-edit mode
> -Label text is selected and can be overwritten
> Click away from item to exit edit mode
> -Item text is updated with editor text
> 
> 
> Diffs
> -----
> 
>   libs/koreport/items/check/KoReportDesignerItemCheck.cpp 5762247fc783d77ccd141d46c601e669b942e4b8 
>   libs/koreport/items/field/KoReportDesignerItemField.cpp 54baaa9f84879e7bba1db1b7a8da2cec7722c919 
>   libs/koreport/items/image/KoReportDesignerItemImage.cpp 7857466c4d7aa82a4be97d546cc77dc5333bd3c3 
>   libs/koreport/items/label/BoundedTextItem.h PRE-CREATION 
>   libs/koreport/items/label/BoundedTextItem.cpp PRE-CREATION 
>   libs/koreport/items/label/KoReportDesignerItemLabel.h 469de9d3626c58e55cc9ad4a2b4e7b61af7a7c7f 
>   libs/koreport/items/label/KoReportDesignerItemLabel.cpp af21e56dd6fbc22e80c72eae9c5b166369f3c904 
>   libs/koreport/items/label/LabelEditButton.h PRE-CREATION 
>   libs/koreport/items/label/LabelEditButton.cpp PRE-CREATION 
>   libs/koreport/items/text/KoReportDesignerItemText.cpp da2d4f5e8c8ca40713eb9936438355f7a5ee6c59 
>   libs/koreport/renderer/KoReportPrintRenderer.cpp 08428520a1e8f8d319069ade7dd4df96dfa2edb3 
>   libs/koreport/renderer/KoReportScreenRenderer.cpp d19835b05a2f22c7db02f06af1fd0e149864dc2d 
>   libs/koreport/renderer/odtframe/KoOdtFrameReportCheckBox.cpp 95aa265f874a77841c7b76820ef7bbcdbe89b3e9 
>   libs/koreport/wrtembed/KoReportDesigner.cpp 48a667032a3a8049b69792c16d3cfc1727636fe7 
>   libs/koreport/wrtembed/reportscene.cpp 2e9c54d29c135c041db75d2a843ea5bd8318e1c1 
>   libs/koreport/CMakeLists.txt d8aea281ad0536e1423210014f09f616ee09f9af 
> 
> Diff: https://git.reviewboard.kde.org/r/119222/diff/
> 
> 
> Testing
> -------
> 
> Inserted label on new report and checked usage
> 
> Loaded existing report and ensured labels are editiable
> 
> 
> Thanks,
> 
> Adam Pigg
> 
>

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


More information about the calligra-devel mailing list