Changeset 26590 in osm for applications/editors


Ignore:
Timestamp:
2011-08-30T09:41:33+02:00 (13 years ago)
Author:
malcolmh
Message:

save

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  
    2020LightVessel=Light vessel
    2121LightFloat=Light float
     22SSWarning=Warning Signal Station
     23SSTraffic=Traffic Signal Station
    2224Topmarks=Topmarks
    2325FogSignals=Fog signals
     
    3739Stake=Stake beacon
    3840Perch=Perch beacon
     41Cairn=Cairn beacon
    3942
    4043RegionA=IALA Region A
     
    117120Magenta=Magenta
    118121Pink=Pink
     122NoPat=No Pattern
     123HorizPat=Horizontal Stripes
     124VertPat=Vertical Stripes
     125DiagPat=Diagonal Stripes
     126SquarePat=Squared Pattern
     127BorderPat=Border Stripe
    119128
    120129UKPurpose=Unknown Purpose
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelCol.java

    r26562 r26590  
    3636                                        if (dlg.mark != null) {
    3737                                                dlg.mark.setColour(ent, col);
    38                                                 act.actionPerformed(null);
     38//                                              act.actionPerformed(null);
    3939                                        }
    4040                                        button.setBorderPainted(true);
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSpec.java

    r26581 r26590  
    4444        public EnumMap<Shp, JRadioButton> shapes = new EnumMap<Shp, JRadioButton>(Shp.class);
    4545        public EnumMap<Shp, Obj> objects = new EnumMap<Shp, Obj>(Shp.class);
    46         public PanelCol panelCol = null;
    4746        public ActionListener alShape = new ActionListener() {
    4847                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    5251                                        dlg.mark.setShape(shp);
    5352                                        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();
    5655                                        button.setBorderPainted(true);
    5756                                } else
     
    6463        public PanelSpec(OSeaMAction dia) {
    6564                dlg = dia;
    66                 panelCol = new PanelCol(dlg, alShape, Ent.BODY);
    67                 panelCol.setBounds(new Rectangle(0, 0, 34, 160));
    6865
    6966                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);
    8379
    8480                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));
    8682                this.add(categoryLabel, null);
    8783                categoryBox = new JComboBox();
    88                 categoryBox.setBounds(new Rectangle(35, 120, 140, 20));
     84                categoryBox.setBounds(new Rectangle(5, 120, 170, 20));
    8985                this.add(categoryBox, null);
    9086                categoryBox.addActionListener(alCategoryBox);
     
    111107                if (dlg.mark != null) {
    112108                        if ((dlg.mark.getObject() != Obj.UNKNOWN) && (dlg.mark.getShape() != Shp.UNKNOWN)) {
     109                                dlg.panelMain.topButton.setEnabled(true);
    113110                                dlg.panelMain.fogButton.setEnabled(true);
    114111                                dlg.panelMain.radButton.setEnabled(true);
     
    116113                                dlg.panelMain.moreButton.setVisible(true);
    117114                        } else {
     115                                dlg.panelMain.topButton.setEnabled(false);
    118116                                dlg.panelMain.fogButton.setEnabled(false);
    119117                                dlg.panelMain.radButton.setEnabled(false);
     
    129127                        if (dlg.mark.getObject() == Obj.UNKNOWN) {
    130128                                clearSelections();
    131                                 panelCol.yellowButton.doClick();
     129                                dlg.panelMain.panelMore.panelCol.yellowButton.doClick();
    132130                        } 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();
    134132                        }
    135133                        if (shapes.containsKey(dlg.mark.getShape())) {
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java

    r26581 r26590  
    161161                CatSTR.put(Cat.CAM_SOUTH, "south");
    162162                CatSTR.put(Cat.CAM_WEST, "west");
    163                 CatSTR.put(Cat.SPM_UNKN, "unknown");
     163                CatSTR.put(Cat.SPM_UNKN, "unknown_purpose");
    164164                CatSTR.put(Cat.SPM_WARN, "warning");
    165165                CatSTR.put(Cat.SPM_CHBF, "channel_separation");
     
    167167                CatSTR.put(Cat.SPM_CABL, "cable");
    168168                CatSTR.put(Cat.SPM_OFAL, "outfall");
    169                 CatSTR.put(Cat.SPM_ODAS, "ODAS");
     169                CatSTR.put(Cat.SPM_ODAS, "odas");
    170170                CatSTR.put(Cat.SPM_RECN, "recreational");
    171171                CatSTR.put(Cat.SPM_MOOR, "mooring");
    172                 CatSTR.put(Cat.SPM_LNBY, "LANBY");
     172                CatSTR.put(Cat.SPM_LNBY, "lanby");
    173173                CatSTR.put(Cat.SPM_LDNG, "leading");
    174174                CatSTR.put(Cat.SPM_NOTC, "notice");
    175                 CatSTR.put(Cat.SPM_TSS, "TSS");
     175                CatSTR.put(Cat.SPM_TSS, "tss");
    176176                CatSTR.put(Cat.SPM_FOUL, "foul");
    177177                CatSTR.put(Cat.SPM_DIVE, "diving");
     
    179179                CatSTR.put(Cat.SPM_ANCH, "anchorage");
    180180                CatSTR.put(Cat.MOR_DLPN, "dolphin");
    181                 CatSTR.put(Cat.MOR_DDPN, "deviation_dolphon");
     181                CatSTR.put(Cat.MOR_DDPN, "deviation_dolphin");
    182182                CatSTR.put(Cat.MOR_BLRD, "bollard");
    183183                CatSTR.put(Cat.MOR_WALL, "wall");
Note: See TracChangeset for help on using the changeset viewer.