Skip to content

Commit 47731ff

Browse files
authored
Merge pull request #1923 from smoe/docs_stupid_simple_stuff
Docs stupid simple stuff
2 parents 82e7c33 + f83d9fd commit 47731ff

8 files changed

Lines changed: 209 additions & 206 deletions

File tree

docs/src/gcode/m-code.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ spindle they operate on.
263263

264264
It is OK to enable or disable the controls when
265265
they are already enabled or disabled.
266-
See the <<sub:feed-rate,Feed Rate>> HAL for more details.
266+
See the <<sub:feed-rate,Feed Rate>> section for more details.
267267

268268
They also can be be toggled individually using 'M50' and 'M51',
269269
see below.

docs/src/gui/axis.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ implementation and subject to change during the development cycle.
944944
The AXIS GUI includes a no-op (placeholder) function named
945945
'user_hal_pins()'. +
946946
It is executed just after the .axisrc file is called and
947-
just before any gladevcp panels / embedded tabs are initialized. +
947+
just before any GladeVCP panels / embedded tabs are initialized. +
948948
This function may be implemented
949949
within a `~/.axisrc` python script or a '[DISPLAY]USER_COMMAND_FILE'
950950
python script to make custom HAL pins that use the 'axisui.' prefix. +

docs/src/gui/gladevcp.adoc

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -47,29 +47,29 @@ linked to a HAL pin, which in turn interfaces to the rest of LinuxCNC.
4747

4848
*PyVCP:*
4949

50-
- widget set: uses TkInter widgets
51-
- user interface creation: "edit XML file / run result / evaluate looks" cycle
52-
- no support for embedding user-defined event handling
53-
- no LinuxCNC interaction beyond HAL pin I/O supported
50+
- Widget set: uses TkInter widgets.
51+
- User interface creation: "edit XML file / run result / evaluate looks" cycle.
52+
- No support for embedding user-defined event handling.
53+
- No LinuxCNC interaction beyond HAL pin I/O supported.
5454

5555
*GladeVCP:*
5656

57-
- widget set: relies on the http://www.gtk.org/[GTK+] widget set.
58-
- user interface creation: uses the http://glade.gnome.org/[Glade] WYSIWYG user interface editor
59-
- any HAL pin change may be directed to call back into a user-defined Python event handler
60-
- any GTK signal (key/button press, window, I/O, timer, network events) may be associated with user-defined handlers in Python
61-
- direct LinuxCNC interaction: arbitrary command execution, like initiating MDI
62-
commands to call a G-code subroutine, plus support for status change operations through Action Widgets
63-
- several independent GladeVCP panels may be run in different tabs
64-
- separation of user interface appearance and functionality: change appearance without touching any code
57+
- Widget set: relies on the http://www.gtk.org/[GTK+] widget set.
58+
- User interface creation: uses the http://glade.gnome.org/[Glade] WYSIWYG user interface editor.
59+
- Any HAL pin change may be directed to call back into a user-defined Python event handler
60+
- Any GTK signal (key/button press, window, I/O, timer, network events) may be associated with user-defined handlers in Python.
61+
- Direct LinuxCNC interaction: arbitrary command execution, like initiating MDI
62+
commands to call a G-code subroutine, plus support for status change operations through Action Widgets.
63+
- Several independent GladeVCP panels may be run in different tabs.
64+
- Separation of user interface appearance and functionality: change appearance without touching any code.
6565

6666
== A Quick Tour with the Example Panel
6767

6868
GladeVCP panel windows may be run in three different setups:
6969

70-
- always visible integrated into AXIS at the right side, exactly like PyVCP panels
70+
- always visible integrated into AXIS at the right side, exactly like PyVCP panels,
7171
- as a tab in AXIS,Touchy, Gscreen, or Gmoccapy; in AXIS this would create a third
72-
tab besides the Preview and DRO tabs which must be raised explicitly
72+
tab besides the Preview and DRO tabs which must be raised explicitly,
7373
- as a standalone toplevel window, which can be iconifyed/deiconified independent of the main window.
7474

7575
.Installed LinuxCNC
@@ -179,7 +179,7 @@ and configs/sim/axis/gladevcp/gladevcp_panel.ini.
179179
=== Exploring the User Interface description
180180

181181
The user interface is created with the glade UI editor - to explore
182-
it, you need to have <<gladevcp:prerequisites, glade installed>>. To
182+
it, you need to have <<gladevcp:prerequisites,glade installed>>. To
183183
edit the user interface, run the command
184184

185185
----
@@ -357,7 +357,7 @@ using a run-in-place setup.
357357
[[gladevcp:embedding-tab]]
358358
=== Embedding as a Tab
359359

360-
To do so, edit your .ini file and add to the DISPLAY and HAL sections of INI
360+
To do so, edit your INI file and add to the DISPLAY and HAL sections of INI
361361
file as follows:
362362

