Skip to content

Commit 8745638

Browse files
committed
docs: review o qtdragon.adoc
1 parent ffb4e43 commit 8745638

1 file changed

Lines changed: 47 additions & 40 deletions

File tree

docs/src/gui/qtdragon.adoc

Lines changed: 47 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ Please forward reports to the forum or maillist.
2727

2828
=== QtDragon
2929

30-
.QtDragon - 3 or 4 Axes Sample (1440x860) in silver theme
30+
.QtDragon - 3 or 4 axis sample (1440x860) in silver theme
3131
image::images/silverdragon.png["QtDragon Router",scale="25%"]
3232

3333
QtDragon is resizable from a resolution of 1280x768 to 1680x1200.
3434
It will work in window mode on any monitor with higher resolution but not on monitors with lower resolution.
3535

3636
=== QtDragon_hd
3737

38-
.QtDragon_hd - 3 or 4 Axis Sample for larger monitors (1920x1056) in dark theme
38+
.QtDragon_hd - 3 or 4 axis sample for larger monitors (1920x1056) in dark theme
3939
image::images/qtdragon_hd.png["QtDragon_hd",scale="25%"]
4040

4141
QtDragon_hd is a similar design as QtDragon but modified to utilize the extra space of modern larger monitors.
@@ -56,12 +56,12 @@ You can only have one of each section ( ie [HAL] ) in the INI file. If you see i
5656

5757
=== Display
5858

59-
In the section '[DISPLAY]' change the 'DISPLAY' line to read:
59+
In the section `[DISPLAY]` change the `DISPLAY =` assignment to read:
6060

6161
* `qtdragon` for a small version
6262
* `qtdradon_hd` for the large version.
6363

64-
You can add `-v`, `-d`, '-i', or '-q' for (respectably) verbose, debug, info or quiet output to the terminal.
64+
You can add `-v`, `-d`, `-i`, or `-q` for (respectably) verbose, debug, info or quiet output to the terminal.
6565

6666
[source,{ini}]
6767
----
@@ -72,7 +72,7 @@ DISPLAY = qtvcp qtdragon
7272
=== Preferences
7373

