Skip to content

Commit 7841748

Browse files
committed
Merge branch '2.9' into HEAD
2 parents f4b383a + 317595e commit 7841748

13 files changed

Lines changed: 45 additions & 142 deletions

File tree

configs/apps/xhc-hb04/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
xhc-hbo4 standalone tests
22

3+
Imortant Note: This only works with 'XTerm'
34

45
Use to test button layouts for a USB wireless xhc-hb04 pendant.
56

debian/control.main-pkg.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Depends:
2222
python3-opengl,
2323
python3-configobj,
2424
python3-xlib,
25-
libgtksourceview-3.0-dev,
25+
libgtksourceview-4-dev,
2626
tcl@TCLTK_VERSION@,
2727
tk@TCLTK_VERSION@,
2828
bwidget (>= 1.7),

debian/linuxcnc.install.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ usr/share/axis
115115
usr/share/glade
116116
usr/share/gmoccapy
117117
usr/share/gscreen
118-
usr/share/gtksourceview-2.0
118+
usr/share/gtksourceview-4
119119

120120
usr/share/applications/linuxcnc.desktop
121121
usr/share/applications/linuxcnc-latency.desktop

docs/src/config/ini-config.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ See <<cha:gmoccapy,GMOCCAPY>> document for GMOCCAPY details.
318318
The INCREMENTS can be used to override the default.
319319
The values can be decimal numbers (e.g., 0.1000) or fractional numbers (e.g., 1/16), optionally followed by a unit (cm, mm, um, inch, in or mil).
320320
If a unit is not specified the machine unit is assumed.
321-
Metric and imperial distances may be mixed: INCREMENTS = 1 inch, 1 mil, 1 cm, 1 mm, 1 µm is a valid entry.
321+
Metric and imperial distances may be mixed: INCREMENTS = 1 inch, 1 mil, 1 cm, 1 mm, 1 um is a valid entry.
322322
* `GRIDS = 10 mm, 1 in, ...` - Defines the preset values for grid lines.
323323
The value is interpreted the same way as `INCREMENTS`.
324324
* `OPEN_FILE = /full/path/to/file.ngc` - The file to show in the preview plot when AXIS starts.

docs/src/gui/gladevcp.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1919,7 +1919,7 @@ image::images/offsetpage.png[align="center"]
19191919
=== HAL_sourceview widget
19201920

19211921
This is for displaying and simple editing of G-code.
1922-
It looks for `.ngc` highlighting specs in `~/share/gtksourceview-2.0/language-specs/`.
1922+
It looks for `.ngc` highlighting specs in `~/share/gtksourceview-4/language-specs/`.
19231923
The current running line will be highlighted.
19241924

19251925
With external Python glue code it can:

docs/src/man/man1/mqtt-publisher.1.adoc

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@ debian this is available from the `python3-paho-mqtt` package.
3636

3737
== OPTIONS
3838

39-
**keys=**__pin1_[,_pin2_,...]_::
40-
The name of HAL pins, signals and other values to publish using MQTT.
41-
The names are also used as the JSON keys in the MQTT message published with the broker.
39+
*keys*=_pin1[,pin2,...]_::
40+
41+
The name of HAL pins, signals and other values to publish using
42+
MQTT. The names are also used as the JSON keys in the MQTT
43+
message published with the broker. If multiple "keys=" options
44+
are specified, the lists are merged.
4245

4346
*--dryrun*::
4447
Do not set up MQTT connection, only print message to stdout.
@@ -88,23 +91,32 @@ Any set of HAL pins and signals can be published.
8891
This setup might be a useful starting point:
8992

