Changeset 28157 in osm


Ignore:
Timestamp:
2012-03-27T23:29:27+02:00 (12 years ago)
Author:
malcolmh
Message:

save

Location:
applications/editors/josm/plugins/smed/plugs/oseam/src
Files:
27 added
26 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelMain.java

    r27734 r28157  
    2020        public PanelLights panelLights = null;
    2121        public PanelMore panelMore = null;
     22        public PanelNotice panelNotice = null;
    2223        public PanelTop panelTop = null;
    2324        public PanelFog panelFog = null;
     
    181182                panelMore.setBounds(new Rectangle(40, 165, 360, 160));
    182183                panelMore.setVisible(false);
     184                panelNotice = new PanelNotice(dlg);
     185                panelNotice.setBounds(new Rectangle(40, 165, 360, 160));
     186                panelNotice.setVisible(false);
    183187                panelTop = new PanelTop(dlg);
    184188                panelTop.setBounds(new Rectangle(40, 165, 360, 160));
     
    203207                add(panelLights);
    204208                add(panelMore);
     209                add(panelNotice);
    205210                add(panelTop);
    206211                add(panelFog);
     
    284289                panelLights.setVisible(false);
    285290                panelMore.setVisible(false);
     291                panelNotice.setVisible(false);
    286292                panelTop.setVisible(false);
    287293                panelFog.setVisible(false);
     
    309315                                panelHaz.syncPanel();
    310316                                break;
     317                        case NTC:
     318                                panelNotice.setVisible(true);
    311319                        case SPP:
    312320                                specButton.setBorderPainted(true);
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSpec.java

    r28147 r28157  
    111111        private ActionListener alNotice = new ActionListener() {
    112112                public void actionPerformed(java.awt.event.ActionEvent e) {
     113                        dlg.panelMain.mark.clrMark();
    113114                        if (noticeButton.isSelected()) {
     115                                dlg.panelMain.mark.setObject(Obj.NOTMRK);
    114116                                noticeButton.setBorderPainted(true);
    115117                        } else {
     118                                dlg.panelMain.mark.setObject(Obj.UNKOBJ);
    116119                                noticeButton.setBorderPainted(false);
    117120                        }
     121                        dlg.panelMain.syncPanel();
    118122                }
    119123        };
     
    193197                addCatItem(Messages.getString("Anchorage"), Cat.SPM_ANCH);
    194198                mooringBox = new JComboBox();
    195                 mooringBox.setBounds(new Rectangle(5, 130, 160, 20));
     199                mooringBox.setBounds(new Rectangle(5, 142, 160, 18));
    196200                add(mooringBox);
    197201                mooringBox.setVisible(false);
     
    221225                noticeButton.addActionListener(alNotice);
    222226                add(noticeButton);
    223                 noticeButton.setVisible(false);
    224227
    225228                mooringButton.setBounds(new Rectangle(136, 64, 34, 32));
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java

    r28147 r28157  
    12971297                        tmp = true;
    12981298                        break;
     1299                case NOTMRK:
     1300                        if (getCategory() != Cat.NOCAT)
     1301                                tmp = true;
    12991302                case LNDMRK:
    13001303                        if ((getCategory() != Cat.NOCAT) || (getFunc() != Fnc.UNKFNC))
     
    14051408                        str = keys.get("seamark:name");
    14061409                        setName(str);
    1407                 }
    1408                 if (getName().isEmpty()) {
    1409                         if (keys.containsKey("name")) {
    1410                                 str = keys.get("name");
    1411                                 setName(str);
    1412                         }
    14131410                }
    14141411               
Note: See TracChangeset for help on using the changeset viewer.