Add Line
Creates new line or adds new points to an existing line. If the mode is started with the shift-key and there is an existing active line, points are added to it. Otherwise, new empty line is created.
Each mouse click adds new point to the line. If pointed snapped to the existing point, the point is copied to the current line. All point specific attributes (id) and coordinates are copied to the new point. Common line attributes (category, feature) keep their original values.
When clicking anywhere else on the canvas, point with mouse coordinates is added to the line. This can be done only in 2D mode. In 3D mode it is possible to create line only through existing point by snapping to them. If there is an active object at mode start, its height is used for newly added points. This height can be changed at any time by the point height field in the dialog.
If the new clicked coordinate is same as the previous coordinate, user is notified and asked to confirm addition.
Stating mode automatically activates the line edit dialog and remembers previously used category and feature codes. If there is an active line when starting the mode, its codes are used for new line. Codes can be changed at any time during adding.
Accepting changes combines all added points to a single operation. When undoing the operation all added points are removed.
Floating toolbox
New line adding shows floating toolbox beside the mouse cursor. It displays current length, angle and slope. Values can be edited before saving the new point. Tab-key moves between controls and hides the toolbox before returning back to the first field.
The toolbox stays always inside the canvas and disappears at corners and when the mouse cursor is moved over floating dialog. When the mouse cursor returns to the canvas, floating toolbox takes again the keyboard focus.
