Changeset 23058 in osm for applications/editors/josm/plugins/toms
- Timestamp:
- 2010-09-07T16:24:42+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/toms/src/toms
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/toms/src/toms/dialogs/SmpDialogAction.java
r23050 r23058 116 116 public JRadioButton rbM01RegionA = null; 117 117 public JRadioButton rbM01RegionB = null; 118 public JLabel lM01Icon = null; 119 public JLabel lM02Icon = null; 120 public JLabel lM03Icon = null; 121 public JLabel lM04Icon = null; 118 public JLabel lM01Icon = null; // Shape 119 public JLabel lM02Icon = null; // Light 120 public JLabel lM03Icon = null; // Reflector 121 public JLabel lM04Icon = null; // Racon 122 public JLabel lM05Icon = null; // Fog 122 123 public JLabel lM01FireMark = null; 123 124 private JLabel lM01TypeOfMark = null; … … 525 526 lM04Icon.setText(""); //$NON-NLS-1$ 526 527 528 lM05Icon = new JLabel(); 529 lM05Icon.setBounds(new Rectangle(210, 20, 150, 200)); 530 lM05Icon.setIcon(null); 531 lM05Icon.setText(""); //$NON-NLS-1$ 532 527 533 lM01FireMark = new JLabel(); 528 534 lM01FireMark.setBounds(new Rectangle(300, 85, 95, 20)); … … 676 682 pM01SeaMap.add(lM03Icon, null); 677 683 pM01SeaMap.add(lM04Icon, null); 684 pM01SeaMap.add(lM05Icon, null); 678 685 pM01SeaMap.add(getCbM01TypeOfMark(), null); 679 686 pM01SeaMap.add(lM01TypeOfMark, null); … … 830 837 cbM01CatOfMark.addItem(Messages.getString("SmpDialogAction.207")); //$NON-NLS-1$ 831 838 cbM01CatOfMark.addItem(Messages.getString("SmpDialogAction.208")); //$NON-NLS-1$ 832 cbM01CatOfMark.addItem(Messages.getString("SmpDialogAction.209")); //$NON-NLS-1$833 839 } 834 840 break; … … 1044 1050 cM01Fog.setFont(new Font("Dialog", Font.PLAIN, 12)); //$NON-NLS-1$ 1045 1051 cM01Fog.setText(Messages.getString("SmpDialogAction.174")); //$NON-NLS-1$ 1052 cM01Fog.addActionListener(new ActionListener() { 1053 public void actionPerformed(ActionEvent e) { 1054 buoy.setFog(cM01Fog.isSelected()); 1055 buoy.paintSign(); 1056 } 1057 }); 1046 1058 } 1047 1059 return cM01Fog; -
applications/editors/josm/plugins/toms/src/toms/seamarks/SeaMark.java
r23050 r23058 64 64 public final static int LIGHT_MAJOR = 2; 65 65 public final static int LIGHT_MINOR = 3; 66 public final static int LIGHT_FLOAT = 4;67 66 68 67 /** -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/Buoy.java
r23050 r23058 259 259 dlg.lM03Icon.setIcon(null); 260 260 dlg.lM04Icon.setIcon(null); 261 dlg.lM05Icon.setIcon(null); 261 262 262 263 dlg.rbM01RegionA.setSelected(!getRegion()); … … 289 290 dlg.lM01Racon.setVisible(false); 290 291 dlg.tfM01Racon.setVisible(false); 292 } 293 294 if (hasFog()) { 295 dlg.lM05Icon.setIcon(new ImageIcon(getClass().getResource("/images/Fog_Signal.png"))); 291 296 } 292 297 … … 418 423 dlg.cM01Racon.setVisible(false); 419 424 dlg.cbM01Racon.setVisible(false); 420 setRatyp(0);421 425 dlg.tfM01Racon.setText(""); 422 426 dlg.tfM01Racon.setVisible(false); 423 427 dlg.lM01Racon.setVisible(false); 424 428 setRacon(false); 429 setRatyp(0); 425 430 dlg.cM01Fog.setSelected(false); 426 431 dlg.cM01Fog.setVisible(false); -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyCard.java
r23047 r23058 203 203 dlg.cM01Racon.setEnabled(true); 204 204 dlg.cM01Racon.setVisible(true); 205 dlg.cM01Fog.setEnabled(true); 206 dlg.cM01Fog.setVisible(true); 207 205 208 dlg.cM01Fired.setEnabled(true); 206 209 dlg.cM01Fired.setVisible(true); -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyIsol.java
r23047 r23058 117 117 dlg.cM01Racon.setEnabled(true); 118 118 dlg.cM01Racon.setVisible(true); 119 dlg.cM01Fog.setEnabled(true); 120 dlg.cM01Fog.setVisible(true); 121 122 dlg.cM01Fired.setVisible(true); 119 123 dlg.cM01Fired.setEnabled(true); 120 124 -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyLat.java
r23047 r23058 358 358 dlg.cM01Racon.setEnabled(true); 359 359 dlg.cM01Racon.setVisible(true); 360 dlg.cM01Fog.setEnabled(true); 361 dlg.cM01Fog.setVisible(true); 362 363 dlg.cM01Fired.setVisible(true); 360 364 dlg.cM01Fired.setEnabled(true); 361 365 -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyNota.java
r23047 r23058 52 52 dlg.sM01StatusBar.setText(getErrMsg()); 53 53 54 switch (getStyleIndex()) { 54 dlg.cM01Radar.setEnabled(true); 55 dlg.cM01Radar.setVisible(true); 56 dlg.cM01Racon.setEnabled(true); 57 dlg.cM01Racon.setVisible(true); 58 59 dlg.cM01Fog.setEnabled(true); 60 dlg.cM01Fog.setVisible(true); 61 62 dlg.cM01Fired.setVisible(true); 63 dlg.cM01Fired.setEnabled(false); 64 dlg.cM01Fired.setSelected(true); 65 66 switch (getBuoyIndex()) { 55 67 case SeaMark.LIGHT_HOUSE: 56 68 dlg.lM01Icon.setIcon(new ImageIcon(getClass().getResource( … … 66 78 dlg.lM01Icon.setIcon(new ImageIcon(getClass().getResource( 67 79 "/images/Light_Minor.png"))); 68 break;69 70 case SeaMark.LIGHT_FLOAT:71 // dlg.lM01Icon01.setIcon(new ImageIcon(getClass().getResource(72 // "/images/Light_Float.png")));73 80 break; 74 81 -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySaw.java
r23050 r23058 118 118 dlg.cM01Fired.setEnabled(true); 119 119 120 dlg.cM01Fog.setEnabled(true); 121 dlg.cM01Fog.setVisible(true); 122 123 dlg.cM01Fired.setVisible(true); 124 dlg.cM01Fired.setEnabled(true); 125 120 126 String image = "/images/Safe_Water"; 121 127 -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySpec.java
r23047 r23058 158 158 } 159 159 160 dlg.cM01Fog.setEnabled(true); 161 dlg.cM01Fog.setVisible(true); 162 163 dlg.cM01Fired.setVisible(true); 164 dlg.cM01Fired.setEnabled(true); 165 160 166 String image = "/images/Special_Purpose"; 161 167
Note:
See TracChangeset
for help on using the changeset viewer.