From a14a7a0ccc9de76aeab0b2e4bbf58f1a79deedc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 3 Jul 2024 10:19:30 +0200 Subject: New upstream version 5.3.0GA --- app/lib/demos/CMakeLists.txt | 5 ---- app/lib/demos/dmadjend.xtr | 20 ++++++++++---- app/lib/demos/dmcancel.xtr | 10 +++---- app/lib/demos/dmconn1.xtr | 12 ++++---- app/lib/demos/dmconn2.xtr | 24 ++++++++-------- app/lib/demos/dmctlpnl.xtr | 45 ++++++++++++++---------------- app/lib/demos/dmdelund.xtr | 2 +- app/lib/demos/dmexcept.xtr | 4 +-- app/lib/demos/dmgroup.xtr | 6 ++-- app/lib/demos/dmhelix.xtr | 8 +++--- app/lib/demos/dmlines.xtr | 2 +- app/lib/demos/dmlines2.xtr | 4 +-- app/lib/demos/dmnotes.xtr | 53 +++++++++++++++++++++++++++++++---- app/lib/demos/dmrescal.xtr | 8 ++++-- app/lib/demos/dmrotate.xtr | 6 ++-- app/lib/demos/dmselect.xtr | 34 +++++++++++++++++++++-- app/lib/demos/dmtosel.xtr | 66 ++++++++++++++++++++++++++++++++++---------- app/lib/demos/dmtoyard.xtr | 53 ++++++++++++++++++++--------------- 18 files changed, 240 insertions(+), 122 deletions(-) delete mode 100644 app/lib/demos/CMakeLists.txt (limited to 'app/lib/demos') diff --git a/app/lib/demos/CMakeLists.txt b/app/lib/demos/CMakeLists.txt deleted file mode 100644 index 712902c..0000000 --- a/app/lib/demos/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -FILE(GLOB DEMO_FILES *.xtr) -INSTALL( - FILES ${DEMO_FILES} - DESTINATION ${XTRKCAD_SHARE_INSTALL_DIR}/demos - ) diff --git a/app/lib/demos/dmadjend.xtr b/app/lib/demos/dmadjend.xtr index c74122a..8e3ea40 100644 --- a/app/lib/demos/dmadjend.xtr +++ b/app/lib/demos/dmadjend.xtr @@ -109,15 +109,26 @@ It's possible to almost create a complete circle. If you drag the mouse beyond the start of the curve the track becomes very short. END STEP -MOUSE 4 7.500 3.167 +#MOUSE 4 7.500 3.167 +MOUSE 3 7.500 3.167 MESSAGE _________________________________________ Here you are warned that the track will be too short. END -MOUSE 1 7.60 3.167 -BIGPAUSE +STEP +MOUSE 4 7.500 3.167 +MESSAGE +_________________________________________ + +Because the modified track is too short, the modification is abandoned the original track is restored. +END +STEP MOUSE 2 7.60 3.167 +MOUSE 3 7.60 3.167 +BIGPAUSE +#MOUSE 2 7.60 3.167 +MOUSE 3 7.60 3.167 STEP MOUSE 3 8.417 3.167 PAUSE 60 @@ -172,8 +183,7 @@ END STEP CLEAR MESSAGE -If you adjust the endpoint of a turnout or sectional track the track is extended by a similar track segment. The extension can be -a straight or a curve. +If you adjust the endpoint of a turnout or sectional track the track is extended by a similar track segment. The extension can be a straight or a curve. END STEP MOUSE 1 19.750 10.583 diff --git a/app/lib/demos/dmcancel.xtr b/app/lib/demos/dmcancel.xtr index e4afbf7..f6544dd 100644 --- a/app/lib/demos/dmcancel.xtr +++ b/app/lib/demos/dmcancel.xtr @@ -27,7 +27,7 @@ This is a note about something important but I can't remember what. END DRAW 5 0 0 0 0 4.125000 5.750000 0 0.000000 - Z 0 0.000000 0.000000 0.000000 0 140.000000 "This is some text" + Z 0 0.000000 0.000000 0.000000 0 140.000000 "Hello" END REDRAW RESET @@ -79,8 +79,8 @@ STEP PARAMETER describe S2 Medium Left PARAMETER describe S3 SL-E396F2 STEP -MOUSE 2 11.500 6.625 -MOUSE 4 11.500 6.625 +MOUSE 2 6.000 6.625 +MOUSE 4 6.000 6.625 MESSAGE _________________________________________ @@ -95,7 +95,7 @@ and its size. END STEP #DESCRIBE Font Size 19 -PARAMETER describe LE1 -1 19 +PARAMETER describe LE1 -1 60 STEP MESSAGE _________________________________________ @@ -140,7 +140,7 @@ but I can't remember what. END DRAW 5 0 0 0 0 4.125000 5.750000 0 0.000000 - Z 0 0.000000 0.000000 0.000000 0 19.000000 "This is some text" + Z 0 0.000000 0.000000 0.000000 0 60.000000 "Goodbye" END REGRESSION END CLEAR diff --git a/app/lib/demos/dmconn1.xtr b/app/lib/demos/dmconn1.xtr index 5d5ea12..d793aec 100644 --- a/app/lib/demos/dmconn1.xtr +++ b/app/lib/demos/dmconn1.xtr @@ -62,7 +62,7 @@ TURNOUT 6 0 0 0 0 HO 2 48.889351 1.684210 180.000000 "Kato Unitrack #4-R Turnou L 11579568 0.053333 0.000000 0.723334 7.283465 0.723334 A 11579568 0.053333 20.930666 0.000000 -21.654000 0.000000 19.000000 END -TURNOUT 7 0 0 0 0 HO 2 40.576601 3.256112 15.500000 "Kato Unitrack R550-3.5° (incl w/#4 TO) " +TURNOUT 7 0 0 0 0 HO 2 40.576601 3.256112 15.500000 "Kato Unitrack R550-3.°5° (incl w/#4 TO) " T 8 40.576601 3.256112 285.500000 T 6 41.839647 2.863926 109.000000 D 0.000000 0.000000 @@ -71,7 +71,7 @@ TURNOUT 7 0 0 0 0 HO 2 40.576601 3.256112 15.500000 "Kato Unitrack R550-3.5 A 11579568 0.053333 20.930666 0.000000 -21.654000 0.000000 3.500000 A 11579568 0.053333 22.377334 0.000000 -21.654000 0.000000 3.500000 END -TURNOUT 8 0 0 0 0 HO 2 34.789943 4.043642 0.000000 "Kato Unitrack R550-15.5° (incl w/#4 TO) " +TURNOUT 8 0 0 0 0 HO 2 34.789943 4.043642 0.000000 "Kato Unitrack R550-15.5° (incl w/#4 TO) " T 14 34.789943 4.043642 270.000000 T 7 40.576601 3.256112 105.500000 D 0.000000 0.000000 @@ -80,7 +80,7 @@ TURNOUT 8 0 0 0 0 HO 2 34.789943 4.043642 0.000000 "Kato Unitrack R550-15.5 A 11579568 0.053333 20.930666 0.000000 -21.654000 0.000000 15.500000 A 11579568 0.053333 22.377334 0.000000 -21.654000 0.000000 15.500000 END -TURNOUT 9 0 0 0 0 HO 2 15.302497 3.256113 344.500000 "Kato Unitrack R550-15.5° (incl w/#4 TO) " +TURNOUT 9 0 0 0 0 HO 2 15.302497 3.256113 344.500000 "Kato Unitrack R550-15.5° (incl w/#4 TO) " E 15.302497 3.256113 254.500000 T 15 21.089155 4.043642 90.000000 D 0.000000 0.000000 @@ -89,7 +89,7 @@ TURNOUT 9 0 0 0 0 HO 2 15.302497 3.256113 344.500000 "Kato Unitrack R550-15.5 A 11579568 0.053333 20.930666 0.000000 -21.654000 0.000000 15.500000 A 11579568 0.053333 22.377334 0.000000 -21.654000 0.000000 15.500000 END -TURNOUT 10 0 0 0 0 HO 2 13.891809 2.863926 341.000000 "Kato Unitrack R550-3.5° (incl w/#4 TO) " +TURNOUT 10 0 0 0 0 HO 2 13.891809 2.863926 341.000000 "Kato Unitrack R550-3.5° (incl w/#4 TO) " T 1 13.891809 2.863926 251.000000 E 15.154856 3.256113 74.500000 D 0.000000 0.000000 @@ -504,7 +504,7 @@ TURNOUT 13 0 0 0 0 HO 2 27.865728 1.684210 0 0.000000 "Kato Unitrack Straight 6 END TURNOUT 14 0 0 0 0 HO 2 34.789943 4.043642 0 180.000000 "Kato Unitrack Straight 6 7/8 2-130" T4 8 34.789943 4.043642 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 - T4 15 27.939549 4.043642 270.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 + E4 27.939549 4.043642 270.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 D 0.000000 0.000000 P "Normal" 1 S 0 0.000000 0.000000 0.000000 6.850394 0.000000 @@ -512,7 +512,7 @@ TURNOUT 14 0 0 0 0 HO 2 34.789943 4.043642 0 180.000000 "Kato Unitrack Straight L3 11579568 0.053333 0.000000 -0.723334 0 6.850394 -0.723334 0 END TURNOUT 15 0 0 0 0 HO 2 27.791908 4.043642 0 180.000000 "Kato Unitrack Straight 6 7/8 2-130" - T4 14 27.791908 4.043642 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 + E4 27.791908 4.043642 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 T4 9 20.941514 4.043642 270.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 D 0.000000 0.000000 P "Normal" 1 diff --git a/app/lib/demos/dmconn2.xtr b/app/lib/demos/dmconn2.xtr index 720c677..3cd9837 100644 --- a/app/lib/demos/dmconn2.xtr +++ b/app/lib/demos/dmconn2.xtr @@ -2,7 +2,7 @@ VERSION 7 DEMOINIT ORIG 8.000 5.000 0.000 PARAMETER display description-fontsize 24 -TURNOUT 1 0 0 0 0 N 2 17.157895 20.894737 0.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" +TURNOUT 1 0 0 0 0 N 2 17.157895 20.894737 0.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" T 2 17.157895 20.894737 270.000000 T 8 24.061930 18.034992 135.000000 D 0.000000 0.000000 @@ -11,7 +11,7 @@ TURNOUT 1 0 0 0 0 N 2 17.157895 20.894737 0.000000 "Kato Unitrack Curve 9.75R 2 A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 END -TURNOUT 2 0 0 0 0 N 2 10.253860 18.034992 315.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" +TURNOUT 2 0 0 0 0 N 2 10.253860 18.034992 315.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" T 3 10.253860 18.034992 225.000000 T 1 17.157895 20.894737 90.000000 D 0.000000 0.000000 @@ -20,7 +20,7 @@ TURNOUT 2 0 0 0 0 N 2 10.253860 18.034992 315.000000 "Kato Unitrack Curve 9.75R A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 END -TURNOUT 3 0 0 0 0 N 2 7.394115 11.130957 270.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" +TURNOUT 3 0 0 0 0 N 2 7.394115 11.130957 270.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" T 4 7.394115 11.130957 180.000000 T 2 10.253860 18.034992 45.000000 D 0.000000 0.000000 @@ -29,7 +29,7 @@ TURNOUT 3 0 0 0 0 N 2 7.394115 11.130957 270.000000 "Kato Unitrack Curve 9.75R A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 END -TURNOUT 4 0 0 0 0 N 2 10.253860 4.226922 225.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" +TURNOUT 4 0 0 0 0 N 2 10.253860 4.226922 225.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" T 5 10.253860 4.226922 135.000000 T 3 7.394115 11.130957 0.000000 D 0.000000 0.000000 @@ -38,7 +38,7 @@ TURNOUT 4 0 0 0 0 N 2 10.253860 4.226922 225.000000 "Kato Unitrack Curve 9.75R A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 END -TURNOUT 5 0 0 0 0 N 2 17.157895 1.367177 180.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" +TURNOUT 5 0 0 0 0 N 2 17.157895 1.367177 180.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" T 6 17.157895 1.367177 90.000000 T 4 10.253860 4.226922 315.000000 D 0.000000 0.000000 @@ -47,7 +47,7 @@ TURNOUT 5 0 0 0 0 N 2 17.157895 1.367177 180.000000 "Kato Unitrack Curve 9.75R A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 END -TURNOUT 6 0 0 0 0 N 2 24.061930 4.226922 135.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" +TURNOUT 6 0 0 0 0 N 2 24.061930 4.226922 135.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" T 7 24.061930 4.226922 45.000000 T 5 17.157895 1.367177 270.000000 D 0.000000 0.000000 @@ -131,7 +131,7 @@ TURNOUT 14 0 0 0 0 N 2 37.310072 3.423450 60.000000 "Kato Unitrack S60L {incl w L 11579568 0.053333 0.000000 0.473340 2.362204 0.473340 L 11579568 0.053333 0.000000 -0.473340 2.362204 -0.473340 END -TURNOUT 15 0 0 0 0 N 2 44.895807 1.245404 180.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" +TURNOUT 15 0 0 0 0 N 2 44.895807 1.245404 180.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" T 16 44.895807 1.245404 90.000000 T 13 37.991772 4.105149 315.000000 D 0.000000 0.000000 @@ -140,7 +140,7 @@ TURNOUT 15 0 0 0 0 N 2 44.895807 1.245404 180.000000 "Kato Unitrack Curve 9.75R A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 END -TURNOUT 16 0 0 0 0 N 2 51.799842 4.105149 135.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" +TURNOUT 16 0 0 0 0 N 2 51.799842 4.105149 135.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" T 17 51.799842 4.105149 45.000000 T 15 44.895807 1.245404 270.000000 D 0.000000 0.000000 @@ -149,7 +149,7 @@ TURNOUT 16 0 0 0 0 N 2 51.799842 4.105149 135.000000 "Kato Unitrack Curve 9.75R A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 END -TURNOUT 17 0 0 0 0 N 2 54.659587 11.009184 90.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" +TURNOUT 17 0 0 0 0 N 2 54.659587 11.009184 90.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" T 18 54.659587 11.009184 0.000000 T 16 51.799842 4.105149 225.000000 D 0.000000 0.000000 @@ -158,7 +158,7 @@ TURNOUT 17 0 0 0 0 N 2 54.659587 11.009184 90.000000 "Kato Unitrack Curve 9.75R A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 END -TURNOUT 18 0 0 0 0 N 2 51.799842 17.913219 45.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" +TURNOUT 18 0 0 0 0 N 2 51.799842 17.913219 45.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" T 19 51.799842 17.913219 315.000000 T 17 54.659587 11.009184 180.000000 D 0.000000 0.000000 @@ -167,7 +167,7 @@ TURNOUT 18 0 0 0 0 N 2 51.799842 17.913219 45.000000 "Kato Unitrack Curve 9.75R A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 END -TURNOUT 19 0 0 0 0 N 2 44.895807 20.772964 0.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" +TURNOUT 19 0 0 0 0 N 2 44.895807 20.772964 0.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" T 20 44.895807 20.772964 270.000000 T 18 51.799842 17.913219 135.000000 D 0.000000 0.000000 @@ -176,7 +176,7 @@ TURNOUT 19 0 0 0 0 N 2 44.895807 20.772964 0.000000 "Kato Unitrack Curve 9.75R A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 END -TURNOUT 20 0 0 0 0 N 2 37.991772 17.913220 315.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" +TURNOUT 20 0 0 0 0 N 2 37.991772 17.913220 315.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" T 21 37.991772 17.913220 225.000000 T 19 44.895807 20.772964 90.000000 D 0.000000 0.000000 diff --git a/app/lib/demos/dmctlpnl.xtr b/app/lib/demos/dmctlpnl.xtr index c045345..f06f1a3 100644 --- a/app/lib/demos/dmctlpnl.xtr +++ b/app/lib/demos/dmctlpnl.xtr @@ -117,7 +117,7 @@ RESET MESSAGE _________________________________________ -For our control panel we will use ¼" lines. +For our control panel we will use ¼" lines. Also, we will use a 1/8" grid to lay out our controls. First, we will set up the Snap Grid for 1" grid lines and 8 divisions. @@ -147,19 +147,16 @@ PARAMETER misc cmdDelete MESSAGE First step: draw the lines representing the tracks. -We specify the line width in pixels when at 1:1 zoom. +We specify the line width in inches. -To create a 1/4" line, divide the dots-per-inch (DPI) of your display by 4. - -For MS-Windows the DPI is usually 98, so choose: 98/4 = 24 (approximately). -For Linux, the DPI is usually 72, so choose: 72/4 = 18. +To create a 1/4" line, enter 0.250 in the "Straight Line Width" box at the bottom of the window. END STEP COMMAND DrawLine PARAMETER draw linewidth 0 PARAMETER draw linecolor 0 PARAMETER GROUP draw -PARAMETER draw linewidth 24 +PARAMETER draw linewidth 0.250 STEP KEYSTATE 2 MOUSE 2 1.000 6.000 @@ -495,7 +492,7 @@ MOUSE 4 8.000 3.000 MESSAGE _________________________________________ -Notice how the Snap Grid keeps the main line and siding track parallel and the connecting tracks and spur at a 45° angle. +Notice how the Snap Grid keeps the main line and siding track parallel and the connecting tracks and spur at a 45° angle. END STEP RESET @@ -562,7 +559,7 @@ Now we'll add push buttons to control the turnouts. END STEP ORIG 1 0.0000000 4.000000 -HOTBARSELECT Switch ¼" Push Button +HOTBARSELECT Switch ¼" Push Button MOUSE 2 2.750 6.000 MOUSE 4 2.750 6.000 BIGPAUSE @@ -607,7 +604,7 @@ MOUSE 2 2.953 7.344 MOUSE 4 1.625 5.578 MESSAGE -We rotate the signals by Shift-Right-Click and select 90° CW on the popup menu. We can not show the popup menu in demo mode, but will simulate the effect. +We rotate the signals by Shift-Right-Click and select 90° CW on the popup menu. We can not show the popup menu in demo mode, but will simulate the effect. END BIGPAUSE MENU 1.625 5.578 "Structure Rotate" "90 CW" @@ -712,20 +709,20 @@ MESSAGE Now for some touch-ups. Notice when the line meet at an angle there is a gap. -We will fill this gap with the ¼" dot. +We will fill this gap with the ¼" dot. Note: Win95/Win98/WinME does not support drawing lines with flat end-caps, but only with round end-caps. Users on those platforms will not see the gap. END STEP ORIG 1 2.000 4.000 -HOTBARSELECT Symbols ¼" DOT +HOTBARSELECT Symbols ¼" DOT MOUSE 2 3.000 5.000 MOUSE 4 3.000 5.000 BIGPAUSE MOUSE 8200 3.000 5.000 ORIG 1 8.000 4.000 -HOTBARSELECT Symbols ¼" DOT +HOTBARSELECT Symbols ¼" DOT MOUSE 2 9.000 5.000 MOUSE 4 9.000 5.000 BIGPAUSE @@ -736,7 +733,7 @@ _________________________________________ Add an arrow head to indicate the tracks that connect to the rest of the layout. -The second arrow will be flipped 180°" +The second arrow will be flipped 180°" END STEP HOTBARSELECT Symbols Arrow @@ -755,7 +752,7 @@ MOUSE 6920 0.500 6.000 #MESSAGE #_________________________________________ # -#Rotate the arrow head by 180° and move into position. +#Rotate the arrow head by 180° and move into position. #END #MOUSE 2 0.500 6.000 #MOUSE 4 0.500 6.000 @@ -831,7 +828,7 @@ PARAMETER text fontsize -1 24 PARAMETER GROUP text CLEAR MESSAGE -We want to print our control panel onto a 8½x11 page, but the control panel is a bit too wide. +We want to print our control panel onto a 8½x11 page, but the control panel is a bit too wide. Lets tighten it up a bit. @@ -989,7 +986,7 @@ STRUCTURE 28 0 0 0 0 DEMO 2 5.437000 4.750000 0 0.000000 "LED T1 Red LED " L3 0 0.000000 0.059000 0.000000 0 -0.059000 0.000000 0 L3 0 0.000000 0.000000 0.059000 0 0.000000 -0.059000 0 END -STRUCTURE 29 0 0 0 0 DEMO 2 2.750000 6.000000 0 0.000000 "Switch ¼"" Push Button " +STRUCTURE 29 0 0 0 0 DEMO 2 2.750000 6.000000 0 0.000000 "Switch ¼"" Push Button " D 0.000000 0.000000 G3 16448250 0.000000 0.125000 0.000000 0.000000 0 A3 0 0.013889 0.125000 0.000000 0.000000 0 0.000000 360.000000 @@ -997,7 +994,7 @@ STRUCTURE 29 0 0 0 0 DEMO 2 2.750000 6.000000 0 0.000000 "Switch L3 0 0.000000 0.125000 0.000000 0 -0.125000 0.000000 0 L3 0 0.000000 0.000000 0.125000 0 0.000000 -0.125000 0 END -STRUCTURE 30 0 0 0 0 DEMO 2 2.500000 5.500000 0 0.000000 "Switch ¼"" Push Button " +STRUCTURE 30 0 0 0 0 DEMO 2 2.500000 5.500000 0 0.000000 "Switch ¼"" Push Button " D 0.000000 0.000000 G3 16448250 0.000000 0.125000 0.000000 0.000000 0 A3 0 0.013889 0.125000 0.000000 0.000000 0 0.000000 360.000000 @@ -1005,7 +1002,7 @@ STRUCTURE 30 0 0 0 0 DEMO 2 2.500000 5.500000 0 0.000000 "Switch L3 0 0.000000 0.125000 0.000000 0 -0.125000 0.000000 0 L3 0 0.000000 0.000000 0.125000 0 0.000000 -0.125000 0 END -STRUCTURE 31 0 0 0 0 DEMO 2 8.000000 6.000000 0 0.000000 "Switch ¼"" Push Button " +STRUCTURE 31 0 0 0 0 DEMO 2 8.000000 6.000000 0 0.000000 "Switch ¼"" Push Button " D 0.000000 0.000000 G3 16448250 0.000000 0.125000 0.000000 0.000000 0 A3 0 0.013889 0.125000 0.000000 0.000000 0 0.000000 360.000000 @@ -1013,7 +1010,7 @@ STRUCTURE 31 0 0 0 0 DEMO 2 8.000000 6.000000 0 0.000000 "Switch L3 0 0.000000 0.125000 0.000000 0 -0.125000 0.000000 0 L3 0 0.000000 0.000000 0.125000 0 0.000000 -0.125000 0 END -STRUCTURE 32 0 0 0 0 DEMO 2 8.250000 5.500000 0 0.000000 "Switch ¼"" Push Button " +STRUCTURE 32 0 0 0 0 DEMO 2 8.250000 5.500000 0 0.000000 "Switch ¼"" Push Button " D 0.000000 0.000000 G3 16448250 0.000000 0.125000 0.000000 0.000000 0 A3 0 0.013889 0.125000 0.000000 0.000000 0 0.000000 360.000000 @@ -1021,7 +1018,7 @@ STRUCTURE 32 0 0 0 0 DEMO 2 8.250000 5.500000 0 0.000000 "Switch L3 0 0.000000 0.125000 0.000000 0 -0.125000 0.000000 0 L3 0 0.000000 0.000000 0.125000 0 0.000000 -0.125000 0 END -STRUCTURE 33 0 0 0 0 DEMO 2 5.937000 5.000000 0 0.000000 "Switch ¼"" Push Button " +STRUCTURE 33 0 0 0 0 DEMO 2 5.937000 5.000000 0 0.000000 "Switch ¼"" Push Button " D 0.000000 0.000000 G3 16448250 0.000000 0.125000 0.000000 0.000000 0 A3 0 0.013889 0.125000 0.000000 0.000000 0 0.000000 360.000000 @@ -1029,7 +1026,7 @@ STRUCTURE 33 0 0 0 0 DEMO 2 5.937000 5.000000 0 0.000000 "Switch L3 0 0.000000 0.125000 0.000000 0 -0.125000 0.000000 0 L3 0 0.000000 0.000000 0.125000 0 0.000000 -0.125000 0 END -STRUCTURE 34 0 0 0 0 DEMO 2 5.687000 4.500000 0 0.000000 "Switch ¼"" Push Button " +STRUCTURE 34 0 0 0 0 DEMO 2 5.687000 4.500000 0 0.000000 "Switch ¼"" Push Button " D 0.000000 0.000000 G3 16448250 0.000000 0.125000 0.000000 0.000000 0 A3 0 0.013889 0.125000 0.000000 0.000000 0 0.000000 360.000000 @@ -1107,11 +1104,11 @@ STRUCTURE 40 0 0 0 0 DEMO 2 7.500000 4.625000 0 90.000000 "Signals Sgl Signal 1 L3 0 0.027778 0.000000 -0.109375 0 0.000000 -0.600000 0 L3 0 0.027778 -0.100000 -0.600000 0 0.100000 -0.600000 0 END -STRUCTURE 41 0 0 0 0 DEMO 2 3.000000 5.000000 0 0.000000 "Symbols ¼"" DOT " +STRUCTURE 41 0 0 0 0 DEMO 2 3.000000 5.000000 0 0.000000 "Symbols ¼"" DOT " D 0.000000 0.000000 G3 0 0.000000 0.125000 0.000000 0.000000 0 END -STRUCTURE 42 0 0 0 0 DEMO 2 7.750000 5.000000 0 0.000000 "Symbols ¼"" DOT " +STRUCTURE 42 0 0 0 0 DEMO 2 7.750000 5.000000 0 0.000000 "Symbols ¼"" DOT " D 0.000000 0.000000 G3 0 0.000000 0.125000 0.000000 0.000000 0 END diff --git a/app/lib/demos/dmdelund.xtr b/app/lib/demos/dmdelund.xtr index 5215c06..de76430 100644 --- a/app/lib/demos/dmdelund.xtr +++ b/app/lib/demos/dmdelund.xtr @@ -84,7 +84,7 @@ STEP REGRESSION START 10 - delete CURVE 2 0 0 0 0 DEMO 2 21.833333 25.924310 0 24.125000 0 0.000000 0.000000 E4 40.128499 10.198454 40.681260 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 - T4 3 23.852360 1.883945 265.199288 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 + E4 23.852360 1.883945 265.199288 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 END REGRESSION END CLEAR diff --git a/app/lib/demos/dmexcept.xtr b/app/lib/demos/dmexcept.xtr index ae1c8aa..ff98734 100644 --- a/app/lib/demos/dmexcept.xtr +++ b/app/lib/demos/dmexcept.xtr @@ -31,7 +31,7 @@ RESET MESSAGE XTrackCAD can help find tracks that are curved too sharply or are too steep. These tracks are Exception tracks and are drawn in the Exception track color. -In this example we have a curved track with radius of 9" and a straight track with a grade of 3.8%. +In this example we have a curved track with radius of 9 inches and a straight track with a grade of 3.8 percent. END STEP @@ -39,7 +39,7 @@ PARAMETER misc cmdLayout MESSAGE _________________________________________ -The Layout dialog shows the Minimum Track Radius is 9" and the Maximum Track Grade is 5%. +The Layout dialog shows the Minimum Track Radius is 9 inches and the Maximum Track Grade is 5 percent. END STEP PARAMETER layout mintrackradius 9.000000 diff --git a/app/lib/demos/dmgroup.xtr b/app/lib/demos/dmgroup.xtr index 2c7741b..7c6c7cd 100644 --- a/app/lib/demos/dmgroup.xtr +++ b/app/lib/demos/dmgroup.xtr @@ -28,7 +28,7 @@ COMMAND DrawLine PARAMETER draw linewidth 0 PARAMETER draw linecolor 0 PARAMETER GROUP draw -PARAMETER draw linewidth 4 +PARAMETER draw linewidth 0.055555 MOUSE 1 2.500 3.000 COMMAND DrawLine MOUSE 2 2.500 3.000 @@ -256,7 +256,7 @@ MOUSE 4 11.156 4.281 BIGPAUSE COMMAND TurnoutHotBar #PARAMETER turnout list 0 -PARAMETER GROUP turnout +PARAMETER GROUP newFixedTrack HOTBARSELECT Peco-55 Modified Medium Right SL-E395F MOUSE 1 4.750 1.906 MOUSE 2 4.750 1.906 @@ -464,7 +464,7 @@ PARAMETER describe P1 2 MESSAGE _________________________________________ -We want the curve to have a radius of 20" and an angle of 17.5�. +We want the curve to have a radius of 20" and an angle of 17.5°. First change the Radius... END STEP diff --git a/app/lib/demos/dmhelix.xtr b/app/lib/demos/dmhelix.xtr index f02c1d6..88707da 100644 --- a/app/lib/demos/dmhelix.xtr +++ b/app/lib/demos/dmhelix.xtr @@ -28,7 +28,7 @@ PARAMETER helix vertSep 0.0 MESSAGE _________________________________________ -We will be creating a helix with a Elevation Difference of 12", Grade of 1.5% and limit the Vertical Separation to at least 2". +We will be creating a helix with a Elevation Difference of 12 inches, Grade of 1.5 percent and limit the Vertical Separation to at least 2 inches. END STEP MESSAGE @@ -52,7 +52,7 @@ STEP MESSAGE _________________________________________ -Next set the Grade to 1.5% +Next set the Grade to 1.5 percent Notice how this causes the Radius to change. END STEP @@ -85,7 +85,7 @@ BIGPAUSE MESSAGE _________________________________________ -Lastly change the Vertical Separation to 2.5". The number of Turns will change to 4 and the grade increase to almost 3%. +Lastly change the Vertical Separation to 2.5 inches. The number of Turns will change to 4 and the grade increase to almost 3 percent. Note: the Vertical Separation will be increased. This value is the Elevation Difference (12.0) divided by the total number of turns. The total number of turns is 4.25: 4 whole Turns plus a quarter turn for the Angular Separation. END @@ -176,7 +176,7 @@ REDRAW MESSAGE _________________________________________ -We have set the elevations to 1" and 13" to produce a grade of 3.0% with 2.8" between coils. +We have set the elevations to 1 inch and 13 inches to produce a grade of 3.0 percent with 2.8 inches between coils. You can use the command to change the number of Turns or the Elevations at either end of the Helix. This will affect the Grade and Vertical Separation. END diff --git a/app/lib/demos/dmlines.xtr b/app/lib/demos/dmlines.xtr index 082a324..32555fb 100644 --- a/app/lib/demos/dmlines.xtr +++ b/app/lib/demos/dmlines.xtr @@ -94,7 +94,7 @@ _________________________________________ You also draw in various colors and line widths. END PARAMETER draw linecolor 255 -PARAMETER draw linewidth 6 +PARAMETER draw linewidth 0.055555 STEP KEYSTATE A MOUSE 2 0.747 4.693 diff --git a/app/lib/demos/dmlines2.xtr b/app/lib/demos/dmlines2.xtr index 580dafe..f90ba88 100644 --- a/app/lib/demos/dmlines2.xtr +++ b/app/lib/demos/dmlines2.xtr @@ -91,7 +91,7 @@ RESET MESSAGE We also draw Polylines and filled shapes. END -PARAMETER draw linewidth 2 +PARAMETER draw linewidth 0.027777 PARAMETER draw linecolor 11591910 COMMAND DrawPolyline STEP @@ -102,7 +102,7 @@ A Polyline is drawn by dragging to place each of the point in the Polyline. END STEP PARAMETER draw linecolor 0 -PARAMETER draw linewidth 3 +PARAMETER draw linewidth 0.041667 PARAMETER draw linecolor 32768 MOUSE 2 0.64 6.07 MOUSE 4 0.64 6.07 diff --git a/app/lib/demos/dmnotes.xtr b/app/lib/demos/dmnotes.xtr index 6125354..aa1b4cd 100644 --- a/app/lib/demos/dmnotes.xtr +++ b/app/lib/demos/dmnotes.xtr @@ -4,7 +4,7 @@ ORIG 8.000 0.000 0.000 REDRAW RESET MESSAGE -The command lets you attach notes to various spots on the layout. +The command lets you attach notes to various spots on the layout. END STEP COMMAND TextNote @@ -14,22 +14,63 @@ MOUSE 4 9.917 7.167 MESSAGE _________________________________________ -When you place a note, the Note editor window is displayed which lets you enter the note. +When you place a note, the Text Note editor window is displayed which lets you enter the note. END STEP -RESET -MOUSE 6920 9.917 7.167 +#RESET +#MOUSE 6920 9.917 7.167 +#MOUSE 3336 9.917 7.167 +PARAMETER textNote ok MESSAGE _________________________________________ -If you click on a note in mode the Note editor displays the note. +If you click on a note in mode the Text Note editor displays the note allowing you to modify the note.. END STEP COMMAND Describe MOUSE 2 9.917 7.167 MOUSE 4 9.917 7.167 STEP -MOUSE 6920 9.917 7.167 +#MOUSE 6920 9.917 7.167 +PARAMETER textNote ok + +MESSAGE +_________________________________________ + +You can also create a reference to a file or web link. + +Choose the type of link by clicking on the down arrow beside the Note commmand. +END +STEP + +COMMAND FileNote +MOUSE 2 9.917 7.167 +MOUSE 3 7.917 7.167 +MOUSE 4 7.917 7.167 +MESSAGE +_________________________________________ + +This is a File Note. You can specify the Title of the File and its location +END +STEP +PARAMETER fileNote cancel +MOUSE 6920 7.917 7.167 +RESET + +COMMAND LinkNote +MOUSE 2 7.917 7.167 +MOUSE 3 5.917 7.167 +MOUSE 4 5.917 7.167 +MESSAGE +_________________________________________ + +This is a Web Link Note. You can specify the Title of the Link and its URL +END +STEP +PARAMETER linkNote cancel +MOUSE 6920 5.917 7.167 +RESET + REGRESSION START 10 - notes NOTE 1 0 0 0 9.917000 7.167000 0 32 Replace this text with your note diff --git a/app/lib/demos/dmrescal.xtr b/app/lib/demos/dmrescal.xtr index 015a735..c4ac3a6 100644 --- a/app/lib/demos/dmrescal.xtr +++ b/app/lib/demos/dmrescal.xtr @@ -119,6 +119,8 @@ PARAMETER misc cmdRescale MESSAGE The command will change the size of the selected objects. +Note: due to technical reasons, the To Scale drop down list is blank. For this demo it should show 'DEMO'. + First we will try rescaling by ratio. END STEP @@ -126,7 +128,7 @@ PARAMETER rescale toggle 1 MESSAGE _________________________________________ -We are going to make everything 150% bigger. +We are going to make everything 150 percent bigger. END STEP @@ -139,7 +141,6 @@ END STEP PARAMETER misc cmdUndo RESET -PARAMETER misc cmdRescale MESSAGE _________________________________________ @@ -148,9 +149,10 @@ Let's try that again. Now we are going to convert from one scale to another. END STEP +PARAMETER misc cmdSelectAll +PARAMETER misc cmdRescale PARAMETER rescale toggle 0 PARAMETER rescale toS 5 HO -PARAMETER misc cmdSelectAll MESSAGE _________________________________________ diff --git a/app/lib/demos/dmrotate.xtr b/app/lib/demos/dmrotate.xtr index ed04a77..895c5b6 100644 --- a/app/lib/demos/dmrotate.xtr +++ b/app/lib/demos/dmrotate.xtr @@ -135,7 +135,7 @@ MOUSE 4 1.000 10.000 MESSAGE _________________________________________ -The command will restrict the rotation to increments of 15° if you hold down the and keys. +The command will restrict the rotation to increments of 15° if you hold down the and keys. END STEP PARAMETER misc cmdUndo @@ -327,7 +327,7 @@ END #MESSAGE #_________________________________________ # -#Shift-Right-Click will display a popup-menu that you can use to rotate by fixed amount (15°, 30°, 45°, 90° or 180°). +#Shift-Right-Click will display a popup-menu that you can use to rotate by fixed amount (15°, 30°, 45°, 90° or 180°). # #We can not currently show this command. #END @@ -362,7 +362,7 @@ END #MESSAGE #_________________________________________ # -#If we drag the mouse across the track, we can flip the structure by 180°. This is similar to how we place turnouts. +#If we drag the mouse across the track, we can flip the structure by 180°. This is similar to how we place turnouts. #END #STEP #MOUSE 3 6.750 2.750 diff --git a/app/lib/demos/dmselect.xtr b/app/lib/demos/dmselect.xtr index 06bed0c..cff9af7 100644 --- a/app/lib/demos/dmselect.xtr +++ b/app/lib/demos/dmselect.xtr @@ -177,12 +177,36 @@ Selected tracks can be moved or rotated during the