Changeset 23047 in osm for applications/editors/josm/plugins/toms/src
- Timestamp:
- 2010-09-07T12:33:09+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/toms/src/toms
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/toms/src/toms/dialogs/SmpDialogAction.java
r23039 r23047 170 170 public JTextField sM01StatusBar = null; 171 171 172 public boolean paintlock = false; 173 172 174 public JMenuItem getSmpItem() { 173 175 return SmpItem; … … 504 506 505 507 lM01Icon = new JLabel(); 506 lM01Icon.setBounds(new Rectangle(210, 30, 150, 200));508 lM01Icon.setBounds(new Rectangle(210, 20, 150, 200)); 507 509 lM01Icon.setIcon(null); 508 510 lM01Icon.setText(""); //$NON-NLS-1$ 509 511 510 512 lM02Icon = new JLabel(); 511 lM02Icon.setBounds(new Rectangle(210, 30, 150, 200));513 lM02Icon.setBounds(new Rectangle(210, 20, 150, 200)); 512 514 lM02Icon.setIcon(null); 513 515 lM02Icon.setText(""); //$NON-NLS-1$ 514 516 515 517 lM03Icon = new JLabel(); 516 lM03Icon.setBounds(new Rectangle(210, - 40, 150, 200));518 lM03Icon.setBounds(new Rectangle(210, -50, 150, 200)); 517 519 lM03Icon.setIcon(null); 518 520 lM03Icon.setText(""); //$NON-NLS-1$ 519 521 520 522 lM04Icon = new JLabel(); 521 lM04Icon.setBounds(new Rectangle(210, 30, 150, 200));523 lM04Icon.setBounds(new Rectangle(210, 20, 150, 200)); 522 524 lM04Icon.setIcon(null); 523 525 lM04Icon.setText(""); //$NON-NLS-1$ 524 526 525 527 lM01FireMark = new JLabel(); 526 lM01FireMark.setBounds(new Rectangle(30 5, 90, 90, 20));528 lM01FireMark.setBounds(new Rectangle(300, 85, 95, 20)); 527 529 lM01FireMark.setFont(new Font("Dialog", Font.PLAIN, 12)); //$NON-NLS-1$ 528 530 lM01FireMark.setText(""); //$NON-NLS-1$ … … 759 761 return; 760 762 763 paintlock = true; 761 764 switch (type) { 762 765 … … 835 838 buoy.refreshLights(); 836 839 buoy.setLightColour(); 840 paintlock = false; 837 841 buoy.paintSign(); 838 842 } … … 1005 1009 cbM01Racon.setBounds(new Rectangle(240, 195, 80, 20)); 1006 1010 cbM01Racon.setFont(new Font("Dialog", Font.PLAIN, 12)); //$NON-NLS-1$ 1011 cbM01Racon.removeAllItems(); 1012 cbM01Racon.addItem("Not Set"); 1013 cbM01Racon.addItem("Racon"); 1014 cbM01Racon.addItem("Ramark"); 1015 cbM01Racon.addItem("Leading"); 1007 1016 cbM01Racon.addActionListener(new ActionListener() { 1008 1017 public void actionPerformed(ActionEvent e) { 1009 1018 int rac = cbM01Racon.getSelectedIndex(); 1019 buoy.setRatyp(rac); 1020 buoy.paintSign(); 1010 1021 } 1011 1022 }); -
applications/editors/josm/plugins/toms/src/toms/seamarks/SeaMark.java
r23012 r23047 106 106 public final static int SPEC_BEACON = 6; 107 107 public final static int SPEC_TOWER = 7; 108 109 /** 110 * Radar Beacons - correspond to Ratyp 111 */ 112 113 public final static int UNKNOWN_RATYP = 0; 114 public final static int RATYP_RACON = 0; 115 public final static int RATYP_RAMARK = 0; 116 public final static int RATYP_LEADING = 0; 108 117 109 118 /** -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/Buoy.java
r23038 r23047 55 55 public void setRegion(boolean region) { 56 56 Region = region; 57 dlg.rbM01RegionA.setSelected(!region);58 dlg.rbM01RegionB.setSelected(region);59 57 } 60 58 … … 79 77 } 80 78 79 private int Ratyp = 0; 80 81 public int getRatyp() { 82 return Ratyp; 83 } 84 85 public void setRatyp(int typ) { 86 Ratyp = typ; 87 } 88 81 89 private boolean Fog = false; 82 90 … … 246 254 public void paintSign() { 247 255 256 if (dlg.paintlock) return; 248 257 dlg.lM01Icon.setIcon(null); 249 258 dlg.lM02Icon.setIcon(null); … … 251 260 dlg.lM04Icon.setIcon(null); 252 261 262 dlg.rbM01RegionA.setSelected(!getRegion()); 263 dlg.rbM01RegionB.setSelected(getRegion()); 264 253 265 dlg.cM01TopMark.setSelected(hasTopMark()); 254 266 dlg.cM01Fired.setSelected(isFired()); … … 394 406 dlg.cM01Racon.setSelected(false); 395 407 dlg.cM01Racon.setVisible(false); 396 dlg.cbM01Racon.removeAllItems();397 408 dlg.cbM01Racon.setVisible(false); 409 setRatyp(0); 398 410 dlg.tfM01Racon.setText(""); 399 411 dlg.tfM01Racon.setVisible(false); -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyCard.java
r23038 r23047 188 188 189 189 public void paintSign() { 190 if (dlg.paintlock) return; 190 191 super.paintSign(); 191 192 -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyIsol.java
r23038 r23047 40 40 dlg.cbM01Kennung.addItem("Fl(2)"); 41 41 42 setBuoyIndex(ISOLATED_DANGER); 42 43 setColour(SeaMark.BLACK_RED_BLACK); 43 44 setLightColour("W"); 44 setBuoyIndex(ISOLATED_DANGER);45 45 setTopMark(true); 46 46 setRegion(Main.pref.get("tomsplugin.IALA").equals("B")); … … 104 104 105 105 public void paintSign() { 106 if (dlg.paintlock) return; 106 107 super.paintSign(); 107 108 -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyLat.java
r23038 r23047 345 345 346 346 public void paintSign() { 347 if (dlg.paintlock) return; 347 348 super.paintSign(); 348 349 -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyNota.java
r23038 r23047 47 47 48 48 public void paintSign() { 49 if (dlg.paintlock) return; 49 50 super.paintSign(); 50 51 -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySaw.java
r23038 r23047 43 43 dlg.cbM01Kennung.addItem("Mo()"); 44 44 45 setBuoyIndex(SAFE_WATER); 45 46 setColour(SeaMark.RED_WHITE); 46 47 setLightColour("W"); 47 setBuoyIndex(SAFE_WATER);48 48 setRegion(Main.pref.get("tomsplugin.IALA").equals("B")); 49 49 … … 103 103 104 104 public void paintSign() { 105 if (dlg.paintlock) return; 105 106 super.paintSign(); 106 107 -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySpec.java
r23038 r23047 41 41 dlg.cbM01Kennung.addItem("Not set"); 42 42 dlg.cbM01Kennung.addItem("Fl"); 43 dlg.cbM01Kennung.addItem("Fl(2)"); 44 dlg.cbM01Kennung.addItem("Fl(3)"); 45 dlg.cbM01Kennung.addItem("Fl(4)"); 46 dlg.cbM01Kennung.addItem("Fl(5)"); 47 dlg.cbM01Kennung.addItem("Oc(2)"); 48 dlg.cbM01Kennung.addItem("Oc(3)"); 43 dlg.cbM01Kennung.addItem("Fl()"); 44 dlg.cbM01Kennung.addItem("Oc"); 45 dlg.cbM01Kennung.addItem("Oc()"); 49 46 dlg.cbM01Kennung.addItem("Q"); 50 47 dlg.cbM01Kennung.addItem("IQ"); … … 53 50 dlg.cM01TopMark.setEnabled(true); 54 51 52 setBuoyIndex(SPECIAL_PURPOSE); 55 53 setColour(SeaMark.YELLOW); 56 54 setLightColour("W"); 57 setBuoyIndex(SPECIAL_PURPOSE);58 55 setRegion(Main.pref.get("tomsplugin.IALA").equals("B")); 59 56 … … 140 137 141 138 public void paintSign() { 139 if (dlg.paintlock) return; 142 140 super.paintSign(); 143 141 … … 210 208 } 211 209 210 212 211 public void saveSign() { 213 212 Node node = getNode(); -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyUkn.java
r23012 r23047 22 22 23 23 public void paintSign() { 24 if (dlg.paintlock) return; 24 25 super.paintSign(); 25 26
Note:
See TracChangeset
for help on using the changeset viewer.