363363
[source,{ini}]
@@ -435,10 +435,10 @@ Usage: gladevcp [options] myfile.ui
435435
Options:
436436
437437
-h, --help::
438-
Show this help message and exit
438+
Show this help message and exit.
439439
440440
-c NAME::
441-
Set component name to NAME. Default is base name of UI file
441+
Set component name to NAME. Default is base name of UI file.
442442
443443
-d::
444444
Enable debug output
@@ -905,11 +905,11 @@ as well as the time between two changes can be set using the widget properties.
905905
<widgetname>-scaled-value::
906906
out float pin +
907907
The shown value divided by the scale value, this is very useful, if the
908-
velocity is shown in units / min, but LinuxCNC expects it to be in units / second
908+
velocity is shown in units / min, but LinuxCNC expects it to be in units / second.
909909
<widgetname>-scale::
910910
in float pin +
911911
The scale to apply. +
912-
Default is 60
912+
Default is 60.
913913
<widgetname>-increase::
914914
in bit pin +
915915
As long as the pin is true, the value will increase. +
@@ -969,7 +969,7 @@ template::
969969
String +
970970
Text template to display the value. Python formatting is used. +
971971
Any allowed format. +
972-
Default is "%.1f"
972+
Default is "%.1f".
973973
do_hide_button::
974974
Boolean +
975975
Whether to show or hide the increment an decrement button. +
@@ -1619,16 +1619,16 @@ There are several python methods to control the widget:
16191619
* `[widget name].set_to_inch(state)` +
16201620
Sets the DRO to show imperial units. +
16211621
`state` = boolean (True or False) +
1622-
Default is FIXME
1622+
Default is FIXME.
16231623
* `[widget name].set_auto_units(state)` +
16241624
If True the DRO will change units according to active G-code (G20 / G21). +
16251625
`state` = boolean (True or False) +
1626-
Default is True
1626+
Default is True.
16271627
* `[widget name].set_to_diameter(state)` +
16281628
If True the DRO will show the diameter not the radius, i.e., the axis
16291629
value multiplied by 2 (specially needed for lathes). +
16301630
`state` = boolean (True or False) +
1631-
Default is False
1631+
Default is False.
16321632
* `[widget name].toggle_readout()` +
16331633
Toggles the order of the DRO in the widget.
16341634
* `[widget name].change_axisletter(letter)` +
@@ -2585,27 +2585,27 @@ First, modules are imported and initialized in command line order.
25852585
After successful import, `get_handlers()` is called in the following
25862586
state:
25872587

2588-
- the widget tree is created, but not yet realized (no toplevel
2589-
`window.show()` has been executed yet)
2590-
- the halcomp HAL component is set up and all HAL widget's pins have
2591-
already been added to it
2592-
- it is safe to add more HAL pins because `halcomp.ready()` has not yet
2588+
- The widget tree is created, but not yet realized (no toplevel
2589+
`window.show()` has been executed yet).
2590+
- The halcomp HAL component is set up and all HAL widget's pins have
2591+
already been added to it.
2592+
- It is safe to add more HAL pins because `halcomp.ready()` has not yet
25932593
been called at this point, so you may add your own pins, for instance
25942594
in the class `__init__()` method.
25952595

25962596
Once all modules have been imported and method names extracted, the
25972597
following steps happen:
25982598

2599-
- all qualifying method names will be connected to the widget tree with
2599+
- All qualifying method names will be connected to the widget tree with
26002600
`connect_signals()/signal_autoconnect()` (depending on the type of UI
26012601
imported - GtkBuilder vs the old libglade format).
2602-
- the HAL component is finalized with halcomp.ready()
2603-
- if a window ID was passed as argument, the widget tree is re-parented
2602+
- The HAL component is finalized with halcomp.ready().
2603+
- If a window ID was passed as argument, the widget tree is re-parented
26042604
to run in this window, and Glade's toplevel window1 is abandoned (see
2605-
FAQ)
2606-
- if a HAL command file was passed with `-H halfile`, it is executed
2607-
with halcmd
2608-
- the Gtk main loop is run.
2605+
FAQ).
2606+
- If a HAL command file was passed with `-H halfile`, it is executed
2607+
with halcmd.
2608+
- The Gtk main loop is run.
26092609

26102610
So when your handler class is initialized, all widgets are existent
26112611
but not yet realized (displayed on screen). And the HAL component isn't
@@ -2659,7 +2659,7 @@ This should set debug to 2 and confirm that your module actually did it.
26592659

26602660
=== Persistent variables in GladeVCP
26612661

