001package jmri.jmrit.operations.setup; 002 003import java.awt.Dimension; 004 005import javax.swing.JMenu; 006import javax.swing.JMenuBar; 007 008import jmri.jmrit.operations.OperationsFrame; 009 010/** 011 * Frame for user edit of operation parameters 012 * 013 * @author Dan Boudreau Copyright (C) 2008, 2010, 2011, 2012 014 */ 015public class OperationsSettingsFrame extends OperationsFrame { 016 017 public OperationsSettingsFrame() { 018 super(Bundle.getMessage("TitleOperationsSetup"), new OperationsSettingsPanel()); 019 } 020 021 @Override 022 public void initComponents() { 023 super.initComponents(); 024 // build menu 025 JMenuBar menuBar = new JMenuBar(); 026 JMenu toolMenu = new JMenu(Bundle.getMessage("MenuTools")); 027 toolMenu.add(new OptionAction()); 028 toolMenu.add(new PrintOptionAction()); 029 toolMenu.add(new BuildReportOptionAction()); 030 toolMenu.addSeparator(); 031 toolMenu.add(new BackupFilesAction()); 032 toolMenu.add(new RestoreFilesAction()); 033 toolMenu.addSeparator(); 034 toolMenu.add(new LoadDemoAction()); 035 toolMenu.add(new ResetAction()); 036 toolMenu.add(new ManageBackupsAction()); 037 038 menuBar.add(toolMenu); 039 menuBar.add(new jmri.jmrit.operations.OperationsMenu()); 040 setJMenuBar(menuBar); 041 addHelpMenu("package.jmri.jmrit.operations.Operations_Settings", true); // NOI18N 042 043 initMinimumSize(new Dimension(Control.panelWidth700, Control.panelHeight500)); 044 } 045 046// private final static Logger log = LoggerFactory.getLogger(OperationsSetupFrame.class); 047}