/
ShowPanel.shtml
88 lines (77 loc) · 3.47 KB
/
ShowPanel.shtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta name="generator" content=
"HTML Tidy for Mac OS X (vers 31 October 2006 - Apple Inc. build 15.17), see www.w3.org">
<!-- Copyright Bob Jacobsen 2008 -->
<title>JMRI: Displaying JMRI Panel Files</title>
<!-- Style -->
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
<link rel="stylesheet" type="text/css" href="/css/default.css"
media="screen">
<link rel="stylesheet" type="text/css" href="/css/print.css"
media="print">
<link rel="icon" href="/images/jmri.ico" type="image/png">
<link rel="home" title="Home" href="/">
<!-- /Style -->
</head>
<body>
<!--#include virtual="/Header.shtml" -->
<div id="mBody">
<!--#include virtual="Sidebar.shtml" -->
<div id="mainContent">
<h1>JMRI: Displaying Panel File Contents</h1>
<p>To load a Panel previously saved to disk in JMRI
and have the program display it, use the "Open Panel..." item from the Panels
menu.<br>
In contrast, this pages describes how to show the contents
of the file itself, meaning the data used to draw
the Panel, either on screen or on paper.</p>
<p>JMRI panel and configuration information is stored in XML
files. These are text files that people can directly read,
but the format and structure information take a lot of
space.</p>
<p>JMRI provides a tool, called an "XSLT transform", to
convert the JMRI panel file into a more readable web page.
You open your panel file with a web browser, and can then
read it, print it, copy and paste into a file of another
form, etc.</p>
<img src="images/PanelFileView.png"
alt="screen shot of xml preview" align="right" width="462"
height="164" hspace="0" vspace="0">
<p>A large example of this is available as a <a href=
"https://jmri.org/community/examples/SPShastaConfigFile.pdf">PDF
file</a>. This is the configuration information, including
routes, Logix, etc, for the <a href=
"https://jmri.org/community/examples/SPShasta.shtml">SP Shasta
Route</a> layout.</p>
<p>To view your own panel file, the easiest approach is to
view it via JMRI's web server which knows how to find all
the needed formating files automatically. The steps are: </p>
<ol>
<li>Start the JMRI web server from the Debug menu
<li>In your favorite browser, go to
<a href="http://localhost:12080">http://localhost:12080</a>
(the 12080 is the default setting; if you've changed
that value in the JMRI preferences, use the correct one here)
<li>Finally, navigate to your panel file. If it's in the
user files part of the preferences (which is strongly
recommended) start here:
<a href="http://localhost:12080/prefs">http://localhost:12080/prefs</a>
then either click on your file, or navigate into the proper directory
to find it.
<p>
If you have put your file in the program directory (not recommended),
start here:
<a href="http://localhost:12080/dist">http://localhost:12080/dist</a>
instead.
</ol>
<p>For technical information on this, see the <a href=
"../../doc/Technical/XmlUsage.shtml">JMRI XML page</a>.</p>
<!--#include virtual="/Footer.shtml" -->
</div><!-- closes #mainContent-->
</div><!-- closes #mBody-->
</body>
</html>