Commit graph

12 commits

Author SHA1 Message Date
Moses McKnight
6b90e14513 Added callLevel to EMC_TASK_STAT class, to fix hal_glib file-loaded bug.
callLevel will be non-zero if executing a subroutine.  When subroutines are
executing, EMC_TASK_STAT::file gets set to the file name of the subroutine
(remap as well I think).
Exporting the call level in the task status allows us to ignore file name
changes in hal_glib and avoid sending bogus signals to things
such as hal_gremlin and hal_sourceview.

Signed-off-by: Moses McKnight <moses@texband.net>
2016-06-01 12:07:48 -05:00
Norbert Schechner
8676c92516 hal_glip - do not emit signal file changed on remap
if interpreter is reading or waiting, the new file
is a remap procedure, with the following test we
do avoid that a signal is emitted in that case, causing
a reload of the preview and sourceview widgets

ToDo : Find a way to avoid signal when the line changed due to
       a remap procedure, because the signal do highlight a wrong
       line in the code

Signed-off-by: Norbert Schechner <nieson@web.de>
2015-05-14 23:21:31 +02:00
Chris Morley
89100dcb94 hal_glib -add reload-display signal
now you can cause the HAL_gremlin to reload.
for instance after a offset change
2013-08-11 14:12:28 -07:00
Chris Morley
1380916101 hal_glib - add a tool-changed gobject signal
GUI's can be signalled when the tool has changed in the spindle
2013-04-14 13:13:09 -07:00
Chris Morley
ec074daeda hal_glib -add homed signal and add joint descriptions
homed and not-all-homed send a string of joint numbers
2013-03-06 00:02:10 -08:00
Chris Morley
def730bb49 gladevcp - add homing gobject signals to GStat
all-homed and not-all-homed meaning in reference to all available axes
in the config.
2012-11-02 23:04:08 -07:00
Chris Morley
c5f085ce96 hal_glib -intialize data so nothing is emitted at start-up
the signals were inconsistant (order) at start up.
makes more sence to just emit when there is an actual change of
state rather then also at initialization.
The state of things is pretty easy to assume at start-up and can be
checked inside a program.
2012-10-25 00:05:51 -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
Pavel Shramov
370d47b9a9 hal_glib: Add file-loaded and line-changed signals
file-loaded indicates that new file is loaded into interpeter
line-changed is triggered when motion moves to next line
2011-01-04 16:14:07 +03:00
Pavel Shramov
591c37bc67 hal_glib: Make GStat static
GStat may be used to exchange signals inside UI so it's better to
use single instance
2011-01-04 16:13:21 +03:00
Pavel Shramov
6c071480b2 hal_glib: Add GLib wrapper for emc.stat
This wrapper provides load of signals for EMC state changes like
estop, interp-idle, etc.
2010-12-27 19:47:00 +03:00
Pavel Shramov
2c9b32525f pyhal: Add GLib wrappers for Pin
GPin provides GObject interface to HAL Pin. Currently it provides
'value-changed' signal which is emitted when pin's value is changed.
On GPin creation update callback is scheduled for each 100ms.
2010-12-13 11:30:52 +03:00