mirror of https://github.com/rusefi/RomRaider.git
Added ECU definition editor
git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@71 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
parent
d92d07651e
commit
2a89737d9a
|
@ -17,6 +17,7 @@ import javax.swing.JMenuItem;
|
|||
import javax.swing.JOptionPane;
|
||||
import javax.swing.JSeparator;
|
||||
import enginuity.ECUEditor;
|
||||
import enginuity.definitions.DefinitionEditor;
|
||||
import javax.swing.ButtonGroup;
|
||||
import javax.swing.JRadioButtonMenuItem;
|
||||
import org.w3c.dom.Document;
|
||||
|
@ -33,6 +34,7 @@ public class ECUEditorMenuBar extends JMenuBar implements ActionListener {
|
|||
private JMenuItem exit = new JMenuItem("Exit");
|
||||
private JMenu editMenu = new JMenu("Edit");
|
||||
private JMenuItem settings = new JMenuItem("Settings");
|
||||
private JMenuItem editDefinition = new JMenuItem("Edit ECU Definitions");
|
||||
private JMenu viewMenu = new JMenu("View");
|
||||
private JMenuItem romProperties = new JMenuItem("ECU Image Properties");
|
||||
private ButtonGroup levelGroup = new ButtonGroup();
|
||||
|
@ -77,9 +79,12 @@ public class ECUEditorMenuBar extends JMenuBar implements ActionListener {
|
|||
add(editMenu);
|
||||
editMenu.setMnemonic('E');
|
||||
settings.setMnemonic('S');
|
||||
editDefinition.setMnemonic('E');
|
||||
editMenu.add(new JSeparator());
|
||||
editMenu.add(settings);
|
||||
editMenu.add(editDefinition);
|
||||
settings.addActionListener(this);
|
||||
editDefinition.addActionListener(this);
|
||||
|
||||
// view menu items
|
||||
add(viewMenu);
|
||||
|
@ -201,6 +206,9 @@ public class ECUEditorMenuBar extends JMenuBar implements ActionListener {
|
|||
} else if (e.getSource() == level5) {
|
||||
parent.setUserLevel(5);
|
||||
|
||||
} else if (e.getSource() == editDefinition) {
|
||||
new DefinitionEditor(parent);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue