Files
JIMRI/help/en/html/tools/throttle/RostersMediaPane.shtml
T
2026-06-17 14:00:51 +02:00

111 lines
7.3 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<meta name="generator" content="HTML Tidy for HTML5 for Apple macOS version 5.8.0">
<title>Rosters Media Pane</title>
<meta name="keywords" content="JMRI decoderpro dcc nmra throttle throttlepro">
<meta name="Description" content="Throttle documentation for JMRI project">
<meta name="Author" content="Lionel Jeanson">
<meta name="Language" content="EN"><!--#include virtual="/help/en/parts/Style.shtml" -->
</head>
<body>
<!--#include virtual="/help/en/parts/Header.shtml" -->
<div id="mBody">
<!--#include virtual="Sidebar.shtml" -->
<div id="mainContent">
<h2>Setting Roster Media</h2>
<img src="images/DecProRosterMediaPane.png" alt="">
<p>The Roster Media pane is accessible when using DecoderPro from the contextual menu on a roster entry, from the "Labels & Media" button at the bottom right of the DecoderPro main window and from the "Labels and media" entry in the Actions menu.
<br>
</p>
<h3>Image entry</h3>
<p>Dropping an image file in the inner frame will update this entry (it has to be an image file,
hence after searching on the web for an image you like, save it on the dektop, and then drop
the file in the entry, dropping image content directly from browser window may work for some browsers
(the image will be downloaded and a local copy stored)).</p>
<p>The contextual menu (right click) on an image allows to remove the Image entry in current roster entry.</p>
<p>Roster images are stored in JMRI Preferences folder. When the image is
updated or removed from the roster, the image file is not removed from its storage in
JMRI Preferences folder.</p>
<p>The Icon entry is used as an icon for that roster entry.</p>
<p>The Image entry is used as a background for JMRI Throttles <a href=
"ThrottlesPreferencesPane.shtml">when that option is enabled</a>.</p>
<h3>Icon entry</h3>
<p>Dropping an image file in the inner frame will update this entry (it has to be an image file,
hence after searching on the web for an image you like, save it on the dektop, and then drop
the file in the entry, dropping image content directly from browser window may work for some browsers
(the image will be downloaded and a local copy stored)).</p>
<p>The contextual menu (right click) on an image allows to remove the Image entry in current roster entry.</p>
<p>Roster icons are stored in JMRI Preferences folder. When the image is
updated or removed from the roster, the image file is not removed from its storage in
JMRI Preferences folder.</p>
<p>The Icon entry is used in various Roster Combo Boxes in JMRI, and in the <a href=
"ThrottlesListWindow.shtml">Throttles List Window</a>.</p>
<p>It is recommended to use GIF or PNG images with a transparent background and to have the
images turned so that the locomotive head will be to the right. That will allow for easier
transformations of the image in later applications.</p>
<p><span style="font-style: italic;">Note: an easy way to find icons is to search for "train
GIF" or look at resources linked to the Traffic Screensaver in your favorite Internet search engine.</span></p>
<h3>Web reference</h3>
<p>This entry is dedicated towards storing an URL, on the above screenshot it points to the Wikipedia entry for that
roster prototype.<br></p>
<h3>Custom attributes</h3>
<p>This is a list of key value pairs allowing to set some custom setting per roster entry.</p>
<p>It is possible to manualy add custom values here, don't forget to validate the entry (click somewhere else) before saving to roster.</p>
<p>Some known special settings :
<ul>
<li>speedLabels : a json formated array of labels to be displayed on the JMRI throttle speed sliders, for instance the entry could be : <br>
<br>[ { "value" : 40, "label" : "SS" } , { "value" : 80, "label": "NS"} , { "value" : 100, "label": "FS"} ] <br><br>
where "value" is a number of speed increment and "label" a text string. <br><br>Note that label support HTML text formating,
for instance : "&lt;html&gt;&lt;font color=red&gt;SS&lt;/font&gt;&lt;/html&gt;" would display the SS label red
or "&lt;html&gt;&lt;font size=25 color=green&gt;FS&lt;/font&gt;&lt;/html&gt;" FS with color green and size 25</li>
<br>
<li>... many more custom settings from various JMRI tools</li>
</ul>
</p><br>
<h2>Roster Function Labels</h2>
<img src="images/DecProFunctionLabels.png" alt="">
<p>It is also recommended to fill in the Function Labels entries in the Function Labels pane
in DecoderPro. These entries will be used by the
<a href="BasicThrottleWindow.shtml">Function Panel in Throttle Windows</a>, and also by the
<a href="../../../package/jmri/jmrit/withrottle/UserInterface.shtml">throttle apps</a> to
display label text instead of the function numbers, or even on/off icons.</p>
<ul>
<li><b>fn</b> is the function number</li>
<li><b>label</b> is the text for that function entry</li>
<li><b>visible</b> is that function button visible on throttle UI (only applies when a label exists, else see the "Hide undefined Roster function buttons"
on <a href="ThrottlesPreferencesPane.shtml">the global throttle preferences screen</a>)</li>
<li><b>latch</b> checked means this is a latchable (lockable) function, unchecked means momentary (toggle switch vs momentary switch)</li>
<li><b>off</b> is the function off icon</li>
<li><b>on</b> is the function on icon</li>
<li><b>shunt</b> enabled will switch the <a href="BasicThrottleWindow.shtml">JMRI native throttle slider to continuous mode</a> (from -100 to +100 instead of from 0 to 100) when that function is enabled, to be set on the "Slow" function for shunting</li>
</ul>
<p>Image are edited the same way than in the above window, note that the contextual menu on each image entry allows to remove curent image but also to open
a file browser directly in the JMRI icon ressources for function icons, SVG files are supported here and in native JMRI throttle window (allows for nice resizing)
but may not be supported in web throttles.</p>
<p>Functions images are stored in JMRI Preferences folder.
When a new image is dropped if a file exist with the same name and same content, the existing file is used.
When the image is updated or removed from the roster entry, the image file is not removed from its storage in JMRI Preferences folder.</p>
<p>There is an option for JMRI Throttles that will show Throttle Function buttons <a href=
"ThrottlesPreferencesPane.shtml">only when an entry is defined here</a>.
Using the "Export current throttle customization to roster entry" in <a href=
"ThrottleWindowMenus.shtml">Throttle Windows menu</a> will update these entries from the
Function Panel if required. See the Functions Panel documentation in the <a href="BasicThrottleWindow.shtml">Basic
Throttle Window description</a>.</p>
<!--#include virtual="/help/en/parts/Footer.shtml" -->
</div>
<!-- closes #mainContent-->
</div>
<!-- closes #mBody-->
<script src="/js/help.js"></script>
</body>
</html>