9093
----
91-
loadusr -W mqtt-publisher [MQTT]DRYRUN --mqtt-broker=[MQTT]BROKER
92-
--mqtt-user=[MQTT]USERNAME --mqtt-password=[MQTT]PASSWORD
93-
keys=halui.axis.a.pos-feedback,halui.axis.b.pos-feedback,
94-
halui.axis.c.pos-feedback,halui.axis.u.pos-feedback,
95-
halui.axis.v.pos-feedback,halui.axis.w.pos-feedback,
96-
halui.axis.x.pos-feedback,halui.axis.y.pos-feedback,
97-
halui.axis.z.pos-feedback,halui.estop.is-activated,
98-
halui.joint.0.is-homed,halui.joint.1.is-homed,halui.joint.2.is-homed,
99-
halui.joint.3.is-homed,halui.joint.4.is-homed,halui.joint.5.is-homed,
100-
halui.joint.6.is-homed,halui.joint.7.is-homed,halui.joint.8.is-homed,
101-
halui.machine.is-on,halui.max-velocity.value,halui.mode.is-auto,
102-
halui.mode.is-manual,halui.mode.is-mdi,halui.mode.is-teleop,
103-
halui.program.is-running'
94+
loadusr -W mqtt-publisher \
95+
[MQTT]DRYRUN \
96+
--mqtt-broker=[MQTT]BROKER
97+
--mqtt-user=[MQTT]USERNAME \
98+
--mqtt-password=[MQTT]PASSWORD \
99+
keys=halui.axis.a.pos-feedback,halui.axis.b.pos-feedback,\
100+
halui.axis.c.pos-feedback,halui.axis.u.pos-feedback,\
101+
halui.axis.v.pos-feedback,halui.axis.w.pos-feedback,\
102+
halui.axis.x.pos-feedback,halui.axis.y.pos-feedback,\
103+
halui.axis.z.pos-feedback \
104+
keys=halui.estop.is-activated, halui.joint.0.is-homed,\
105+
halui.joint.1.is-homed,halui.joint.2.is-homed,halui.joint.3.is-homed,\
106+
halui.joint.4.is-homed,halui.joint.5.is-homed,halui.joint.6.is-homed,\
107+
halui.joint.7.is-homed,halui.joint.8.is-homed \
108+
keys=halui.machine.is-on,halui.max-velocity.value,halui.mode.is-auto,
109+
halui.mode.is-manual,halui.mode.is-mdi,halui.mode.is-teleop,
110+
halui.program.is-running
104111
----
105112

106-
Note: The list of keys can not include space after comma.
107-
The lines are appear broken only to avoid too long lines in the documentation.
113+
Note: It is recommended to use the line continuation character "\" as
114+
shown here to improve readability. But note that spaces must be left in
115+
to delimit options, and must not be included (including at the beginning
116+
of a line) inside a single option.
117+
118+
HAL limits a single option/token (for example "keys=") to 255 characters.
119+
To work around this issue use multiple "keys=" entries as shown.
108120

109121
== SEE ALSO
110122

lib/python/gladevcp/gtksourceview.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<glade-catalog name="gtksourceview" library="gtksourceview-2.0" depends="gtk+">
3+
<glade-catalog name="gtksourceview" library="gtksourceview-4" depends="gtk+">
44
<glade-widget-classes>
55
<glade-widget-class name="GtkSourceView" title="GtkSourceView" generic-name="gtksourceview">
66
<properties>

lib/python/gladevcp/hal_sourceview.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import gi
2626
gi.require_version("Gtk","3.0")
2727
gi.require_version("Gdk","3.0")
28-
gi.require_version("GtkSource","3.0")
28+
gi.require_version("GtkSource","4")
2929
from gi.repository import Gtk
3030
from gi.repository import Gdk
3131
from gi.repository import GObject
@@ -62,10 +62,10 @@ def __init__(self, *a, **kw):
6262
self.lm = GtkSource.LanguageManager()
6363
self.sm = GtkSource.StyleSchemeManager()
6464
if 'EMC2_HOME' in os.environ:
65-
path = os.path.join(os.environ['EMC2_HOME'], 'share/gtksourceview-2.0/language-specs/')
65+
path = os.path.join(os.environ['EMC2_HOME'], 'share/gtksourceview-4/language-specs/')
6666
self.lm.set_search_path(self.lm.get_search_path() + [path])
6767

68-
self.buf.set_language(self.lm.get_language('.ngc'))
68+
self.buf.set_language(self.lm.get_language('gcode'))
6969
self.set_show_line_numbers(True)
7070
self.set_show_line_marks(True)
7171
self.set_highlight_current_line(True)
@@ -116,7 +116,7 @@ def set_language(self, lang, path = None):
116116
# lang = the lang file to set
117117
if path == None:
118118
if 'EMC2_HOME' in os.environ:
119-
path = os.path.join(os.environ['EMC2_HOME'], 'share/gtksourceview-2.0/language-specs/')
119+
path = os.path.join(os.environ['EMC2_HOME'], 'share/gtksourceview-4/language-specs/')
120120
if path:
121121
self.lm.set_search_path(path)
122122
self.buf.set_language(self.lm.get_language(lang))

share/gtksourceview-2.0/language-specs/ngc.lang

Lines changed: 0 additions & 110 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)