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