Bug 45864 - UI: Add "Glue Point deletion" tool
Summary: UI: Add "Glue Point deletion" tool
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
: 90584 (view as bug list)
Depends on:
Blocks: Context-Menu Shape-Points
  Show dependency treegraph
 
Reported: 2012-02-09 16:28 UTC by Daniel Espinosa
Modified: 2019-05-26 19:38 UTC (History)
10 users (show)

See Also:
Crash report or crash signature:


Attachments
Context menu for user-defined glue points (8.94 KB, image/png)
2016-05-02 12:45 UTC, Heiko Tietze
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Espinosa 2012-02-09 16:28:57 UTC
When a form have Glue Points added you can't delete it. No option in the tool bar allows to delete glues.
Comment 1 Rainer Bielefeld Retired 2012-02-10 02:55:01 UTC
That's not correct, you CAN remove glue points with context menu or menu 
'Edit ->  Cut', and also with Del key

But more or less reproducible with 3.5.0., it's not intuitive that a 'Delete' item is missing.

Nothing new, OOo heritage.

And for what a Cut -> Paste function for glue points might be useful - I don't know
Comment 2 sasha.libreoffice 2012-05-17 04:40:37 UTC
Thanks for bugreport
In toolbar indeed no such tool. All tools there from category "Drawing". But in this category no tools for deleting glue point.
Currently, for deleting glue point we should use "Cut" from context menu

Exist also another problem: automatically added 4 glue point, which impossible to delete. 
And another: glue points not working with grouped objects.

No delete glue point in 3.5.3, so not implemented yet, changing status to New
Comment 3 Heiko Tietze 2016-05-02 12:41:01 UTC
Old issue resurrected, and hijacked somewhat.

We still have no explicit "delete glue point" UI control. The context menu contains of unclear positional functions - according the help it defines the connector's direction, but changing it from left top somewhat else has no effect. The context menu contains of a toggle item "insert point" - makes no sense at all, and "adapt position to object" that hides another six options by default (changing those leads to an assertion here). Another observation is that the connector related menu items aren't available anymore when the connector is attached. 

HIG says "Use context menus for well-known and frequently used functions only." So my suggestion is to move the obscure options into the connector dialog. At least the positional stuff should be moved into a submenu called "Connector direction" to make clear what "left" it is good for. For the "Adapt Position" thing a submenu with all the current options plus "relative" (as in the toolbar) or "automatical" improves the situation a bit. But again, all these options should rather go into the dialog.
The "insert point" should be there when in adding glue point mode. But only if no point is selected. Otherwise it has to offer the "delete glue point" function. Because of the intended redundancy the glue points toolbar needs an additional button for this function (disabled when no user-defined glue point is selected).

Additionally, we should rethink the complete glue point behavior. It's not necessary to go into another mode to add a glue point. The menu item would be sufficient to add a point. And it could be accompanied by a toolbar button similar to the current glue point that "auto enables" the gl point mode on click and disabled it afterwards.

Adding EASYHACK because most changes are related to the context menu.
Comment 4 Heiko Tietze 2016-05-02 12:45:44 UTC
Created attachment 124789 [details]
Context menu for user-defined glue points
Comment 5 Heiko Tietze 2016-05-03 15:39:22 UTC
*** Bug 90584 has been marked as a duplicate of this bug. ***
Comment 6 Heiko Tietze 2016-06-28 15:15:28 UTC
NEEDINFO for the code pointers.
Comment 7 Yousuf Philips (jay) (retired) 2016-09-14 16:20:16 UTC
Doubt we need a delete option in the context menu to delete a glue point, as the delete key is sufficient for this option and is used to delete all type of objects and elements. If it had to go somewhere, an uno command would need to be created and it would likely go in the glue points toolbar. I would close this as WFM.

@stuart, @cor: what do you guys think?
Comment 8 V Stuart Foote 2016-09-14 18:18:35 UTC
Some STR from bug 90584