2662-
A annoying aspect of GladeVCP in its earlier form and pyvcp is the
2662+
An annoying aspect of GladeVCP in its earlier form and PyVCP is the
26632663
fact that you may change values and HAL pins through text entry,
26642664
sliders, spin boxes, toggle buttons etc, but their settings are not
26652665
saved and restored at the next run of LinuxCNC - they start at the default
@@ -2690,11 +2690,11 @@ If you want any of Gtk widget state, HAL widgets output pin's values
26902690
and/or class attributes of your handler class to be retained across
26912691
invocations, proceed as follows:
26922692

2693-
- import the `gladevcp.persistence` module
2694-
- decide which instance attributes, and their default values you want to
2695-
have retained, if any
2696-
- decide which widgets should have their state retained
2697-
- describe these decisions in your handler class' +__init__()+ method
2693+
- Import the `gladevcp.persistence` module.
2694+
- Decide which instance attributes, and their default values you want to
2695+
have retained, if any.
2696+
- Decide which widgets should have their state retained.
2697+
- Describe these decisions in your handler class' +__init__()+ method
26982698
through a nested dictionary as follows:
26992699

27002700
[source,python]
@@ -2739,27 +2739,27 @@ Note that types are saved and preserved on restore. This example
27392739
assumes that the INI file didn't exist or had the default values from
27402740
self.defaults.
27412741

2742-
After this incantation, you can use the following IniFil methods:
2742+
After this incantation, you can use the following IniFile methods:
27432743

27442744
ini.save_state(obj)::
2745-
Saves objs's attributes as per `IniFil.vars` dictionary and the widget
2745+
Saves objs's attributes as per `IniFile.vars` dictionary and the widget
27462746
state as described in `IniFile.widgets` in `self.defaults`.
27472747
ini.create_default_ini()::
2748-
Create a .ini file with default values
2748+
Create an INI file with default values.
27492749
ini.restore_state(obj)::
27502750
Restore HAL out pins and obj's attributes as
2751-
saved/initialized to default as above
2751+
saved/initialized to default as above.
27522752

27532753
=== Saving the state on GladeVCP shutdown
27542754

27552755
To save the widget and/or variable state on exit, proceed as follows:
27562756

