@@ -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
6868GladeVCP 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
181181The 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
183183edit 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
361361file as follows:
362362
363363[source,{ini}]
@@ -435,10 +435,10 @@ Usage: gladevcp [options] myfile.ui
435435Options:
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".
973973do_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.
25852585After successful import, `get_handlers()` is called in the following
25862586state:
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
25962596Once all modules have been imported and method names extracted, the
25972597following 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
26102610So when your handler class is initialized, all widgets are existent
26112611but 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
26632663fact that you may change values and HAL pins through text entry,
26642664sliders, spin boxes, toggle buttons etc, but their settings are not
26652665saved 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
26902690and/or class attributes of your handler class to be retained across
26912691invocations, 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
27392739assumes that the INI file didn't exist or had the default values from
27402740self.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
27442744ini.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`.
27472747ini.create_default_ini()::
2748- Create a .ini file with default values
2748+ Create an INI file with default values.
27492749ini.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
27552755To 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
30303030The LinuxCNC Wiki has information on adding custom widgets to GladeVCP.
30313031link:http://wiki.linuxcnc.org/cgi-bin/wiki.pl?GladeVCP_Custom_Widgets[GladeVCP Custom Widgets]
30323032
3033- == Auxiliary Gladevcp Applications
3033+ == Auxiliary GladeVCP Applications
30343034
30353035Support is provided for independently installed GladeVCP applications
30363036that conform to system directory placements as defined by the
@@ -3049,7 +3049,7 @@ The system directory defined by LINUXCNC_AUX_GLADEVCP
30493049a GladeVCP-compatible python file(s) and related subdirectories.
30503050The python file is imported at GladeVCP startup and made
30513051available to subsequent GladeVCP applications including
3052- embedded usage in supporting guis .
3052+ embedded usage in supporting GUIs .
30533053
30543054The system directory defined by LINUXCNC_AUX_EXAMPLES
30553055(/usr/share/linuxcnc/aux_examples) specifies the location
0 commit comments