Steps:
1) Open Draw
2) Draw a shape
3) Turn on glue points (Edit > Glue Points)
4) Insert a glue point onto the shape
5) Right-click the glue point


=-=-=

Had not played much with the diagramming connectors and their anchors/glue points.

So found this gets a bit awkward.  The Glue Points toolbar and context menu applies ONLY to "custom" glue points that are added to objects with the Insert Glue Point action.  The tools have no affect on the "default" glue points created on the edges of simple polygon draw objects.

In a draw shape absent the "default" glue points the connectors will attach to the edge of the draw shape with some rules about crossing the body of the shape. 

The "default" glue points can not be deleted nor their "rules" modified. 

Once a connector has been attached to a "custom" glue point, the glue point can not be selected to be modified--so the connector has to be pulled away to another anchor first.

So there should probably be an Uno action--on the context menu, and on the glue points toolbar--to release the "custom" glue point and send the connector end to another glue point or sit unconnected on the canvas.  

The unattached "custom" glue point can then be selected. Once selected its properties can be modified--via the context menu, or on the glue points toolbar. Or it can be deleted, but just with a <Delete> key.  Seems that with such a complex object behavior being controlled from both context menu and toolbar--omission of Delete action from the context menu is incomplete. 

But in the context of expanding Draw diagramming capability, I also could envision other UI controls that would be of use--duplicate the glue point (with its directional attribute) for example. But guess with too much more complexity, the context menu starts to become unclear--using split buttons on the toolbar might then become the better UI.  

So how often do we expect LO to be used over DIA or Visio--is this a facet to enhance?
Comment 9 Regina Henschel 2016-09-14 18:37:49 UTC
(In reply to V Stuart Foote from comment #8)
> 
> Once a connector has been attached to a "custom" glue point, the glue point
> can not be selected to be modified--so the connector has to be pulled away
> to another anchor first.

I can select, modify and delete the glue-point without detaching the connector. Perhaps you have not deselected the connector? It may not have red end points, when you try to click on the glue-point.
Comment 10 V Stuart Foote 2016-09-14 19:11:59 UTC
(In reply to Regina Henschel from comment #9)
> 
> I can select, modify and delete the glue-point without detaching the
> connector. Perhaps you have not deselected the connector? It may not have
> red end points, when you try to click on the glue-point.

Hmm, interesting. Find I am unable to select the "custom" glue point while it has a connector attached. Attempts to select always select the connector with no way to shift to the glue point.  I have to move the connector off the glue point to be able to select it. Or am I missing something?

Testing on Windows 8.1 Ent 64-bit en-US with
Version: 5.3.0.0.alpha0+
Build ID: ea9a90d83d92076d41abfd31a1fd3a5d84b6ba92
CPU Threads: 8; OS Version: Windows 6.29; UI Render: GL; 
TinderBox: Win-x86@39, Branch:master, Time: 2016-08-26_06:19:43
Locale: en-US (en_US); Calc: CL
Comment 11 jani 2016-09-15 05:58:18 UTC
missing code pointer, difficulty<foo>
Comment 12 Xisco Faulí 2016-09-27 10:36:17 UTC Comment hidden (obsolete)
Comment 13 jani 2016-10-25 13:16:39 UTC
This applies more to GSoC than an easyHack.
Comment 14 andreas_k 2019-01-28 21:50:39 UTC
Is there an reason why cut, copy, past isn't available in gruepoint.xml Maxim removed them 2016 when porting the context menu.
Comment 15 divers 2019-05-26 19:38:50 UTC
I'm on 6.2.4.2 .
A Glue point deletion tool would be a welcome addition.
To me there are currently two cases where this is needed:

1- if one places a Glue Point on a shape exactly on top of a corner or center point of one of the sides of a rectangle for example, there is no way to select the Glue point after, to move it or to delete it. The shape basic corner or center point will always be selected.
The Selecting Underlying Objects method doesn't work (Alt+click or Alt+Shift+click) either in that case.
The only way is to delete the whole shape and redo it.

2- once there is a connector attached to a glue point, you have to detach the connector before the glue point can be selected.