Changeset 28147 in osm for applications/editors
- Timestamp:
- 2012-03-26T13:59:36+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/oseam/src
- Files:
-
- 25 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSpec.java
r27461 r28147 106 106 } 107 107 dlg.panelMain.panelTop.syncPanel(); 108 } 109 }; 110 public JToggleButton noticeButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/NoticeButton.png"))); 111 private ActionListener alNotice = new ActionListener() { 112 public void actionPerformed(java.awt.event.ActionEvent e) { 113 if (noticeButton.isSelected()) { 114 noticeButton.setBorderPainted(true); 115 } else { 116 noticeButton.setBorderPainted(false); 117 } 108 118 } 109 119 }; … … 157 167 158 168 categoryLabel = new JLabel(Messages.getString("Category"), SwingConstants.CENTER); 159 categoryLabel.setBounds(new Rectangle(5, 1 10, 160, 20));169 categoryLabel.setBounds(new Rectangle(5, 125, 160, 18)); 160 170 add(categoryLabel); 161 171 categoryBox = new JComboBox(); 162 categoryBox.setBounds(new Rectangle(5, 1 30, 160, 20));172 categoryBox.setBounds(new Rectangle(5, 142, 160, 18)); 163 173 add(categoryBox); 164 174 categoryBox.setVisible(true); … … 206 216 add(topmarkButton); 207 217 218 noticeButton.setBounds(new Rectangle(136, 32, 34, 32)); 219 noticeButton.setToolTipText(Messages.getString("Notice")); 220 noticeButton.setBorder(BorderFactory.createLoweredBevelBorder()); 221 noticeButton.addActionListener(alNotice); 222 add(noticeButton); 223 noticeButton.setVisible(false); 224 208 225 mooringButton.setBounds(new Rectangle(136, 64, 34, 32)); 209 226 mooringButton.setToolTipText(Messages.getString("Mooring")); … … 224 241 stakeButton.setEnabled(false); 225 242 cairnButton.setEnabled(false); 243 noticeButton.setEnabled(false); 226 244 topmarkButton.setVisible(false); 227 245 for (Cat cat : moorings.keySet()) { … … 240 258 stakeButton.setEnabled(true); 241 259 cairnButton.setEnabled(true); 260 noticeButton.setEnabled(true); 242 261 topmarkButton.setBorderPainted(dlg.panelMain.mark.getTopmark() != Top.NOTOP); 243 262 topmarkButton.setSelected(dlg.panelMain.mark.getTopmark() != Top.NOTOP); … … 256 275 button.setBorderPainted(false); 257 276 } 277 noticeButton.setBorderPainted(false); 258 278 dlg.panelMain.mark.testValid(); 259 279 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java
r28144 r28147 62 62 public enum Obj { 63 63 UNKOBJ, BCNCAR, BCNISD, BCNLAT, BCNSAW, BCNSPP, 64 BOYCAR, BOYISD, BOYLAT, BOYSAW, BOYSPP, 64 BOYCAR, BOYISD, BOYLAT, BOYSAW, BOYSPP, NOTMRK, 65 65 FLTCAR, FLTISD, FLTLAT, FLTSAW, FLTSPP, 66 66 LITMAJ, LITMIN, LITFLT, LITVES, LITHSE, LNDMRK, … … 90 90 ObjSTR.put(Obj.LITFLT, "light_float"); 91 91 ObjSTR.put(Obj.LITVES, "light_vessel"); 92 ObjSTR.put(Obj.NOTMRK, "notice"); 92 93 ObjSTR.put(Obj.LNDMRK, "landmark"); 93 94 ObjSTR.put(Obj.LITHSE, "landmark"); … … 126 127 127 128 public enum Ent { 128 BODY, BUOY, BEACON, LFLOAT, TOPMARK, LIGHT, MOORING, STATION, PLATFORM 129 BODY, BUOY, BEACON, LFLOAT, TOPMARK, LIGHT, MOORING, STATION, PLATFORM, NOTICE 129 130 } 130 131 … … 162 163 EntMAP.put(Obj.RDOSTA, Ent.STATION); 163 164 EntMAP.put(Obj.RADSTA, Ent.STATION); 165 EntMAP.put(Obj.NOTMRK, Ent.NOTICE); 164 166 } 165 167 166 168 public enum Grp { 167 NUL, LAT, CAR, SAW, ISD, SPP, LGT, STN, PLF 169 NUL, LAT, CAR, SAW, ISD, SPP, LGT, STN, PLF, NTC 168 170 } 169 171 … … 202 204 GrpMAP.put(Obj.RDOSTA, Grp.STN); 203 205 GrpMAP.put(Obj.RADSTA, Grp.STN); 206 GrpMAP.put(Obj.NOTMRK, Grp.NTC); 204 207 } 205 208 … … 218 221 RSC_LFB, RSC_RKT, RSC_RSW, RSC_RIT, RSC_MLB, RSC_RAD, RSC_FAE, RSC_SPL, RSC_AIR, RSC_TUG, 219 222 ROS_BNO, ROS_BND, ROS_BNR, ROS_BNC, ROS_RDF, ROS_QTG, ROS_AER, ROS_DCA, ROS_LRN, ROS_DGPS, ROS_TRN, ROS_OMA, 220 ROS_SDS, ROS_CKA, ROS_PUB, ROS_COM, ROS_FAX, ROS_TIM, RAS_SRV, RAS_CST, PIL_VESS, PIL_HELI, PIL_SHORE 223 ROS_SDS, ROS_CKA, ROS_PUB, ROS_COM, ROS_FAX, ROS_TIM, RAS_SRV, RAS_CST, PIL_VESS, PIL_HELI, PIL_SHORE, 224 NTC_A1, NTC_A1a, NTC_A2, NTC_A3, NTC_A4, NTC_A4_1, NTC_A5, NTC_A5_1, NTC_A6, NTC_A7, NTC_A8, NTC_A9, 225 NTC_A10a, NTC_A10b, NTC_A12, NTC_A13, NTC_A14, NTC_A15, NTC_A16, NTC_A17, NTC_A18, NTC_A19, NTC_A20 221 226 } 222 227 … … 347 352 CatSTR.put(Cat.ROS_FAX, "facsimile"); 348 353 CatSTR.put(Cat.ROS_TIM, "time_signal"); 354 CatSTR.put(Cat.NTC_A1, "no_entry"); 355 CatSTR.put(Cat.NTC_A1a, "closed_area"); 356 CatSTR.put(Cat.NTC_A2, "no_overtaking"); 357 CatSTR.put(Cat.NTC_A3, "no_convoy_overtaking"); 358 CatSTR.put(Cat.NTC_A4, "no_passing"); 359 CatSTR.put(Cat.NTC_A4, "no_convoy_passing"); 360 CatSTR.put(Cat.NTC_A5, "no_berthing"); 361 CatSTR.put(Cat.NTC_A5_1, "no_berthing_lateral_limit"); 362 CatSTR.put(Cat.NTC_A6, "no_anchoring"); 363 CatSTR.put(Cat.NTC_A7, "no_mooring"); 364 CatSTR.put(Cat.NTC_A8, "no_turning"); 365 CatSTR.put(Cat.NTC_A9, "no_wash"); 366 CatSTR.put(Cat.NTC_A10a, "no_passage_left"); 367 CatSTR.put(Cat.NTC_A10b, "no_passage_right"); 368 CatSTR.put(Cat.NTC_A12, "no_motor_craft"); 369 CatSTR.put(Cat.NTC_A13, "no_sport_craft"); 370 CatSTR.put(Cat.NTC_A14, "no_waterskiing"); 371 CatSTR.put(Cat.NTC_A15, "no_sailing_craft"); 372 CatSTR.put(Cat.NTC_A16, "no_unpowered_craft"); 373 CatSTR.put(Cat.NTC_A17, "no_sailboards"); 374 CatSTR.put(Cat.NTC_A18, "no_high_speeds"); 375 CatSTR.put(Cat.NTC_A19, "no_launching_beaching"); 376 CatSTR.put(Cat.NTC_A20, "no_waterbikes"); 349 377 } 350 378 … … 1078 1106 public enum Fnc { 1079 1107 UNKFNC, HMO, CSTM, HLTH, HOSP, POFF, HOTEL, RWSTA, POLICE, WPOL, PILO, PILL, BANK, DCHQ, TRNS, FACT, PWRS, ADMIN, EDUC, CHCH, CHPL, 1080 TMPL, PGDA, SHSH, BTMP, MOSQ, MRBT, LOOK, COMS, TV, RADO, RADR, LSUP, MWAV, COOL, OBSV, TIMB, CLK, CTRL, AMOR, STAD, BUSS 1108 TMPL, PGDA, SHSH, BTMP, MOSQ, MRBT, LOOK, COMS, TV, RADO, RADR, LSUP, MWAV, COOL, OBSV, TIMB, CLK, CTRL, AMOR, STAD, BUSS, 1109 PRHB, RGLN, RSTN, RCMD, INFO 1081 1110 } 1082 1111 … … 1125 1154 FncSTR.put(Fnc.STAD, "stadium"); 1126 1155 FncSTR.put(Fnc.BUSS, "bus_station"); 1127 }; 1156 FncSTR.put(Fnc.PRHB, "prohibition"); 1157 FncSTR.put(Fnc.RGLN, "regulation"); 1158 FncSTR.put(Fnc.RSTN, "restriction"); 1159 FncSTR.put(Fnc.RCMD, "recommendation"); 1160 FncSTR.put(Fnc.INFO, "information"); 1161 } 1128 1162 1129 1163 private Fnc function = Fnc.UNKFNC;
Note:
See TracChangeset
for help on using the changeset viewer.