Commit graph

2736 commits

Author SHA1 Message Date
a86ac40e4a
Fix incorrect use of glBitmap
The intent of this use of glBitmap is to move the raster position
without drawing anything. However, it may be required to use None
instead of the empty bytes object for this. I couldn't quite verify
this as I don't have an affected system.

The final argument is the 'bitmap' argument. The use of a NULL bitmap
together with nonzero xmove/ymove parameters is explicitly
documented as a valid way to move the raster position
(including to offscreen positions); doing it with a zero byte bitmap
is apparently unsupported in some OpenGL implementation even if the
width×height of the bitmap is 0 pixels.

https://docs.gl/gl3/glBitmap specifically documents that negative width
and height are errors, but doesn't document that a height or width of 0
is invalid.
2023-01-15 20:52:07 -06:00
CMorley
e856069a63 Merge branch '2.9' 2023-01-15 18:05:57 -08:00
CMorley
b76269134f qtvcp -qt_istat: pick better linear jog defaults on metric machines
about 25 times higher
2023-01-15 18:04:51 -08:00
CMorley
ed10328cb7 qtvcp -qt_action: add set jograte slower/faster functions
Mobes jog rate up or down by 10 (default) %
For linear and angular jogrates. used by shortcut keys
2023-01-15 18:04:51 -08:00
CMorley
7a84d9e949 qtvcp -logger: change the default name to DEFAULT
gladevcp uses this logger (indirectly) so having it say 'QTDESIGNER'
was confusing
2023-01-15 18:04:51 -08:00
CMorley
a80eaf147f qtvcp -qt_ngcgui: fix configured tab image, file dialog opening path
a configure path didn't show the image on start up
default folder that the file dialog openned was the working folder,
now ot's the specified ngcgui sub folder from the INI
2023-01-15 18:04:50 -08:00
CMorley
8e2dfbb920 Merge branch '2.9' 2023-01-14 14:31:21 -08:00
CMorley
37b06257a0 qtvcp -change qt5_graphics/ qtvcp sccreen's gcode property function
gcode properties is a dict.
We used to use the key as real test to display.
Now we use it as keys and replace them with nicer test.
Gives the screen builder more flexibility and will
help with translations later. Noticed the difference when
looking at AXIS code.
2023-01-14 14:30:24 -08:00
CMorley
97f8cb071c grenlin/gladevcp -add ability to get gcode properties from loaded file.
This code was missing from gremlin and pulled from qt5_graphics
hal_gremlin will now pass the gcode properties thru GStat messages
A screen just needs to connect to the GStat message 'graphics-gcode-properties'
2023-01-14 14:30:24 -08:00
CMorley
d01229e0e7 glcanon : add variable to hold the tool change numbers
Gcode properties function can be used to display tools used now
2023-01-14 14:30:24 -08:00
CMorley
f71992c333 Merge branch '2.9' 2023-01-13 21:16:21 -08:00
CMorley
01e24b3a1f qtvcp -basic_probe: fix input for non english systems 2023-01-13 21:00:45 -08:00
CMorley
4eebb5b0a9 qtvcp -qt_ngcui: fix input for non english systems 2023-01-13 21:00:45 -08:00
CMorley
ee9650b14a qtvcp -facing: fix non english input 2023-01-13 21:00:45 -08:00
CMorley
94c158f29d qtvcp -hole circle: fix line edits so non english systems work
non english systems use comma for decimal point.
Qtvcp doesn't handle this yet so we force the decimal to be useable.
Also made th eline edits longer.
2023-01-13 21:00:45 -08:00
CMorley
1dad08a6cb qtvcp -camview: improve handling of failed camera ports
it will try the designated port and if it fails,
checks for other functioning ports.
If it finds one uses it instead.
2023-01-13 21:00:45 -08:00
CMorley
359131c88e Merge branch '2.9' 2023-01-12 19:09:44 -08:00
CMorley
52dabadc98 qtvcp -add validators to inputs
in non english languages, only comma os allowed but qtvcp doesn;t handle
commas yet. here we force deciamls to be allowed
2023-01-12 19:08:32 -08:00
CMorley
4cce57dca0 qtvcp -status_slider: fix setting of jog minimum settings
angular and linear
2023-01-12 19:08:32 -08:00
CMorley
6c7a660cbc qtvcp -core: fix setting of default angular jog rate 2023-01-12 19:08:32 -08:00
CMorley
47f4f07e2d Merge branch '2.9' 2023-01-09 18:51:37 -08:00
CMorley
158e908e9a qtvcp -add experimental code to display HAL pins to qt_vismach
Based heavily on code from forum personality Aciera
2023-01-09 18:50:12 -08:00
0c0bb3056f
Merge remote-tracking branch 'origin/2.9' into alternate-bad-merge-fix 2023-01-07 12:15:33 -06:00
CMorley
5e5ac6f5fe qtvcp -fix error: panels with no handler files
looks like i forgot to delete some duplicate code
2023-01-06 14:39:33 -08:00
CMorley
a8acdbfa84 qtvcp -status_label: add motion type status 2023-01-04 22:57:28 -08:00
CMorley
15fe2d53cb hal_glib - add motion type message 2023-01-04 22:57:00 -08:00
Dewey Garrett
b5301718e8 glnav.py:GlNavBase:set_viewangle() add forcerotate
commit c44c029d5
"glnav -don't rotate view unless in perspective mode"

