Gmoccapy: value checks on table entries - #4559
Conversation
Lines containing whitespace only are skipped rather than creating a new line with all '0' A message is shown on startup if - duplicate tool numbers have been found in the tool table - orientation is not in range 0...9 - a line is malformed, these are saved to a separate file so they are not silently deleted on save
The tool number for a new tool is preset to one above the highest nummber found in the table instead of '0'
cb81188 to
fcad9fd
Compare
- value validation is done by the widgets the values are entered for - if the calculator is set to 'integer_only' it will reject any value or expression containing '.' or ',' - value editing is handled in the widget regardless whether directly with the keyboard or the calculator - On save the table is checked for duplicate tool numbers
fcad9fd to
127d59f
Compare
|
@Sigma1912 referring to #4436 (comment)
It still accepts decimal separators in integer mode if I understand you correctly... |
No. An entry of, say, '5.0' is rejected both as a keyboard entry directly into the cell as well as a keyboard entry into the calculator. |
I am talking about this: calc.mp4 |
|
Well, you can type in whatever you want but it's rejected with a type error message popup after hitting 'Enter'. This is consistent with direct keyboard entries in the cell. |
Yeah sure. So commas are accepted as keyboard input but rejected as return value :). So fine from my side. @BsAtHome any further objections? |
No. |
Successor for #4436
Fixes #4435