Commit graph

151 commits

Author SHA1 Message Date
Dewey Garrett
b12d176673 axis.tcl expand tool display widget for tool info
ref complaints:
http://www.mail-archive.com/emc-developers@lists.sourceforge.net/msg17017.html
https://forum.linuxcnc.org/21-axis/32032-make-dialog-box-wider#84574

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2017-01-01 19:36:59 -07:00
Dewey Garrett
f087494704 axis.tcl remove unusd widget: .info.offset
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2017-01-01 19:36:59 -07:00
Chris Radek
d3b6f4c03e Update copyright dates for AXIS and Touchy
Signed-off-by: Chris Radek <chris@timeguy.com>
2015-09-08 13:49:50 -05:00
Sebastian Kuzminsky
594f74ca28 Merge remote-tracking branch 'origin/2.6' into 2.7
Conflicts:
	VERSION
	debian/changelog
2015-05-10 13:54:49 -06:00
Chris Radek
86797c98f0 Fix regression of control disabling, bug #423
This fixes incorrect reenabling of the manual controls while a program is
running.  This was an unintended consequence from 55d93a8f

Most of 55d93a8f had already been reverted to fix other breakage; see b6015c28
and 1775f4f9

Signed-off-by: Chris Radek <chris@timeguy.com>
2015-05-08 11:38:08 -05:00
Dewey Garrett
d6330e363a Merge branch '2.6' into 2.7
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2015-03-25 20:39:23 -07:00
Jeff Epler
5a0272d99a axis: Use a preferred form of "switch" (closes: SF#411)
The Tcl 'switch' command has several forms.  The one formerly used in
update_state is *not* a preferred format, because the compiler can't
statically tell whether $::task_state is an option (if it starts with a
"-") or the string to switch on (if it doesn't).

The format used in the rest of our Tcl code, with all the body-pattern
pairs enclosed as a single Tcl list is not appropriate here because in
this case the patterns are the result of expanding $-variables.

That leaves the "explicit end-of-options" form, in which "--" is
inserted before the value to be matched against a pattern.  When this
form is used, it also happens to fix SF#411 on my Debian Jessie system
when using an affected version of tcl, such as tcl8.6=8.6.2+dfsg-2.

Since the leading theory for the cause of SF#411 is an obscure bug in
Tcl, changing how the Tcl compiler is able to reason about the proc--by
taking it from a non-preferred code path to a preferred one--is a
reasonable workaround.

It also means a traceback will be avoided in the abnormal case that
$::task_state holds a negative integer.

Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2015-03-25 20:11:49 -05:00
Sebastian Kuzminsky
7341c82c33 Merge remote-tracking branch 'origin/2.6' into 2.7
Conflicts:
	VERSION
	debian/changelog
2015-02-21 10:10:18 -07:00
Sebastian Kuzminsky
8679f714f6 axis gui: fix jogging on nontrivkins machines, again
Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
2015-02-20 18:53:30 -07:00
Dewey Garrett
6b5437dee5 moveoff: Hal-only offsetting
src/hal/components/moveoff.comp - Hal offset component for 9 axes

Plus:
scripts/moveoff_gui - gui for managing the moveoff component

configs/sim/axis/moveoff/* - demonstration sim configs

The sim configs include:
hookup_moveoff.tcl - script to automatically install a moveoff
                     component into an existing configuration

Documentation:
  man moveoff          (halcompile generated)
  moveoff_gui --help
  hookup_move.tcl      (notes at top of file)

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2014-12-09 21:45:31 -07:00
Chris Radek
5dea513add Add keyboard shortcut, tooltip, and quickref documentation for tool touchoff 2014-06-11 10:31:11 -05:00
Dewey Garrett
752d6a0136 axis: separate buttons for system, tool touchoff 2014-06-11 10:31:11 -05:00
Chris Radek
b54d7b0423 Add rapid override support to AXIS 2014-06-10 16:51:09 -05:00
Dewey Garrett
9f6c219475 halshow: eliminate unused ref to a -ini option
eliminate in callers: axis.tcl, mini.tcl, tklinuxcnc.tcl

the switch statement that included "-ini" breaks with tclsh8.4
2014-02-09 18:34:54 -07:00
Jeff Epler
1402d8a118 axis: drop seticon hack
Since tk8.4.8, [wm iconphoto] has been able to set photo images as
window icons, so the seticon hack is not necessary.  Furthermore, it was
causing crashes on some systems and ineffective on others.

Also, the Img package (which can load png images) has been required for
the latencyhistogram script, so this is not a new requirement.
2013-11-16 20:13:54 -06:00
Jeff Epler
c047bcbe14 Merge remote branch 'origin/v2.5_branch'
Conflicts:
	src/Makefile.modinc.in
2013-04-18 10:44:22 -05:00
Jeff Epler
021d4bc6e1 axis: fix state of reload button
this seems to have resulted from a copy-paste error
2013-04-18 09:21:17 -05:00
Michael Haberler
15f829382e Merge branch 'v2.5_branch' 2012-06-29 10:28:18 +02:00
Daniel Rogge
b6f526a9b0 Change width of G codes display in Axis to display S word. 2012-06-15 14:24:12 -05:00
Chris Radek
48f2847816 Merge branch 'v2.5_branch' 2012-06-07 13:40:41 -05:00
Jeff Epler
ee554953a9 Merge remote branch 'origin/v2.4_branch' into v2.5_branch 2012-06-05 16:10:14 -05:00
Jeff Epler
9dd36f96d9 Don't start jogging with up/down/pgup/pgdn
... when the jog increment combobox is shown
2012-06-05 16:09:38 -05:00
Michael Haberler
55d93a8fea queued MDI: support in task & Axis
For MDI, the interpreter is now fed through mdi_input_queue.

The test for enabling an MDI input window now is:

	interp_state == INTERP_IDLE or
	(mdi_input_queue.len() < maxlen && exec_mode == MDI)

see axis.tcl and axis.py diffs for details.
2012-05-29 02:24:32 +02:00
Jeff Epler
43eda790e1 axis: Add grid lines to preview 2012-05-09 13:33:40 -05:00
Chris Radek
75c94d0a38 AXIS: update copyright date, branding in help/about 2012-04-12 17:45:13 -05:00
Chris Radek
b83fc90b75 AXIS: Update copyright in help/about 2012-04-12 17:28:48 -05:00
Jeff Epler
8aeb509132 refer to LINUXCNC_TCL_DIR 2012-01-21 10:13:37 -06:00
Sebastian Kuzminsky
7c133fabd3 rename: make axis run again when packaged 2012-01-20 22:13:39 -07:00
Jeff Epler
51fc09fd2d Rename many user visible parts to "linuxcnc"
this includes the main script, some of the GUIs, the Python module,
the Tcl package, some image fies.

On a sim system, axis, tkemc, xemc all start.  runtests pass.

a system with realtime wasn't yet tested.

packaging probably requires additional changes and was not yet tested.
2012-01-18 11:25:09 -06:00
Dewey Garrett
f78bfe069c axis.tcl: make auto_path work for RIP with tcl packages
Problem: when
         1) a desktop-shortcut is created by pickconfig.tcl
       and
         2) the build is run-in-place
the environment for the shortcut can not specify the path
for tcl packages that can be invoked from axis with the call:
         root_window.tk.call("package","require",*pkg)

so add to auto_path
2011-11-08 07:01:34 -06:00
Kim Kirwan
4188056630 Allow Axisui Feedrate Override to display 9999%
When verifying g-code in an EMC2 simulation, it is sometimes very
convenient to run with an .ini file where all the velocities and
accelerations have been turned up to unreasonably high values,
just so you can run through the simulation faster.

For example, I'm working in a simulation now where the velocities
and accels have been turned up to about 20x actual values, and
the feedrate override max (slider) can go up to 1500% (15x normal).

This works just fine in EMC2 now, but the displayed value next to
the slider is limited to 3 digits, so when the slider exceeds
999%, it rolls over to 1000%, which displays as 000%. So when I
move my slider all the way up it only shows 500% instead of 1500%.

I noticed in 2.4.6 that the +1000% shows as 000%, but in 2.6.0pre
(current master) it shows as .000%. There seems to be a minor
artifact in the display that looks like a decimal point, but I
think it's the serif at the bottom of the one. Perhaps caused
by other display-related changes? No problem, just noting it.

I would recommend that this very minor fix be cherry-picked
from master to the more current revisions also, but I'll leave
that to the more experienced developers.

And if someone comes along that thinks 99x normal speed is
still too slow, then they can send in a patch to bump this up
again, from 4 digits to 5. Thanks for reading this far.

Signed-off-by: Kim Kirwan <Kim@KimKirwan.com>
2011-03-27 17:40:47 -05:00
Jeff Epler
78f9ea3291 axis: fix jog after ctrl-alt-left or -right in mdi 2011-02-07 16:33:46 -06:00
Jeff Epler
e53fecb399 axis: fix numlock + KP_#
shift-numpad jogging did not work.  fixing that required also
adding special handling of the keys in entry fields so that
shift-numpad in mdi didn't cause jogs
2011-02-07 11:37:47 -06:00
Jeff Epler
cb97bedd13 axis: fix jog after ctrl-alt-left or -right in mdi 2011-02-07 11:11:09 -06:00
Jeff Epler
6f2907912b axis: optionally use a blend mode for preview plot
Depending on the part program, the preview plot may be more useful when
it is drawn in a blended mode.  However, for other programs the old
style view might be preferable.  Add a blended drawing mode and make it
selectable at runtime.
2010-10-27 13:54:44 -05:00
Chris Radek
0c843c14c0 Add separator to set off the radiobuttons 2010-10-11 13:19:54 -05:00
Jeff Epler
fae7d1eb6d debugging tool to show letters duplicated and available in a menu 2010-10-11 07:46:25 -05:00
Jeff Epler
2dfdae1ea3 axis: add choice of g10/g11 tool touch off 2010-10-11 07:46:22 -05:00
Jeff Epler
0282ba7307 Merge remote branch 'origin/v2.4_branch'
Conflicts:
	share/axis/tcl/axis.tcl
2010-07-29 14:51:50 -05:00
Jeff Epler
dd4b81cf8c axis: fix keys while choosing jog increment (SF#3028197)
The combobox wants to intercept up, down, pgup, pgdn keys for its
own purposes while the dropdown is open.  However, the combobox did
not intercept the corresponding KeyRelease events.  This interacted
badly with the AXIS main window, which uses key release events to
update the "current axis".  By intercepting the release events in the
same conditions as the press events are intercepted, this problem
is avoided.
2010-07-13 14:16:50 -05:00
Jeff Epler
f2668616a6 axis: fix jogs after selecting increment (SF#3028917)
A typo as old as time was preventing focus from being moved back
to the main window from the pop-down window.  When the pop-down
was opened with a click, this left focus in the wrong place,
and most keystroke shortcuts stopped working.
2010-07-13 14:16:50 -05:00
Jeff Epler
408e928a2a axis: fix high CPU usage on icewm
with some window managers (e.g., icewm) there is a Configure event
generated anytime [wm minsize] is set, even if it is set to the prior
value.  Therefore, it is necessary to avoid issuing [wm minsize] if
the prior value is the same as the new value.
2010-07-13 14:16:49 -05:00
Michael Geszkiewicz
f5e7fc30f7 Allow offsets preview to be disabled from view menu
Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
2010-06-22 21:04:52 +02:00
Jeff Epler
da34d92d14 make sure the selected line stays visible
when the pane or window is resized, the number of lines of program
text that are visible can change.  Scroll back to the running or selected
line in this case.

Unfortunately, this behavior happens even if the user has explicitly
scrolled away from that line.  However, this is probably a less likely
circumstance than the one that this is intended to correct.
2010-03-23 16:07:43 -05:00
Jeff Epler
1ead7dc983 don't allow the pane to shrink too much
Chris identified a problem when you: maximize the window, then make
the text area small, then unmaximize the window.  The text area would
become completely hidden.  This makes sure both the top and bottom
areas of the pane retain at least their desired size.  It reduces
flexibility of the pane, but prevents the program text from appearing
to be "lost"
2010-03-23 16:07:42 -05:00
Jeff Epler
77e0b0c9a7 on tk8.5, make top pane enlarge by default
Before the addition of the pane, the top part would enlarge and the
program text would stay fixed-size when the window was enlarged.  After
the addition of this patch, the text enlarges.  Tk8.4 (Ubuntu hardy)
offers no control over this, but Tk8.5 (Ubuntu karmic) does through
"paneconfigure -stretch".  When this feature is available, restore
the old behavior of enlarging the preview area by default, keeping
the program text fixed-size.
2010-03-23 16:07:41 -05:00
Jeff Epler
ce24e1924e don't prevent window from being shrunk
this code interacts badly with the paned widget, because after
the sash is moved, .pane's reqheight becomes its actual height.
by doing it only once at startup (instead of anytime the root
window is reconfigured), the effect is avoided.

I was unable to determine what the "+4" fudge factor was for; the old
commit in the AXIS CVS just says "change wm minsize recalculation"!
2010-03-23 16:07:41 -05:00
Jeff Epler
ac3320f0a5 make the program text resizeable 2010-03-23 16:07:40 -05:00
Jeff Epler
7b018b24ea fix specifying dialog accelerator list
a dialog specifier like {-2 -3} should set the first button to be the
default.  This was done above, and the deleted line was resetting
default to the wrong value.
2010-02-10 14:26:58 -06:00
Jeff Epler
d905e4fe4a don't enable radiobutton / checkbutton appearance hacks on tk8.5
tk8.5 has a nice appearance by default, so there's no need for these
creepy workarounds
2009-06-30 09:41:42 -05:00