Changeset 26590 in osm for applications
- Timestamp:
- 2011-08-30T09:41:33+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/oseam/src/oseam
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages.properties
r26581 r26590 20 20 LightVessel=Light vessel 21 21 LightFloat=Light float 22 SSWarning=Warning Signal Station 23 SSTraffic=Traffic Signal Station 22 24 Topmarks=Topmarks 23 25 FogSignals=Fog signals … … 37 39 Stake=Stake beacon 38 40 Perch=Perch beacon 41 Cairn=Cairn beacon 39 42 40 43 RegionA=IALA Region A … … 117 120 Magenta=Magenta 118 121 Pink=Pink 122 NoPat=No Pattern 123 HorizPat=Horizontal Stripes 124 VertPat=Vertical Stripes 125 DiagPat=Diagonal Stripes 126 SquarePat=Squared Pattern 127 BorderPat=Border Stripe 119 128 120 129 UKPurpose=Unknown Purpose -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelCol.java
r26562 r26590 36 36 if (dlg.mark != null) { 37 37 dlg.mark.setColour(ent, col); 38 act.actionPerformed(null); 38 // act.actionPerformed(null); 39 39 } 40 40 button.setBorderPainted(true); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSpec.java
r26581 r26590 44 44 public EnumMap<Shp, JRadioButton> shapes = new EnumMap<Shp, JRadioButton>(Shp.class); 45 45 public EnumMap<Shp, Obj> objects = new EnumMap<Shp, Obj>(Shp.class); 46 public PanelCol panelCol = null;47 46 public ActionListener alShape = new ActionListener() { 48 47 public void actionPerformed(java.awt.event.ActionEvent e) { … … 52 51 dlg.mark.setShape(shp); 53 52 dlg.mark.setObject(objects.get(shp)); 54 if ((button == cairnButton) && !(panelCol.offButton.isSelected())) 55 panelCol.offButton.doClick(); 53 if ((button == cairnButton) && !(dlg.panelMain.panelMore.panelCol.offButton.isSelected())) 54 dlg.panelMain.panelMore.panelCol.offButton.doClick(); 56 55 button.setBorderPainted(true); 57 56 } else … … 64 63 public PanelSpec(OSeaMAction dia) { 65 64 dlg = dia; 66 panelCol = new PanelCol(dlg, alShape, Ent.BODY);67 panelCol.setBounds(new Rectangle(0, 0, 34, 160));68 65 69 66 this.setLayout(null); 70 this.add(panelCol, null); 71 this.add(getShapeButton(pillarButton, 35, 0, 34, 32, "Pillar", Shp.PILLAR, Obj.BOYSPP), null); 72 this.add(getShapeButton(sparButton, 70, 0, 34, 32, "Spar", Shp.SPAR, Obj.BOYSPP), null); 73 this.add(getShapeButton(canButton, 105, 0, 34, 32, "Can", Shp.CAN, Obj.BOYSPP), null); 74 this.add(getShapeButton(coneButton, 140, 0, 34, 32, "Cone", Shp.CONE, Obj.BOYSPP), null); 75 this.add(getShapeButton(sphereButton, 35, 32, 34, 32, "Sphere", Shp.SPHERE, Obj.BOYSPP), null); 76 this.add(getShapeButton(barrelButton, 70, 32, 34, 32, "Barrel", Shp.BARREL, Obj.BOYSPP), null); 77 this.add(getShapeButton(superButton, 105, 32, 34, 32, "Super", Shp.SUPER, Obj.BOYSPP), null); 78 this.add(getShapeButton(floatButton, 140, 32, 34, 32, "Float", Shp.FLOAT, Obj.LITFLT), null); 79 this.add(getShapeButton(beaconButton, 35, 64, 34, 32, "Beacon", Shp.BEACON, Obj.BCNSPP), null); 80 this.add(getShapeButton(towerButton, 70, 64, 34, 32, "Tower", Shp.TOWER, Obj.BCNSPP), null); 81 this.add(getShapeButton(stakeButton, 105, 64, 34, 32, "Stake", Shp.STAKE, Obj.BCNSPP), null); 82 this.add(getShapeButton(cairnButton, 140, 64, 34, 32, "Cairn", Shp.CAIRN, Obj.BCNSPP), null); 67 this.add(getShapeButton(pillarButton, 0, 0, 34, 32, "Pillar", Shp.PILLAR, Obj.BOYSPP), null); 68 this.add(getShapeButton(sparButton, 35, 0, 34, 32, "Spar", Shp.SPAR, Obj.BOYSPP), null); 69 this.add(getShapeButton(canButton, 70, 0, 34, 32, "Can", Shp.CAN, Obj.BOYSPP), null); 70 this.add(getShapeButton(coneButton, 105, 0, 34, 32, "Cone", Shp.CONE, Obj.BOYSPP), null); 71 this.add(getShapeButton(sphereButton, 140, 0, 34, 32, "Sphere", Shp.SPHERE, Obj.BOYSPP), null); 72 this.add(getShapeButton(barrelButton, 35, 32, 34, 32, "Barrel", Shp.BARREL, Obj.BOYSPP), null); 73 this.add(getShapeButton(superButton, 70, 32, 34, 32, "Super", Shp.SUPER, Obj.BOYSPP), null); 74 this.add(getShapeButton(floatButton, 105, 32, 34, 32, "Float", Shp.FLOAT, Obj.LITFLT), null); 75 this.add(getShapeButton(beaconButton, 17, 64, 34, 32, "Beacon", Shp.BEACON, Obj.BCNSPP), null); 76 this.add(getShapeButton(towerButton, 52, 64, 34, 32, "Tower", Shp.TOWER, Obj.BCNSPP), null); 77 this.add(getShapeButton(stakeButton, 87, 64, 34, 32, "Stake", Shp.STAKE, Obj.BCNSPP), null); 78 this.add(getShapeButton(cairnButton, 122, 64, 34, 32, "Cairn", Shp.CAIRN, Obj.BCNSPP), null); 83 79 84 80 categoryLabel = new JLabel(Messages.getString("Category"), SwingConstants.CENTER); 85 categoryLabel.setBounds(new Rectangle( 35, 100, 140, 20));81 categoryLabel.setBounds(new Rectangle(5, 100, 170, 20)); 86 82 this.add(categoryLabel, null); 87 83 categoryBox = new JComboBox(); 88 categoryBox.setBounds(new Rectangle( 35, 120, 140, 20));84 categoryBox.setBounds(new Rectangle(5, 120, 170, 20)); 89 85 this.add(categoryBox, null); 90 86 categoryBox.addActionListener(alCategoryBox); … … 111 107 if (dlg.mark != null) { 112 108 if ((dlg.mark.getObject() != Obj.UNKNOWN) && (dlg.mark.getShape() != Shp.UNKNOWN)) { 109 dlg.panelMain.topButton.setEnabled(true); 113 110 dlg.panelMain.fogButton.setEnabled(true); 114 111 dlg.panelMain.radButton.setEnabled(true); … … 116 113 dlg.panelMain.moreButton.setVisible(true); 117 114 } else { 115 dlg.panelMain.topButton.setEnabled(false); 118 116 dlg.panelMain.fogButton.setEnabled(false); 119 117 dlg.panelMain.radButton.setEnabled(false); … … 129 127 if (dlg.mark.getObject() == Obj.UNKNOWN) { 130 128 clearSelections(); 131 panelCol.yellowButton.doClick(); 129 dlg.panelMain.panelMore.panelCol.yellowButton.doClick(); 132 130 } else { 133 panelCol.colours.get(dlg.mark.getColour(Ent.BODY, 0)).doClick(); 131 dlg.panelMain.panelMore.panelCol.colours.get(dlg.mark.getColour(Ent.BODY, 0)).doClick(); 134 132 } 135 133 if (shapes.containsKey(dlg.mark.getShape())) { -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java
r26581 r26590 161 161 CatSTR.put(Cat.CAM_SOUTH, "south"); 162 162 CatSTR.put(Cat.CAM_WEST, "west"); 163 CatSTR.put(Cat.SPM_UNKN, "unknown"); 163 CatSTR.put(Cat.SPM_UNKN, "unknown_purpose"); 164 164 CatSTR.put(Cat.SPM_WARN, "warning"); 165 165 CatSTR.put(Cat.SPM_CHBF, "channel_separation"); … … 167 167 CatSTR.put(Cat.SPM_CABL, "cable"); 168 168 CatSTR.put(Cat.SPM_OFAL, "outfall"); 169 CatSTR.put(Cat.SPM_ODAS, " ODAS");169 CatSTR.put(Cat.SPM_ODAS, "odas"); 170 170 CatSTR.put(Cat.SPM_RECN, "recreational"); 171 171 CatSTR.put(Cat.SPM_MOOR, "mooring"); 172 CatSTR.put(Cat.SPM_LNBY, " LANBY");172 CatSTR.put(Cat.SPM_LNBY, "lanby"); 173 173 CatSTR.put(Cat.SPM_LDNG, "leading"); 174 174 CatSTR.put(Cat.SPM_NOTC, "notice"); 175 CatSTR.put(Cat.SPM_TSS, " TSS");175 CatSTR.put(Cat.SPM_TSS, "tss"); 176 176 CatSTR.put(Cat.SPM_FOUL, "foul"); 177 177 CatSTR.put(Cat.SPM_DIVE, "diving"); … … 179 179 CatSTR.put(Cat.SPM_ANCH, "anchorage"); 180 180 CatSTR.put(Cat.MOR_DLPN, "dolphin"); 181 CatSTR.put(Cat.MOR_DDPN, "deviation_dolph on");181 CatSTR.put(Cat.MOR_DDPN, "deviation_dolphin"); 182 182 CatSTR.put(Cat.MOR_BLRD, "bollard"); 183 183 CatSTR.put(Cat.MOR_WALL, "wall");
Note:
See TracChangeset
for help on using the changeset viewer.