2757-
- select some interior widget (type is not important, for instance a
2757+
- Select some interior widget (type is not important, for instance a
27582758
table).
2759-
- in the 'Signals' tab, select 'GtkObject'. It should show a 'destroy'
2759+
- In the 'Signals' tab, select 'GtkObject'. It should show a 'destroy'
27602760
signal in the first column.
2761-
- add the handler name, e.g. 'on_destroy' to the second column.
2762-
- add a Python handler like below:
2761+
- Add the handler name, e.g. 'on_destroy' to the second column.
2762+
- Add a Python handler like below:
27632763

27642764
[source,python]
27652765
----
@@ -2986,7 +2986,7 @@ I defined a `hal_spinbutton` widget in glade, and set a default `value` property
29862986

29872987
- make sure you have the development version of LinuxCNC installed. You
29882988
don't need the axisrc file any more, this was mentioned in the old
2989-
GladeVcp wiki page.
2989+
GladeVCP wiki page.
29902990
- run GladeVCP or AXIS from a terminal window. If you get Python errors,
29912991
check whether there's still a +/usr/lib/python2.6/dist-packages/hal.so+
29922992
file lying around besides the newer
@@ -3030,7 +3030,7 @@ arise. For details, see the `keyboard_forward()` function in
30303030
The LinuxCNC Wiki has information on adding custom widgets to GladeVCP.
30313031
link:http://wiki.linuxcnc.org/cgi-bin/wiki.pl?GladeVCP_Custom_Widgets[GladeVCP Custom Widgets]
30323032

3033-
== Auxiliary Gladevcp Applications
3033+
== Auxiliary GladeVCP Applications
30343034

30353035
Support is provided for independently installed GladeVCP applications
30363036
that conform to system directory placements as defined by the
@@ -3049,7 +3049,7 @@ The system directory defined by LINUXCNC_AUX_GLADEVCP
30493049
a GladeVCP-compatible python file(s) and related subdirectories.
30503050
The python file is imported at GladeVCP startup and made
30513051
available to subsequent GladeVCP applications including
3052-
embedded usage in supporting guis.
3052+
embedded usage in supporting GUIs.
30533053

30543054
The system directory defined by LINUXCNC_AUX_EXAMPLES
30553055
(/usr/share/linuxcnc/aux_examples) specifies the location

docs/src/gui/ngcgui.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ image::images/ngcgui.png[align="center"]
2424
* 'PYNGCGUI' is an alternate, python implementation of ngcgui.
2525
* 'PYNGCGUI' can run as a standalone application or can be embedded as
2626
a tab page (with its own set of multiple subroutine tabs) in any
27-
GUI that supports embedding of gladevcp applications axis, touchy, gscreen
27+
GUI that supports embedding of GladeVCP applications axis, touchy, gscreen
2828
and gmoccapy.
2929

3030
Using NGCGUI or PYNGCGUI:
@@ -60,7 +60,7 @@ These examples demonstrate both 3-axis (XYZ) cartesian configurations
6060
(like mills) and lathe (XZ) setups. Some examples show the use of a
6161
pop up keyboard for touch screen systems and other examples demonstrate
6262
the use of files created for the gcmc (G-code Meta Compiler) application.
63-
The touchy examples also demonstrate incorporation of a gladevcp back plot
63+
The touchy examples also demonstrate incorporation of a GladeVCP back plot
6464
viewer (gremlin_view).
6565

6666
The simplest application is found as:
@@ -333,15 +333,15 @@ that uses the application truetype-tracer. The truetype-tracer application must
333333
be installed independently and located in the user PATH.
334334
====
335335

336-
=== Embedding PYNGCGUI as a gladevcp tab page in a gui
336+
=== Embedding PYNGCGUI as a GladeVCP tab page in a gui
337337

338338
The following INI file items go in the [DISPLAY] section for use with the
339339
axis, gscreen, or touchy guis. (See additional sections below for additional
340340
items needed)
341341

342342
.EMBED_ Items
343343
* `EMBED_TAB_NAME = Pyngcgui` - name to appear on embedded tab
344-
* `EMBED_TAB_COMMAND = gladevcp -x {XID} pyngcgui_axis.ui` - invokes gladevcp
344+
* `EMBED_TAB_COMMAND = gladevcp -x {XID} pyngcgui_axis.ui` - invokes GladeVCP
345345
* `EMBED_TAB_LOCATION = name_of_location` - where the embedded page is located
346346

347347
[NOTE]
@@ -355,7 +355,7 @@ Configuration Chapter.
355355

356356
[NOTE]
357357
====
358-
The truetype tracer gui front-end is not currently available for gladevcp
358+
The truetype tracer gui front-end is not currently available for GladeVCP
359359
applications.
360360
====
361361

docs/src/gui/qtdragon.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ You can add '-c-' or '-v' for debug output to the terminal.
7070
DISPLAY = qtvcp qtdragon
7171
----
7272

73-
=== Preference
73+
=== Preferences
7474

7575
To keep track of preferences, qtdragon looks for a preference text file.
7676
add the following entry under the '[DISPLAY]' heading.
@@ -208,7 +208,7 @@ This filter can do any desired task: Something as simple as making sure
208208
the file ends with 'M2', or something as complicated as generating
209209
G-Code from an image.
210210

211-
The '[FILTER]' section of the ini file controls how filters work.
211+
The '[FILTER]' section of the INI file controls how filters work.
212212
First, for each type of file, write a 'PROGRAM_EXTENSION' line.
213213
Then, specify the program to execute for each type of file.
214214
This program is given the name of the input file as its first argument,
@@ -542,7 +542,7 @@ setting.
542542
QtDragon can be setup to do integrated auto tool measurement using the
543543
Versa Probe widget.
544544
To use this feature, you will need to do some additional settings and you may
545-
want to use the offered hal pin to get values in your own ngc remap procedure.
545+
want to use the offered HAL pin to get values in your own ngc remap procedure.
546546

547547
[IMPORTANT]
548548
Before starting the first test, do not forget to enter the probe
@@ -714,9 +714,9 @@ The entries in the '[RS274NGC]' section dictate to linuxcnc what and where to
714714
look.
715715
The names and location quoted should be available in either system by default.
716716

717-
=== Needed Hal Connections
717+
=== Needed HAL Connections
718718

719-
Make sure to connect the tool probe input in your hal file:
719+
Make sure to connect the tool probe input in your HAL file:
720720
If connected properly, you should be able to toggle the probe LED in qtdragon
721721
if you press the probe stylus.
722722

docs/src/hal/hal-examples.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ start
298298
# comment out the following lines while testing and use the interactive
299299
# option halrun -I -f start.hal to be able to show pins etc.
300300
301-
# wait until the gladevcp GUI named winder terminates
301+
# wait until the GladeVCP GUI named winder terminates
302302
waitusr winder
303303
304304
# stop HAL threads

docs/src/motion/switchkins.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The kinematics type is selected by a motion module HAL pin that
2929
can be updated from a G-code program or by interactive MDI
3030
commands. The halui provisions for activating MDI commands can be
3131
used to allow buttons to select the kinematics type using
32-
hardware controls or a virtual panel (PyVCP, gladevcp, etc.).
32+
hardware controls or a virtual panel (PyVCP, GladeVCP, etc.).
3333

3434
When a kinematics type is changed, the G-code must also issue
3535
commands to *force synchronization* of the interpreter and motion

0 commit comments

Comments
 (0)