7474
To keep track of preferences, QtDragon looks for a preference text file.
75-
Add the following entry under the '[DISPLAY]' heading.
75+
Add the following entry under the `[DISPLAY]` heading.
7676
This example will save the file in the config folder of the launch screen.
7777
(Other options are possible see the QtVCP's screenoption widget docs.)
7878

@@ -150,11 +150,12 @@ MAX_ANGULAR_VELOCITY = 360
150150
----
151151

152152
=== User message dialog system
153+
153154
Optional popup custom message dialogs, controlled by HAL pins. +
154155
MESSAGE_TYPE can be 'okdialog' or 'yesnodialog'.
155-
See qtvcp/library/messages for more information. +
156+
See `qtvcp/library/messages` for more information. +
156157
This example shows how to make a dialog that requires the user to select 'ok' to acknowledge and hide. +
157-
These dialogs could be used for such things as low lube oil warnings etc,
158+
These dialogs could be used for such things as low lube oil warnings, etc.
158159

159160
[source,{ini}]
160161
----
@@ -170,12 +171,13 @@ MESSAGE_PINNAME = oktest
170171

171172
You can optionally embed QtVCP Virtual Control Panels into the QtDragon or QtDragon_hd screen. +
172173
These panels can be either user built or builtin <<cha:qtvcp:panels,QtVCP Panels>>. +
173-
See QtVCP/VCP panels for other available builtin panels. +
174+
See QtVCP/VCP panels for other available builtin panels.
175+
174176
The `EMBED_TAB_NAME` entry will used as the title for the new tab.(must be unique) +
175177
Tab `EMBED_TAB_LOCATION` options include: `tabWidget_utilities`, `tabWidget_setup` and `stackedWidget_mainTab`. +
176-
Tab `EMBED_TAB_COMMAND' specifies what embed-able program to run, including any of it's command line options. +
177-
This sample adds a builtin panel, a graphical animated machine using the vismach library, to the utilities tab.
178+
Tab `EMBED_TAB_COMMAND` specifies what embed-able program to run, including any of it's command line options.
178179

180+
.Sample adding a builtin panel to the utilities tab, i.e., a graphical animated machine using the vismach library.
179181
[source,{ini}]
180182
----
181183
[DISPLAY]
@@ -184,11 +186,12 @@ EMBED_TAB_COMMAND = qtvcp vismach_mill_xyz
184186
EMBED_TAB_LOCATION = tabWidget_utilities
185187
----
186188

187-
If using the `tabWidget_utilities` or `tabWidget_setup` locations, an extra tab will appear with the panel. +
188-
If using 'stackedWidget_mainTab', a button labelled 'User" will appear. Pressing this button will cycle
189-
through displaying all available panels (specified for this location) on the main tab area.
189+
If using the `tabWidget_utilities` or `tabWidget_setup` locations, an extra tab will appear with the panel.
190+
If using `stackedWidget_mainTab`, a button labelled 'User' will appear.
191+
Pressing this button will cycle through displaying all available panels (specified for this location) on the main tab area.
190192

191193
=== Subroutine Paths
194+
192195
If using NGCGUI, remap or custom M codes routines, linuxcnc needs to know where to look for the files. +
193196
This sample is typical of what is needed for NgcGui, Basic Probe. and Versa Probe remap code. +
194197
These paths will need to be adjusted to point to the actual files on your system.
@@ -219,7 +222,8 @@ NGCGUI_SUBFILE = qpocket.ngc
219222

220223
=== Preview Control
221224

222-
Magic comments can be used to control the G-code preview. +
225+
Magic comments can be used to control the G-code preview.
226+
223227
On very large programs the preview can take a long time to load.
224228
You can control what is shown and what is hidden the the graphics screen by adding the appropriate comments from this list into your G-code:
225229

@@ -242,14 +246,15 @@ PROGRAM_EXTENSION = .ngc,.nc,.tap G-Code File (*.ngc,*.nc,*.tap)
242246
----
243247

244248
QtDragon has the ability to send loaded files through a 'filter program'.
245-
This filter can do any desired task: Something as simple as making sure the file ends with 'M2', or something as complicated as generating G-Code from an image.
249+
This filter can do any desired task: Something as simple as making sure the file ends with 'M2', or something as complicated as generating G-code from an image.
246250
See <<cha:filter,Filter Programs>> for more information.
247251

248252
The '[FILTER]' section of the INI file controls how filters work.
249253
First, for each type of file, write a 'PROGRAM_EXTENSION' line.
250254
Then, specify the program to execute for each type of file.
251255
This program is given the name of the input file as its first argument, and must write rs274ngc code to standard output.
252256
This output is what will be displayed in the text area, previewed in the display area, and executed by LinuxCNC when 'Run'.
257+
253258
The following lines add support for the `image-to-gcode` converter included with LinuxCNC and running Python based filter programs:
254259

255260
[source,{ini}]
@@ -318,7 +323,8 @@ m2
318323
----
319324

320325
=== Startup codes
321-
You should set default M/G code for start up. These will be overridden by running a ngc file. +
326+
327+
You should set default M/G code for start up. These will be overridden by running a NGC file. +
322328
These are only sample codes, integrator should choose appropriate codes.
323329

324330
[source,{ini}]
@@ -335,7 +341,8 @@ These could also call OWord routines if desired. +
335341
In the sample configurations they are labelled for moving between
336342
current user system origin (zero point) and Machine system origin. +
337343
User origin is the first MDI command in the INI list, machine origin is the second. +
338-
This example shows how to move Z axis up first. The commands are separated by the ';'
344+
This example shows how to move Z axis up first. The commands are separated by the ';'.
345+
339346
The label is set after the comma. The symbols '\n' adds a line break.
340347

341348
[source,{ini}]
@@ -350,9 +357,9 @@ MDI_COMMAND = G53 G0 Z0;G53 G0 X0 Y0,Goto\nMachn\nZero
350357

351358
These optional HAL files will be called after QtDragon has loaded everything else. +
352359
You can add multiple line for multiple file. Each one will be called in the order they appear. +
353-
Calling HAL files after QtDragon is already loaded assures that QtDragon's HAL pins are available. +
354-
This sample shows typical entries, but must be adjusted to actual requirements.
355-
360+
Calling HAL files after QtDragon is already loaded assures that QtDragon's HAL pins are available.
361+
362+
.Sample with typical entries for the specificion of HAL files to be read after the QtDragon was startd. Adjust these lines to match actual requirements.
356363
[source,{ini}]
357364
----
358365
[HAL]
@@ -364,9 +371,9 @@ POSTGUI_HALFILE = qtdragon_hd_debugging.hal
364371

365372
These optional HAL commands will be run after QtDragon has loaded everything else. +
366373
You can add multiple line. Each one will be called in the order they appear. +
367-
Any HAL command can be used. +
368-
This sample shows typical entries, but must be adjusted to actual requirements.
374+
Any HAL command can be used.
369375

376+
.Sample with typical files in INI file to load modules after the GUI is available. Adjusti these to match your actual requirements.
370377
[source,{ini}]
371378
----
372379
[HAL]
@@ -377,8 +384,8 @@ POSTGUI_HALCMD = loadusr halmeter
377384

378385
=== Builtin Sample Configurations
379386

380-
The sample configurations 'sim/qtdragon/' or `sim/qtdragon_hd` are already configured to use QtDragon as the screen. +
381-
There are several examples, to demonstrate different machine configurations.
387+
The sample configurations `sim/qtdragon/` or `sim/qtdragon_hd` are already configured to use QtDragon as the screen.
388+
There are several examples that demonstrate various machine configurations.
382389

383390
== Key Bindings
384391

@@ -397,14 +404,14 @@ Pause - Pause Machine Movement
397404

398405
== Buttons
399406

400-
Buttons that are checkable will change their text colour when checked. +
401-
This is controlled by the stylesheet/theme +
407+
Buttons that are checkable will change their text colour when checked.
408+
This is controlled by the stylesheet/theme
402409

403410
== Virtual Keyboard
404411

405-
QtDragon includes a virtual keyboard for use with touchscreens. +
406-
To enable the keyboard, check the Use Virtual Keyboard checkbox in the Settings page. +
407-
Clicking on any input field, such as probe parameters or tool table entries, will show the keyboard. +
412+
QtDragon includes a virtual keyboard for use with touchscreens.
413+
To enable the keyboard, check the Use Virtual Keyboard checkbox in the Settings page.
414+
Clicking on any input field, such as probe parameters or tool table entries, will show the keyboard.
408415
To hide the keyboard, do one of the following:
409416

410417
- click the MAIN page button
@@ -583,7 +590,7 @@ The file can be modified or updated at any time while compensation is disabled.
583590
When next enabled, the file will be reread and the compensation map is recalculated.
584591
This file is expected to be in the configuration directory.
585592

586-
The probe data file is generated by a probing program, which itself is generated by an external python program called gcode_ripper,
593+
The probe data file is generated by a probing program, which itself is generated by an external python program called `gcode_ripper`,
587594
which can be launched from the file manager tab using the 'G-code Ripper' button.
588595

589596
=== Using G-code Ripper for Z level Compensation
@@ -596,7 +603,7 @@ G-code Ripper offers many functions that we will not go in to here.
596603
This is only available in the QtDragon_hd version.
597604

598605
* In Qtdragon_hd switch to the file tab and press the load G-code Ripper button.
599-
* Set origin to match the origin of the gcode file to be probed.
606+
* Set origin to match the origin of the G-code file to be probed.
600607
* Under G-Code Operations, check Auto Probe.
601608
* File -> Open G-Code File (The file you will run after compensation)
602609
* If necessary, make adjustments and press Recalculate.
@@ -676,7 +683,7 @@ then the tool is lowered until it touches the plate, triggering the probe signal
676683
Z0 is set to probe height - plate thickness.
677684

678685
The second method uses a tool setter in a fixed position and a known height above the table where the probe signal will be triggered.
679-
In order to set Z0 to the top of the workpiece, it has to know how far above the table the probe trigger point is (tool setter height)
686+
In order to set Z0 to the top of the workpiece, it has to know how far above the table the probe trigger point is (tool setter height).
680687
and how far above the table the top of the workpiece is.
681688
This operation has to be done every time the tool is changed as the tool length is not saved.
682689

@@ -936,7 +943,7 @@ Z = -2
936943

937944
==== The Python Section
938945

939-
The Python section sets up what files LinuxCNC's Python interpreter looks for, e.g., 'toplevel.py' file in the 'python' folder in the configuration directory:
946+
The Python section sets up what files LinuxCNC's Python interpreter looks for, e.g., `toplevel.py` file in the `python` folder in the configuration directory:
940947

941948
[source,{ini}]
942949
----
@@ -956,18 +963,18 @@ First create a folder named 'python' in your machine's configuration folder.
956963
If using a compiled RIP version of LinuxCNC: +
957964
From 'YOUR-LINUXCNC-DIRECTORY/configs/sim/QtDragon/python', copy 'toplevel.py' and 'remap.py' to your configuration's new 'python' folder.
958965

959-
if using an installed version of LinuxCNC: +
966+
If using an installed version of LinuxCNC: +
960967
from '/usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/qtdragon/python/', copy 'toplevel.py' and 'remap.py' to your configuration's new 'python' folder.
961968

962969
Alternately, you can make new files in your 'python' folder that you made in your configuration folder, with a text editor.
963970

964-
One named 'remap.py' saved with this text:
971+
One named `remap.py` saved with this text:
965972
[source,python]
966973
----
967974
from stdglue import *
968975
----
969976

970-
One named 'toplevel.py' saved with this text:
977+
One named `toplevel.py` saved with this text:
971978
[source,python]
972979
----
973980
import remap
@@ -983,7 +990,7 @@ In `~/linuxcnc/nc_files/examples/remap_lib/python_stdglue/` folder.
983990
These file names and location could be different depending on installed verses development (RIP) version of LinuxCNC.
984991
For instance `~/linuxcnc/nc_files/macros` is `~/linuxcnc/nc_files/examples/macros` in installed versions of LinuxCNC.
985992
You could use customized versions of the same files or name them differently.
986-
The entries in the '[RS274NGC]' section dictate to LinuxCNC what and where to look.
993+
The entries in the `[RS274NGC]` section dictate to LinuxCNC what and where to look.
987994
The names and location quoted should be available in either system by default.
988995

989996
=== Needed HAL Connections
@@ -1033,14 +1040,14 @@ The side buttons will control the display.
10331040
* '+', '-': Zoom controls
10341041
* 'C': Clear graphics of tool movement lines
10351042

1036-
In QtDragon_hd there are also macro buttons available on the right side.
1043+
In `qtdragon_hd` there are also macro buttons available on the right side.
10371044
Up to tens buttons can be defined in the INI.
10381045

10391046
=== File Tab
10401047

10411048
You can use this tab to load or transfer programs.
10421049
Editing of G-code programs can be selected from this tab.
1043-
With qtdragon_hd, this is where you can load 'Gcode Ripper'.
1050+
With `qtdragon_hd`, this is where you can load the 'G-code Ripper'
10441051

10451052
=== Offsets Tab
10461053

@@ -1108,7 +1115,7 @@ This tabs will display another stab election of G-code utility programs:
11081115
* 'Hole Circle': allows quick setting of a program to drill a bolt circle of definable diameter and number of holes.
11091116
* 'NGCGUI': is a QtVCP version of the popular G-code subroutine builder/selector, see <<sub:qtvcp:widgets:qt-ngcgui,Widgets-NGCGUI>>.
11101117

1111-
Custom QtVCP panels can be displayed here by setting the EMBED_TAB_LOCATION option to 'tabWidget_utilities'
1118+
Custom QtVCP panels can be displayed here by setting the EMBED_TAB_LOCATION option to `tabWidget_utilities`
11121119

11131120
=== User Tab
11141121

0 commit comments

Comments
 (0)