didn't consider vismach.py usage of set_viewangle()

affects numerous vismach guis that use lat,lon settings:
  5axisgui.py, hbmgui.py, hexagui.py, melfagui.py,
  millturngui.py, puma560gui.py, pumagui.py, scaragui.py,
  xyzac-trt-gui.py, xyzbc-trt-gui.py,
2023-01-03 12:12:19 -07:00
CMorley
06a348e727 gladevcp -drowidget: add anility to color fore and background
usinf css - copied from combi widget
2022-12-31 15:23:57 -08:00
CMorley
8472572d2a qtvcp -round_prpgress: fix error with new libraries
new pyqt5 libraries are more fuzzy about int vrs float
2022-12-31 10:13:49 -08:00
CMorley
8b7d7dd078 qtvcp -round_guage: fix errors with new libraries
new libraries are more fussy with int vrs floats
2022-12-31 10:01:23 -08:00
CMorley
1098d43247 qtvcp -camview: fix error when opeb vc library is missing 2022-12-30 22:45:56 -08:00
CMorley
06ac756213 qtvcp -pstat: fix vismach path for installed versions of linuxcnc 2022-12-30 22:38:10 -08:00
Phillip Carter
8f25afea12 Merge branch '2.9' 2022-12-25 14:25:54 +11:00
Phillip Carter
e57ae9c487 qtvcp dependency changes 2022-12-25 14:24:39 +11:00
Greg Carl
dec179ece0 Merge branch '2.9' 2022-12-20 10:33:42 -05:00
Greg Carl
a60a67f8ff mdi_line: reload display after MDI commands 2022-12-20 10:30:48 -05:00
Greg Carl
d9a44327df qtplasmac: rfl - change m67/68 string from int to float 2022-12-20 10:24:37 -05:00
Greg Carl
d0a15f428c Merge branch '2.9' 2022-12-18 10:51:44 -05:00
Greg Carl
a7acea624b qtplasmac: use new linuxcncicon_plasma.svg icon 2022-12-18 07:19:25 -05:00
Dewey Garrett
131761f462 Merge 'origin/2.9' 2022-12-07 06:00:51 -07:00
andypugh
39d8c4346b
Merge pull request #2171 from DuttonIndustrial/curtdutt/raster
Adds laser raster and vector control components.
2022-12-06 02:03:09 +00:00
CMorley
5e27875758 qtvcp -qt_vismach: update millturn to use primative.py functions 2022-12-04 18:36:17 -08:00
CMorley
c04e0c312e qtvcp -qt_vimach: update toolcylinder functions
use the library functions in primitives.py
also add code for origin markers as sample code - off by default.
2022-12-04 18:36:17 -08:00
CMorley
5caacc107c qtvcp -qt_vismach: remove requirement for comp argument
not needed so far but could be used in the future, I suppose.
2022-12-04 18:36:17 -08:00
Dewey Garrett
5cd859d51c Merge remote-tracking branch 'origin/2.9' 2022-12-03 09:37:16 -07:00
Curtis Dutton
56367af8cb Adds laser raster and vector control components.
laserpower.comp - Scales laser output based upon velocity
raster.comp - Controls laser power based upon preprogrammed bitmap data.

Includes associated sim configuraion to demonstrate laser component integration.

Includes basic test for raster component.

Teaches halcompiler about port pins.
     Adjusts pin component structure member names to prevent conflicts with preprocessor macros.
2022-11-30 16:16:01 -05:00
CMorley
22cc9302cc qtvcp -gcode_editor: make sure decoding text ignores conversion errors
It seems python 3.7 errors on converting some non english text.
3.8 seems to ignore by default.
Now we specifically set it to ignore.
2022-11-30 04:05:04 -08:00
Greg Carl
19a26b1335 Merge branch '2.9' 2022-11-28 06:51:46 -05:00
Greg Carl
b34838d1e7 qtplasmac: remove debug prints 2022-11-28 06:44:54 -05:00
Greg Carl
6c7374857c glcanon: calculate extents information for unrotated preview 2022-11-27 18:07:05 -05:00