On Dec 5, 2007 12:12 AM, Maximilian Albert <Anhalter42@...173...> wrote:
Hi all,
as I've learned in the past few days, investigating or fixing other things while waiting for tedious compiles to finish can be quite productive. :) [1]
In revision #16617 I added two spin buttons to the toolbar of the node tool which allow exact editing of node coordinates (this was long overdue - see bugs #170116 and #172113). Please test and report any irregularities. ;-)
Wow! Thanks a lot, it was indeed a long requested feature.
One thing to note is that originally I had planned to clear the entry fields when two or more nodes are selected. But I didn't know how to do this (is it possible at all?)
It is possible. See how the zoom spinbutton in the statusbar is done. Basically, you register two converter functions, from the numeric value to display string and back. Then you can have any display in the spinbutton and yet the spinbutton will keep working as a numeric control with all the conveniences. In zoom control, this is used for adding %, but you use the same approach for blanking the display string.
BTW the same approach can be used for implementing another long-standing request: enable typing expressions such as 2+2 in spinbuttons. But this needs to be done centrally in one place, so it affects all spinbuttons in the program.
display the coordinates of the center of the bounding box instead. This turned out to be quite nice because it allows one to quickly align several nodes in the following way: Select them, press Alt+x (which switches focus to the coordinate entry fields) and press enter. Since the first entry field already shows a new X coordinate (lying in the middle between the extremal nodes), this aligns all the nodes vertically to this coordinate.
I'll look at this and tell you what I think about it usability-wise :)