Changeset 27032 in osm for applications/editors
- Timestamp:
- 2011-11-09T19:56:00+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/oseam/src
- Files:
-
- 4 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages.properties
r27031 r27032 176 176 Elevation=Elevation 177 177 Visibility=Visibility 178 Conspicuity=Conspicuity 178 179 Reflectivity=Reflectivity 179 180 Construction=Construction 180 181 NotSet=Not set 181 Conspicuous=Conspicuous 182 NotConspicuous=Not conspicuous 183 Reflector=Reflector 182 184 183 185 Permanent=Permanent … … 218 220 Start=Start 219 221 End=End 222 223 NoFog=No fog signal 224 FogSignal=Fog Signal 225 Horn=Horn 226 Siren=Siren 227 Diaphone=Diaphone 228 Bell=Bell 229 Whistle=Whistle 230 Explosion=Explosion -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages_en.properties
r27031 r27032 176 176 Elevation=Elevation 177 177 Visibility=Visibility 178 Conspicuity=Conspicuity 178 179 Reflectivity=Reflectivity 179 180 Construction=Construction 180 181 NotSet=Not set 181 Conspicuous=Conspicuous 182 NotConspicuous=Not conspicuous 183 Reflector=Reflector 182 184 183 185 Permanent=Permanent … … 219 221 End=End 220 222 223 NoFog=No fog signal 224 FogSignal=Fog Signal 225 Horn=Horn 226 Siren=Siren 227 Diaphone=Diaphone 228 Bell=Bell 229 Whistle=Whistle 230 Explosion=Explosion 231 -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelFog.java
r26998 r27032 16 16 private ButtonGroup fogButtons = new ButtonGroup(); 17 17 public JRadioButton noFogButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/OffButton.png"))); 18 public JRadioButton yesFogButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/ OffButton.png")));19 public JRadioButton hornButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/ OffButton.png")));18 public JRadioButton yesFogButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/FogYesButton.png"))); 19 public JRadioButton hornButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/FogHornButton.png"))); 20 20 public JRadioButton sirenButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/OffButton.png"))); 21 21 public JRadioButton diaButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/OffButton.png"))); … … 44 44 public void actionPerformed(java.awt.event.ActionEvent e) { 45 45 dlg.mark.setFogGroup(groupBox.getText()); 46 dlg.mark.paintSign(); 46 47 } 47 48 }; … … 51 52 public void actionPerformed(java.awt.event.ActionEvent e) { 52 53 dlg.mark.setFogPeriod(periodBox.getText()); 54 dlg.mark.paintSign(); 53 55 } 54 56 }; … … 117 119 for (Fog fog : fogs.keySet()) { 118 120 JRadioButton button = fogs.get(fog); 119 if (dlg.mark.getFogSound() == fog) { 120 button.setBorderPainted(true); 121 } else 122 button.setBorderPainted(false); 121 button.setBorderPainted(dlg.mark.getFogSound() == fog); 123 122 } 124 123 groupBox.setText(dlg.mark.getFogGroup()); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLit.java
r27031 r27032 184 184 categoryBox.setBounds(new Rectangle(185, 20, 165, 20)); 185 185 this.add(categoryBox, null); 186 addCatItem( Messages.getString("NoneSpecified"), Lit.UNKNOWN);187 addCatItem(Messages.getString(" NoneSpecified"), Lit.VERT);188 addCatItem(Messages.getString(" NoneSpecified"), Lit.HORIZ);189 addCatItem(Messages.getString(" NoneSpecified"), Lit.UPPER);190 addCatItem(Messages.getString(" NoneSpecified"), Lit.LOWER);191 addCatItem(Messages.getString(" NoneSpecified"), Lit.REAR);192 addCatItem(Messages.getString(" NoneSpecified"), Lit.FRONT);193 addCatItem(Messages.getString(" NoneSpecified"), Lit.AERO);194 addCatItem(Messages.getString(" NoneSpecified"), Lit.AIROBS);195 addCatItem(Messages.getString(" NoneSpecified"), Lit.FOGDET);196 addCatItem(Messages.getString(" NoneSpecified"), Lit.FLOOD);197 addCatItem(Messages.getString(" NoneSpecified"), Lit.STRIP);198 addCatItem(Messages.getString(" NoneSpecified"), Lit.SUBS);199 addCatItem(Messages.getString(" NoneSpecified"), Lit.SPOT);200 addCatItem(Messages.getString(" NoneSpecified"), Lit.MOIRE);201 addCatItem(Messages.getString(" NoneSpecified"), Lit.EMERG);202 addCatItem(Messages.getString(" NoneSpecified"), Lit.BEAR);186 addCatItem("", Lit.UNKNOWN); 187 addCatItem(Messages.getString("VerticallyDisposedLights"), Lit.VERT); 188 addCatItem(Messages.getString("HorizontallyDisposedLights"), Lit.HORIZ); 189 addCatItem(Messages.getString("Upper"), Lit.UPPER); 190 addCatItem(Messages.getString("Lower"), Lit.LOWER); 191 addCatItem(Messages.getString("Rear"), Lit.REAR); 192 addCatItem(Messages.getString("Front"), Lit.FRONT); 193 addCatItem(Messages.getString("AeroLight"), Lit.AERO); 194 addCatItem(Messages.getString("AirObstructionLight"), Lit.AIROBS); 195 addCatItem(Messages.getString("FogDetectorLight"), Lit.FOGDET); 196 addCatItem(Messages.getString("Floodlight"), Lit.FLOOD); 197 addCatItem(Messages.getString("Striplight"), Lit.STRIP); 198 addCatItem(Messages.getString("SubsidiaryLight"), Lit.SUBS); 199 addCatItem(Messages.getString("Spotlight"), Lit.SPOT); 200 addCatItem(Messages.getString("MoireEffectLight"), Lit.MOIRE); 201 addCatItem(Messages.getString("EmergencyLight"), Lit.EMERG); 202 addCatItem(Messages.getString("BearingLight"), Lit.BEAR); 203 203 categoryBox.addActionListener(alCategory); 204 204 … … 209 209 visibilityBox.setBounds(new Rectangle(185, 60, 165, 20)); 210 210 this.add(visibilityBox, null); 211 addVisibItem( Messages.getString("NoneSpecified"), Vis.UNKNOWN);211 addVisibItem("", Vis.UNKNOWN); 212 212 addVisibItem(Messages.getString("Intensified"), Vis.INTEN); 213 213 addVisibItem(Messages.getString("Unintensified"), Vis.UNINTEN); … … 221 221 exhibitionBox.setBounds(new Rectangle(280, 100, 70, 20)); 222 222 this.add(exhibitionBox, null); 223 addExhibItem( Messages.getString("NotSet"), Exh.UNKNOWN);223 addExhibItem("", Exh.UNKNOWN); 224 224 addExhibItem(Messages.getString("24h"), Exh.H24); 225 225 addExhibItem(Messages.getString("Day"), Exh.DAY); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelMore.java
r27023 r27032 232 232 statusBox = new JComboBox(); 233 233 statusBox.setBounds(new Rectangle(250, 20, 100, 20)); 234 addStsItem( Messages.getString("NotSet"), Sts.UNKNOWN);234 addStsItem("", Sts.UNKNOWN); 235 235 addStsItem(Messages.getString("Permanent"), Sts.PERM); 236 236 addStsItem(Messages.getString("Occasional"), Sts.OCC); … … 259 259 constrBox = new JComboBox(); 260 260 constrBox.setBounds(new Rectangle(250, 60, 100, 20)); 261 addCnsItem( Messages.getString("NotSet"), Cns.UNKNOWN);261 addCnsItem("", Cns.UNKNOWN); 262 262 addCnsItem(Messages.getString("Masonry"), Cns.BRICK); 263 263 addCnsItem(Messages.getString("Concreted"), Cns.CONC); … … 272 272 constrBox.addActionListener(alConstr); 273 273 274 conLabel = new JLabel(Messages.getString(" Visibility"), SwingConstants.CENTER);274 conLabel = new JLabel(Messages.getString("Conspicuity"), SwingConstants.CENTER); 275 275 conLabel.setBounds(new Rectangle(250, 80, 100, 20)); 276 276 this.add(conLabel, null); 277 277 conBox = new JComboBox(); 278 278 conBox.setBounds(new Rectangle(250, 100, 100, 20)); 279 addConItem( Messages.getString("NotSet"), Con.UNKNOWN);279 addConItem("", Con.UNKNOWN); 280 280 addConItem(Messages.getString("Conspicuous"), Con.CONSP); 281 281 addConItem(Messages.getString("NotConspicuous"), Con.NCONS); … … 288 288 reflBox = new JComboBox(); 289 289 reflBox.setBounds(new Rectangle(250, 140, 100, 20)); 290 addReflItem( Messages.getString("NotSet"), Con.UNKNOWN);290 addReflItem("", Con.UNKNOWN); 291 291 addReflItem(Messages.getString("Conspicuous"), Con.CONSP); 292 292 addReflItem(Messages.getString("NotConspicuous"), Con.NCONS); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSpec.java
r27023 r27032 91 91 this.add(categoryBox, null); 92 92 categoryBox.addActionListener(alCategoryBox); 93 addCatItem( Messages.getString("NotSet"), Cat.NONE);93 addCatItem("", Cat.NONE); 94 94 addCatItem(Messages.getString("UKPurpose"), Cat.SPM_UNKN); 95 95 addCatItem(Messages.getString("Warning"), Cat.SPM_WARN); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java
r27031 r27032 1679 1679 if (hasFog()) { 1680 1680 dlg.panelMain.fogIcon.setIcon(new ImageIcon(getClass().getResource("/images/Fog_Signal.png"))); 1681 String str = ""; 1682 if (getFogSound() != Fog.UNKNOWN) 1683 switch (getFogSound()) { 1684 case HORN: 1685 str = "Horn"; 1686 break; 1687 case SIREN: 1688 str = "Siren"; 1689 break; 1690 case DIA: 1691 str = "Dia"; 1692 break; 1693 case BELL: 1694 str = "Bell"; 1695 break; 1696 case WHIS: 1697 str = "Whis"; 1698 break; 1699 case GONG: 1700 str = "Gong"; 1701 break; 1702 case EXPLOS: 1703 str = "Explos"; 1704 break; 1705 } 1706 if (!getFogGroup().isEmpty()) 1707 str += ("(" + getFogGroup() + ")"); 1708 else 1709 str += " "; 1710 if (!getFogPeriod().isEmpty()) 1711 str += getFogPeriod() + "s"; 1712 dlg.panelMain.fogLabel.setText(str); 1681 1713 } 1682 1714 … … 1808 1840 1809 1841 if (hasFog()) { 1810 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:fog_signal", FogSTR.get(getFogSound()))); 1842 if (getFogSound() == Fog.UNKNOWN) 1843 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:fog_signal", "yes")); 1844 else 1845 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:fog_signal:category", FogSTR.get(getFogSound()))); 1811 1846 if (!getFogGroup().isEmpty()) { 1812 1847 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:fog_signal:group", getFogGroup()));
Note:
See TracChangeset
for help on using the changeset viewer.