Changeset 26562 in osm for applications/editors/josm/plugins/smed/plugs
- Timestamp:
- 2011-08-23T22:41:50+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/oseam/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelChr.java
r26561 r26562 28 28 public JToggleButton veryQuickButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/VeryQuickButton.png"))); 29 29 public JToggleButton ultraQuickButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/UltraQuickButton.png"))); 30 public JToggleButton interruptedQuickButton = new JToggleButton(new ImageIcon(getClass().getResource( 31 "/images/InterruptedQuickButton.png"))); 32 public JToggleButton interruptedVeryQuickButton = new JToggleButton(new ImageIcon(getClass().getResource( 33 "/images/InterruptedVeryQuickButton.png"))); 34 public JToggleButton interruptedUltraQuickButton = new JToggleButton(new ImageIcon(getClass().getResource( 35 "/images/InterruptedUltraQuickButton.png"))); 30 public JToggleButton interruptedQuickButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/InterruptedQuickButton.png"))); 31 public JToggleButton interruptedVeryQuickButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/InterruptedVeryQuickButton.png"))); 32 public JToggleButton interruptedUltraQuickButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/InterruptedUltraQuickButton.png"))); 36 33 public JToggleButton isophasedButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/IsophasedButton.png"))); 37 34 public JToggleButton occultingButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/OccultingButton.png"))); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelCol.java
r26561 r26562 28 28 public JRadioButton violetButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/VioletButton.png"))); 29 29 public JRadioButton blackButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/BlackButton.png"))); 30 p rivateEnumMap<Col, JRadioButton> colours = new EnumMap<Col, JRadioButton>(Col.class);30 public EnumMap<Col, JRadioButton> colours = new EnumMap<Col, JRadioButton>(Col.class); 31 31 private ActionListener alColour = new ActionListener() { 32 32 public void actionPerformed(java.awt.event.ActionEvent e) { -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelMain.java
r26561 r26562 52 52 dlg = dia; 53 53 panelChan = new PanelChan(dlg); 54 panelChan.setBounds(new Rectangle(65, 0, 1 65, 160));54 panelChan.setBounds(new Rectangle(65, 0, 180, 160)); 55 55 panelChan.setVisible(false); 56 56 panelHaz = new PanelHaz(dlg); 57 panelHaz.setBounds(new Rectangle(65, 0, 1 65, 160));57 panelHaz.setBounds(new Rectangle(65, 0, 180, 160)); 58 58 panelHaz.setVisible(false); 59 59 panelSpec = new PanelSpec(dlg); 60 panelSpec.setBounds(new Rectangle(65, 0, 1 65, 160));60 panelSpec.setBounds(new Rectangle(65, 0, 180, 160)); 61 61 panelSpec.setVisible(false); 62 62 panelLights = new PanelLights(dlg); 63 panelLights.setBounds(new Rectangle(65, 0, 1 65, 160));63 panelLights.setBounds(new Rectangle(65, 0, 180, 160)); 64 64 panelLights.setVisible(false); 65 65 panelMore = new PanelMore(dlg); … … 80 80 81 81 shapeIcon = new JLabel(); 82 shapeIcon.setBounds(new Rectangle(2 50, 0, 150, 185));82 shapeIcon.setBounds(new Rectangle(235, 0, 150, 185)); 83 83 this.add(shapeIcon, null); 84 84 lightIcon = new JLabel(); 85 lightIcon.setBounds(new Rectangle(2 50, 0, 150, 185));85 lightIcon.setBounds(new Rectangle(235, 0, 150, 185)); 86 86 this.add(lightIcon, null); 87 87 topIcon = new JLabel(); 88 topIcon.setBounds(new Rectangle(2 50, 0, 150, 185));88 topIcon.setBounds(new Rectangle(235, 0, 150, 185)); 89 89 this.add(topIcon, null); 90 90 radarIcon = new JLabel(); 91 radarIcon.setBounds(new Rectangle(2 50, 0, 150, 185));91 radarIcon.setBounds(new Rectangle(235, 0, 150, 185)); 92 92 this.add(radarIcon, null); 93 93 fogIcon = new JLabel(); 94 fogIcon.setBounds(new Rectangle(2 50, 0, 150, 185));94 fogIcon.setBounds(new Rectangle(235, 0, 150, 185)); 95 95 this.add(fogIcon, null); 96 96 … … 138 138 panelSpec.clearSelections(); 139 139 panelSpec.panelCol.yellowButton.doClick(); 140 } else { 141 panelSpec.panelCol.colours.get(dlg.mark.getColour(Ent.BODY, 0)).doClick(); 140 142 } 141 143 if (panelSpec.shapes.containsKey(dlg.mark.getShape())) { … … 258 260 259 261 moreButton = new JButton(); 260 moreButton.setBounds(new Rectangle(35 7, 145,38, 15));262 moreButton.setBounds(new Rectangle(350, 145, 40, 15)); 261 263 moreButton.setMargin(new Insets(0, 0, 0, 0)); 262 264 moreButton.setText("v v v"); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSpec.java
r26561 r26562 3 3 import java.awt.*; 4 4 import java.awt.event.*; 5 5 6 import javax.swing.*; 7 6 8 import java.util.*; 7 9 … … 13 15 14 16 private OSeaMAction dlg; 17 public JLabel categoryLabel; 18 public JComboBox categoryBox; 19 private ActionListener alCategoryBox = new ActionListener() { 20 public void actionPerformed(java.awt.event.ActionEvent e) { 21 } 22 }; 23 15 24 public ButtonGroup shapeButtons = new ButtonGroup(); 16 25 public JRadioButton pillarButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/PillarButton.png"))); … … 55 64 this.add(panelCol, null); 56 65 this.add(getShapeButton(pillarButton, 35, 0, 34, 32, "Pillar", Shp.PILLAR, Obj.BOYSPP), null); 57 this.add(getShapeButton(sparButton, 35, 32, 34, 32, "Spar", Shp.SPAR, Obj.BOYSPP), null);58 this.add(getShapeButton(canButton, 35, 64, 34, 32, "Can", Shp.CAN, Obj.BOYSPP), null);59 this.add(getShapeButton(coneButton, 35, 96, 34, 32, "Cone", Shp.CONE, Obj.BOYSPP), null);60 this.add(getShapeButton(sphereButton, 70, 0, 34, 32, "Sphere", Shp.SPHERE, Obj.BOYSPP), null);66 this.add(getShapeButton(sparButton, 70, 0, 34, 32, "Spar", Shp.SPAR, Obj.BOYSPP), null); 67 this.add(getShapeButton(canButton, 105, 0, 34, 32, "Can", Shp.CAN, Obj.BOYSPP), null); 68 this.add(getShapeButton(coneButton, 140, 0, 34, 32, "Cone", Shp.CONE, Obj.BOYSPP), null); 69 this.add(getShapeButton(sphereButton, 35, 32, 34, 32, "Sphere", Shp.SPHERE, Obj.BOYSPP), null); 61 70 this.add(getShapeButton(barrelButton, 70, 32, 34, 32, "Barrel", Shp.BARREL, Obj.BOYSPP), null); 62 this.add(getShapeButton(superButton, 70, 64, 34, 32, "Super", Shp.SUPER, Obj.BOYSPP), null);63 this.add(getShapeButton(floatButton, 70, 96, 34, 32, "Float", Shp.FLOAT, Obj.LITFLT), null);64 this.add(getShapeButton(beaconButton, 105, 0, 34, 32, "Beacon", Shp.BEACON, Obj.BCNSPP), null);65 this.add(getShapeButton(towerButton, 105, 32, 34, 32, "Tower", Shp.TOWER, Obj.BCNSPP), null);71 this.add(getShapeButton(superButton, 105, 32, 34, 32, "Super", Shp.SUPER, Obj.BOYSPP), null); 72 this.add(getShapeButton(floatButton, 140, 32, 34, 32, "Float", Shp.FLOAT, Obj.LITFLT), null); 73 this.add(getShapeButton(beaconButton, 35, 64, 34, 32, "Beacon", Shp.BEACON, Obj.BCNSPP), null); 74 this.add(getShapeButton(towerButton, 70, 64, 34, 32, "Tower", Shp.TOWER, Obj.BCNSPP), null); 66 75 this.add(getShapeButton(stakeButton, 105, 64, 34, 32, "Stake", Shp.STAKE, Obj.BCNSPP), null); 67 this.add(getShapeButton(cairnButton, 105, 96, 34, 32, "Cairn", Shp.CAIRN, Obj.BCNSPP), null); 76 this.add(getShapeButton(cairnButton, 140, 64, 34, 32, "Cairn", Shp.CAIRN, Obj.BCNSPP), null); 77 78 categoryLabel = new JLabel(Messages.getString("Category"), SwingConstants.CENTER); 79 categoryLabel.setBounds(new Rectangle(35, 100, 140, 20)); 80 this.add(categoryLabel, null); 81 categoryBox = new JComboBox(); 82 categoryBox.setBounds(new Rectangle(35, 120, 140, 20)); 83 this.add(categoryBox, null); 84 categoryBox.addActionListener(alCategoryBox); 85 categoryBox.addItem(Messages.getString("NoneSpecified")); 86 categoryBox.addItem(Messages.getString("General")); 87 categoryBox.addItem(Messages.getString("ChannelSeparation")); 88 categoryBox.addItem(Messages.getString("EntryProhibited")); 89 categoryBox.addItem(Messages.getString("Yachting")); 90 categoryBox.addItem(Messages.getString("Diving")); 91 categoryBox.addItem(Messages.getString("Anchorage")); 92 categoryBox.addItem(Messages.getString("Pipeline")); 93 categoryBox.addItem(Messages.getString("SpeedLimit")); 94 categoryBox.addItem(Messages.getString("FerryCrossing")); 95 categoryBox.addItem(Messages.getString("FoulGround")); 96 categoryBox.addItem(Messages.getString("UnknownPurpose")); 68 97 } 69 98
Note:
See TracChangeset
for help on using the changeset viewer.