Issue 120519 - Allow to set Adjustment Values for Custom shapes (with yellow handle)
Summary: Allow to set Adjustment Values for Custom shapes (with yellow handle)
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: 3.4.0
Hardware: All All
: P3 Normal with 2 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-09 13:28 UTC by oooforum (fr)
Modified: 2015-10-14 16:15 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
New "Position and size" dialog for ring shape (42.39 KB, image/png)
2012-08-09 13:28 UTC, oooforum (fr)
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description oooforum (fr) 2012-08-09 13:28:38 UTC
Created attachment 78895 [details]
New "Position and size" dialog for ring shape

Many shapes like ring, smiley or callout had a yellow handle to modify a specific parameter.

But it only set up with mouse. It unable to set up with a dialogbox if you need a fine adjustment.

Enhance the "Position and size" dialog with a dedicated field to configure this value will be fine (see mockup as attached file).
Comment 1 Regina Henschel 2012-08-09 13:58:54 UTC
I support the idea to get a tool to set the values exactly. This is needed for some classical shapes too.

I doubt, that the suggested place is good, because more than one handle is possible.

The design of such a tool should be discussed on the mailing list, with suggestions in the Wiki.
Comment 2 Armin Le Grand 2012-08-10 13:25:28 UTC
ALG: Indeed, I also welcome UI for this, but have some doubts, too.

- There can be more than one handle in a custom shape
- The position of the box should be aligned with width/height
- Does the tiltle 'Inner Ring' change when other custom shapes are used?
- What does '5,90 cm' mean for a yellow point which has X and Y?
- Why is '5,90 cm' the same for 'Inner Ring' and width/height?
- Does this only support that one custom shape type or others, too?

Please describe the concept a little bit more, e.g. is this for all custom shapes or e.g. only for the specific one? If yes, why for exactly this one..?

Thanks in advance!
Comment 3 oooforum (fr) 2012-08-10 13:49:52 UTC
I don't see any custom shape with more than one yellow handle. 
Could you give me one ?

Sorry, the 5,90cm value is just a copy / paste. Don't use to understand.

If I explore a custom shape through api and CustomShapeGeometry property, we have a "com.sun.star.drawing.EnhancedCustomShapeAdjustmentValue" structure and a variant to get the yellow handle position.
For a ring shape, the default value is: 5400.
For a smiley shape: 17520.
For a frame shape: 2000.
etc

I don't know what this value means. But if I move the X/Y position or size shape, this value still the same.

Is this more clear?
Comment 4 Regina Henschel 2012-08-10 13:56:00 UTC
(In reply to comment #3)
> I don't see any custom shape with more than one yellow handle. 
> Could you give me one ?

A 'Circular Arrow'.

Keep in mind, that you can define your own custom shapes, and that those can have even more than two handles.
Comment 5 oooforum (fr) 2012-08-10 14:21:00 UTC
Thanks Regina

I inspect the "circular arrow" via api.
It appears that this shape has 3 structures EnhancedCustomShapeAdjustmentValue with this default values:
Array(0): 180
Array(1): 0
Array(2): 5500

I found too the "left-right-arrow-callout" with 3 yellow handles. Via api, we have 4 structures.
Array(0): 5400
Array(1): 5500
Array(2): 2700
Array(3): 8100

I don't know why handles does not match to structures number. Very strange for me.

I'm not a developer but if we have multiple values maybe a specific tab will be much easy to set up in dialog.

Do you want that I start a wiki page to submit this idea?
Comment 6 Armin Le Grand 2012-08-10 15:06:15 UTC
ALG: löeft arrow callout thas three, there are others. As Regina said, it can have any number. Your idea with the tab page is a very good one, I think. It can be added when one selected shape is a custom shape. It has to be evtl. inited to unknown values when all or the single selected object are custom shapes and have the same custom shape type (example: make two objects, different line witdh, select both -> line width is undefined, line width fields in dialogs stay empty). It has to be completely deactivated when multiple custom shapes are selected and have different type.
No easy task, but a wiki page is a good start point!
Comment 7 oooforum (fr) 2012-08-13 16:47:37 UTC
I started this page:
http://wiki.services.openoffice.org/wiki/Draw:_set_Adjustment_Values_for_Custom_shapes

Hope this help
Comment 8 Gerd 2013-06-02 07:29:16 UTC
Hi,

How about just adding a tab in the size/position box with as much fields as there are "draw:modifiers" in the selected shape(s)?
Just name them "Modifier0", "Modifier1"...

That would at least be a start and something one could work with.

Ragerds,
Gerd
P.S.:
Today would be a good day to have this option available ;-)
Comment 9 oooforum (fr) 2015-10-14 16:15:22 UTC
Seems to be an enhancement in LibO 5:
http://caolanm.blogspot.fr/2015/10/viewedit-shape-control-points.html

:-(