Commit graph

99 commits

Author SHA1 Message Date
CMorley
c93277a206 qtvcp -qt_action: remove mode change to auto when loading
it's not nessasary.
Thanks Greg C of qtplasmac fame
2021-11-28 14:55:35 -08:00
luz paz
36a7c0ba71 Fix qtvcp related typos
Found via `codespell -q 3 -S *.po,*.ts,./share,./docs/man/es,./configs/attic -L ans,doubleclick,dout,halp,parms`
2021-11-03 11:33:06 -07:00
Rene Hopf
2270aea6a3 remove python version checks from qtvcp 2021-10-17 22:06:38 +02:00
CMorley
add51b389b qtvcp -ACTION,touchplate_sub: improve error messages and interpreter state
clean up messages before passing them to user.
record and restore the interpreter state.
2021-10-02 21:12:25 -07:00
CMorley
e8dfd1a5d4 qtvcp -add touchplate touchoff routine to ACTION library
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.
2021-10-02 13:18:49 -07:00
c-morley
4f8acd4865
Merge pull request #1259 from snowgoer540/gregc/qtvcpautorepeat
qtvcp: add number pad jog keys to default autorepeat dictionaries
2021-09-09 18:19:49 -07:00
ChrisM
c7a193dc24 qtvcp -add ability to record/set a user view on graphics display
ocationally you don't quite get the view you asked for.
Not sure why - but very useful otherwise
2021-09-06 16:11:56 -07:00
Greg Carl
f1cbb03c35 qtvcp: add number pad jog keys to default autorepeat dictionaries
83 and 85 for X
80 and 88 for Y
81 and 89 for Z
2021-09-06 08:03:34 -04:00
CMorley
1fc28418c9 qtvcp -qt_action: abort doesn't need to be called from auto mode 2021-08-29 18:27:03 -07:00
CMorley
4181129de2 qtvcp -qt_action: add linuxcnc operator message commands/ INI MDI msg
It's helpful to tell the operator why the button didn't do anything.
2021-08-22 11:02:46 -07:00
ChrisM
2f165c809d qtvcp -qt_action: only restore the machime mode after all MDI commands 2021-08-15 21:10:32 -07:00
Phillip Carter
c2838822ca qtplasmac: remove redundant gettext format 2021-08-06 19:21:14 +10:00
Phillip Carter
cef5b11ec7 qtvcp: remove redundant gettext formats 2021-08-06 13:58:41 +10:00
Chris Morley
14d07b66d3 qtvcp -qt_action: remove python 2 debug print statements 2021-07-27 19:04:11 -07:00
Chris Morley
023682a037 qtvcp -qt_action: add a return-to-mode-after MDI function
ie. a tool change requires a different strategy to catch when it's finished.
2021-07-25 15:32:34 -07:00
Chris Morley
91a86d2775 qtvcp -qt_action: return a filename after saving file
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
2021-04-11 10:12:23 -07:00
Chris Morley
9a646a2dff qtvcp -fix wrong key number in DISABLE_AUTOREPEAT_KEYS function 2021-04-10 17:14:22 -07:00
Chris Morley
699f6e9202 qtvcp -add function for disabling key repeating on the system
On some systems, the repeat rate is uneven causing keyboard jogging problems.
2021-04-10 10:08:39 -07:00
Chris Morley
288849918e qtvcp -qt_action: switch to a temparary message for limits overriden 2021-03-31 01:07:40 -07:00
Chris Morley
4cd3e6ef8b qtvcp -use a constant name for temparary messages
makes it easier to understand the purpose.
Most messages must acknowldged, temparary one disapear after 2 seconds
2021-03-30 23:40:05 -07:00
Chris Morley
0c308bd1fe qtvcp -qtdragon/hd: make overriding limits less confusing
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.
2021-03-30 23:25:13 -07:00
Chris Morley
a9cfbf8686 qtvcp -don't change the machine mode when presetting run-from-line attributes
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.
2021-03-26 02:33:21 -07:00
Chris Morley
f20211b17f qtvcp -action_button: add lathe mirror X action
if you onfigur a XYZ lathe (but ignore the Y) you can invert X for
back tool machining.
2021-03-06 20:15:13 -08:00
Chris Morley
65d60fd145 qtvcp -revist check for multi '.' while file loading
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
2021-02-14 23:52:37 -08:00
Chad Woitas
173bf0ccca QTVCP - Discarding file paths from name. 2021-02-14 19:49:00 -06:00
Chad Woitas
94f63420d7 qt_action - Checking for multiple periods
Our millwrights have been trying to name files in a mm.dd.yyyy.ngc File Format. Catching this here
2021-02-12 15:47:29 -06:00
Chad Woitas
f17c6a343f QTAction - White Space 2021-01-25 19:11:27 -06:00
luz paz
ea08a53edd docs: fix source comment and doc typos in lib/python
Found via `codespell v2.0.dev`  
```
codespell -q 3  -L ans,doubleclick,halp,parms
```
2021-01-04 09:53:06 -05:00
chris
82ffc7a087 qtvcp -qt_action: improve filter program error dialog message 2020-11-15 00:37:27 -08:00
chris
11ac2c3888 qtvcp -qt_action: fix python3 error with print 2020-11-15 00:36:24 -08:00
Chris Morley
4b1c7d174e qtvcp -qt_action: fix filtering progres update
This was commented out originally - now we get it to work.
gcode_graphics uses similar code and maybe we should pull it from here?
2020-11-14 15:30:04 -08:00
chris
2249209f61 qtvcp -qt_action: fix filter loading for python3
Still not sure if this works - I need a basic filter
program to test - but at least error messages work
2020-11-13 04:29:54 -08:00
Chris Morley
3427accbe0 Merge branch '2.8' 2020-09-08 23:16:10 -07:00
Chris Morley
2c37540e20 qtvcp -add dimensions on,off as graphics commands 2020-09-08 23:11:33 -07:00
chris
389b242bb7 qtvcp -update for python3 2020-09-07 00:58:15 -07:00
Chris Morley
7d7648edd8 qtvcp -qt_action: normalise save path
paths with ../ in them confused the function.
2020-07-13 20:31:47 -07:00
Chris Morley
f7b17e1958 qtvcp -add spindle min and increment INI setting
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
2020-05-20 23:37:12 -07:00
Chris Morley
26cf82f9ad qtvcp -don't cancel jog if not in manual mode
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.
2020-04-15 01:41:00 -07:00
Chris Morley
bd65b8124f qtvcp -update actions for mutispindle -1 command
-1 designates all spindles
2020-04-10 19:19:45 +01:00
Chris Morley
a05ea2d294 qtvcp -update spindle controls for multispindles. 2020-04-07 15:58:52 -07:00
Chris Morley
6fdb5c7f80 qtvcp Fix possible runaway jog on increments change
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.
2020-04-07 06:11:06 -07:00
Chris Morley
7760ff3ad9 qtvcp -add alpha mode, inhibit selection to TOOLBAR,QtAxis,Qtdragon
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.
2020-04-05 11:03:41 -07:00
Chris Morley
7e13e02b70 qtvcp -add a temparary message about limits active again.
sent after homing or after limits_orverride is finished
2020-04-02 08:59:10 -07:00
Chris Morley
07514eb77c qtvcp -add ability to adjust grid spacing on gcode_graphics 2020-03-31 07:15:18 -07:00
Chris Morley
09b6faadd7 qtvcp -regression fix: axis_tool_bar didn't send axis variable
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
2020-03-30 03:07:06 -07:00
Chris Morley
208b60d68b qtvcp -qt_action: don't increase spindle speed after hitting max
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
2020-03-24 00:31:19 -07:00
Chris Morley
b3e81f2e70 qtvcp -qt_action: fix homing bug using sequence list
Only errored if using a single button to home multiple axes.
sequence list name had been changed
2020-03-24 00:28:34 -07:00
Chris Morley
8dd27c656b qtvcp -add functions for dialogs/sound/logs/pointer
We prefer users to use these functions rather then calling libries directly.
In the is way we can future proof things somewhat
2020-03-06 22:28:27 -08:00
Chris Morley
6b004beba1 qtvcp -add ACTION function to set graphics views
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
2020-03-06 14:55:02 -08:00
Chris Morley
f0ac284d22 qtvcp -work around screen with misconvigured homeall button
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.
2020-02-13 12:54:00 -08:00