Commit graph

17 commits

Author SHA1 Message Date
Sebastian Kuzminsky
3241f6dbf1 fix specifed/specified typos all over 2018-01-21 14:49:14 -07:00
Dewey Garrett
48ea609746 pyngcgui.py: chk for gcmc if not in ini on 1st use
Check for gcmc executable was made only if 1 or more gcmc files specified
by ini items like [DISPLAY]NGCGUI_SUBFILE=cpocket.gcmc but was not
checked on use if there were no gcmc ini items

Thanks to forum user phillc54 for the bug report

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2016-06-17 07:52:06 -07:00
Dewey Garrett
6a5a64f30c pyngcgui.py remove --help mention of --height
as it was never supported in a release

also: fix a typo and the grammar for possessive "its"

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2016-02-19 12:07:24 -07:00
Dewey Garrett
faf9e113c3 pyngcgui.py, gremlin_view.py improve ini file find
using ps -C linuxcncsvr --noheader -o args

both pyngcgui and gremlin view can be started independently
of the process running linuxcnc so they ask the system for
the inifile

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2015-10-06 14:13:43 -07:00
Dewey Garrett
efe3ac1545 pyngcgui.py, gremlin_view.py regression
The options of pgrep (package procps) changed between:
  lucid:  procps 1:3.2.8-1ubunt
  jessie: procps 2:3.3.9-9

pgrep -lf worked on lucid but not on jessie
pgrep -a  worked on jessie but not on lucid

so try the form ps ax|grep ...

ref: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784143

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2015-10-06 13:10:59 -07:00
Dewey Garrett
f86290abf6 ngcgui-gcmc: gcmc related bug fixes
limit msg length for popups when errant input to gcmc compiler
typo on strip()
for detecting options comment, split on // not /

minor: ngcgui.txt update
2014-03-04 09:22:09 -07:00
Dewey Garrett
b64d749707 ngcgui-gcmc programmable involute-gear example
new: involute-gear.gcmc adapted for ngcgui from B. Stultien's example
new: ensure_mode.gcmd include file to resolve potential conflict
     with preamble and gcmc code (gcmc wins)

with updates:
1) popup msg error if entry box for gcmc not a number
2) allow comment after tag when tagging a  gcmc option
3) handle gcmc_include_path for new custom tab additions
4) incorporate ensure_mode in .gcmc examples
5) update ngcgui.txt for ensure_mode
2014-03-03 11:18:43 -07:00
Dewey Garrett
1cbe86cf18 ngcgui-gcmc: always pass floating point
avoid subtle problems with gcmc using integers
2014-03-03 11:18:34 -07:00
Dewey Garrett
d13839780e pyngcgui: allow tabs scroll for any mode 2014-02-23 21:33:37 -07:00
Dewey Garrett
183efb3e9d ngcgui: support gcmc include path
with:
[DISPLAY]GCMC_INCLUDE_PATH = dir1:dir2:...
2014-02-23 17:40:33 -07:00
Dewey Garrett
fa704ced55 ngcgui.txt: update documentation
update for configs tree restructure
update for pyngcgui
update for gcmc
show  stanalone --help messages
2014-02-19 21:21:56 -07:00
Dewey Garrett
aa05c938ae ngcgui: support tilde expansion in PROGRAM_PREFIX 2014-02-15 21:43:32 -07:00
Dewey Garrett
56fdc0ee40 ngcgui: normalize filenames for tilde expansion
when using Ctrl-u etc
2014-02-15 09:45:23 -07:00
Dewey Garrett
7bdd488c0d ngcgui,pyngcgui: support gcmc files
(squashed commits from test branch: dgarr/ngcgui-gcmc)

Add support for [py]ngcgui to read .gcmc input files for the gcmc
compiler and make tab pages with entry boxes for tagged variables.
A tabpage 'info' message and compiler options can be specified
by tags too.

Ref:  gcmc (G-Code Meta Compiler) http://www.vagrearg.org/content/gcmc
Note: gcmc version 1.4.3 or later must be installed separately and
      available in the user PATH

--------------------------------------------------------------------
Tag formats (simplified):

  Variable:
  //ngcgui: vname [= value , [comment text]]

  Info message:
  //ngcgui: info: text message

  Option:
  //ngcgui: -optioname [optionvalue]
--------------------------------------------------------------------
When a feature for a gcmc tab page is created, the variables
and options are passed to the compiler and a gcode subroutine
file is produced and placed at the head of the linuxcnc subroutine
search path.  These files are purged at each ngcgui restart
that uses .gcmc files.
--------------------------------------------------------------------

Example ini files for axis, touchy, and gscreen:
   configs/sim/axis/ngcgui/ngcgui_gcmc.ini
   configs/sim/axis/ngcgui/pyngcgui_gcmc.ini
   configs/sim/touchy/ngcgui/pyngcgui_touchy_gcmc.ini
   configs/sim/gscreen/ngcgui/pyngcgui_gscreen_gcmc.ini

Example gcmc files:
   nc_files/gcmc_lib/drill.gcmc
   nc_files/gcmc_lib/square.gcmc
   nc_files/gcmc_lib/star.gcmc    (Bertho Stultiens)
   nc_files/gcmc_lib/wheels.gcmc  (Alan Battersby)
2014-02-06 19:24:03 -07:00
Dewey Garrett
fac208ae42 pyngcgui: show value not default value
in text prepended to generated ngc file
2014-01-02 05:54:34 -07:00
Dewey Garrett
5746b73f98 lib/python: take advantage of linuxcnc.SHARE
simplify specifying build items like:
   linuxcnc.SHARE
   linuxcnc.PREFIX
for easier compatibility of RIP builds and deb installs
2013-12-09 09:42:17 -07:00
Dewey Garrett
bc1bc54174 make: eliminate unneeded copies
use make to create simple standalone executable files for
   ngcgui,pyngcgui,gremlin_view,tooledit
instead of copying files from source tree

to add this patch, you may need to rm existing files:
  lib/python/gremlin_view.py
  lib/python/pyngcgui.py
  share/linuxcnc/gremlin_view.ui
2013-12-01 11:15:45 -07:00
Renamed from src/emc/usr_intf/pyngcgui.py (Browse further)