Jim supplied the code to do touch off in the background do that the
screen is still responsive.
Gcode routine is hard coded in metric which probably should be changed
in the future.
A filename passed to the function can have an ending added automatically.
if the save was succesful, the name is returned with the ending.
the ending can be specified.
In this way functions after saving can get the full/right filename
The override limits check button would not always be in synch with
linuxcnc. linuxcnc does not have a way to specicifically set the
override state, only toggle it.
between this and the machine on button color not following linuxcnc state,
could make it very confusing what was on or off.
Also linuxcnc override_limits seems to work slightly different in homed
vrs not homed state. In homed state the override stays active after a jog,
in not homed state, linuxcnc automatically sets the machine off and sets
the override off.
In qtvcp, when the hard limits are cleared, we automatically set
limits override to off.
run-from-line uses MDI code to set spindle settings before running.
If you applied these before actually running from line,
it changed the mode from auto to MDI.
havinf muliple . in a filename causes some reported problems.
the original check would look at the complete path and sometime temparay
filenames would use a .
Now we just check the file name - one . allowed only
now one can specify a minimuim spindle speed and an increment to increase
or decrease.
Ultimately this should be motion's responsibility but it's late in the 2.8 game.
Update sample configs
If you are not in manual mode it's not possible to be jogging.
cancelling jog while in other modes floods operator with error messages.
Cause by a program that changes to/from metric mode.
This would cause the jogging increments widgets to reset their display,
which would cancel jogging.
if you were continuous jogging with screen buttons and change the incrments
with key shortcut (i) then the jog would continue forever.
Though no current sample adjusts the increments with a shortcut,
it certainly could be added and the problem would show.
Now we cancel any jogging on increment change.
Alpha mode is good when displaying very dense gcode programs.
inhibit Selection stops gcode line selection -on large programs it block for a long time.
looks like copy paste error. Strangely linuxcnc accepted the error without complaint.
it ended up with a MDI call of:
G10 L20 p0 1.000
Added a check for valid axis in qt action SET_ORIGIN function
Before if you asked for spindle increase past the maximuim,
you would get 'wind up' and decreasing speed wouldn't do anything
till requested speed was below the maximuim
Seems I had not been using ACTION to do view changes...
breaking my own rules!
using ACTION allows us to do updates in the future without breaking
old configs in most cases.
changed the GObject signal to add a python object - for options
that python option will be a dict
If the machine needs individual homing but the screen only has a
home-all button, issue a warning and offer to work around the problem
by homing each jopint wityh another push of the home button.