001package jmri.jmrix.sprog; 002 003import javax.swing.JMenu; 004 005/** 006 * Create a Systems menu containing the Jmri SPROG-specific tools. 007 * 008 * @author Andrew Crosland Copyright 2006 009 */ 010public class SPROGCSMenu extends JMenu { 011 012 private SprogSystemConnectionMemo _memo = null; 013 014 public SPROGCSMenu(SprogSystemConnectionMemo memo) { 015 super(); 016 _memo = memo; 017 018 setText(memo.getUserName()); 019 020 add(new jmri.jmrix.sprog.sprogslotmon.SprogSlotMonAction(Bundle.getMessage("SprogSlotMonitorTitle"), _memo)); 021 add(new jmri.jmrix.sprog.sprogmon.SprogMonAction(Bundle.getMessage("MonitorXTitle", "SPROG"), _memo)); 022 add(new jmri.jmrix.sprog.packetgen.SprogPacketGenAction(Bundle.getMessage("MenuItemSendCommand"), _memo)); 023 add(new jmri.jmrix.sprog.console.SprogConsoleAction(Bundle.getMessage("SprogConsoleTitle"), _memo)); 024 add(new javax.swing.JSeparator()); 025 add(new jmri.jmrix.sprog.update.SprogVersionAction(Bundle.getMessage("GetSprogFirmwareVersion"), _memo)); 026 // Removed to avoid confusion with newer SPROG II and 3 that have now reached v3 and v4: 027 //add(new jmri.jmrix.sprog.update.Sprogv4UpdateAction(Bundle.getMessage("SprogXFirmwareUpdate", " v3/v4"), _memo)); 028 // Removed as attempting a firmware update in command station mode is not expected to work 029 //add(new jmri.jmrix.sprog.update.SprogIIUpdateAction(Bundle.getMessage("SprogXFirmwareUpdate", " II"), _memo)); 030 } 031 032}