Re: Line2PEx - An improved line command?
Posted: Fri Feb 14, 2014 11:39 pm
Having looked into this, the spinbox uses the locale of the computer it is running on, unless a specific locale has been assigned to the spinbox. The decimal point character can't be changed or overwritten, and changing the specific locale would not be a simple matter for users. As Andrew suggested, using an RMathLineEdit box is the easiest way to solve this.
I have attached the two affected files - Line2PEx.ui, and Line2PEx.js. Replace these two files in Draw->Line->Line2PEx.
Using an RMathLineEdit input, you can type any value into the box, or even an expression. If you enter a negative number then the restrict changes it to a positive number.
I have included the options in a group box so you can toggle them on and off using Alt-Z. When toggled off they won't interfere with existing shortcuts. Because other commands can change the position of relativezero I store its position when using another command, and restore it when control is returned to this command.
Hope this fixes the problem.
I have attached the two affected files - Line2PEx.ui, and Line2PEx.js. Replace these two files in Draw->Line->Line2PEx.
Using an RMathLineEdit input, you can type any value into the box, or even an expression. If you enter a negative number then the restrict changes it to a positive number.
I have included the options in a group box so you can toggle them on and off using Alt-Z. When toggled off they won't interfere with existing shortcuts. Because other commands can change the position of relativezero I store its position when using another command, and restore it when control is returned to this command.
Hope this fixes the problem.