Ignore:
Timestamp:
2010-09-07T16:24:42+02:00 (14 years ago)
Author:
malcolmh
Message:

save

Location:
applications/editors/josm/plugins/toms/src/toms
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/toms/src/toms/dialogs/SmpDialogAction.java

    r23050 r23058  
    116116        public JRadioButton rbM01RegionA = null;
    117117        public JRadioButton rbM01RegionB = null;
    118         public JLabel lM01Icon = null;
    119         public JLabel lM02Icon = null;
    120         public JLabel lM03Icon = null;
    121         public JLabel lM04Icon = null;
     118        public JLabel lM01Icon = null;  // Shape
     119        public JLabel lM02Icon = null;  // Light
     120        public JLabel lM03Icon = null;  // Reflector
     121        public JLabel lM04Icon = null;  // Racon
     122        public JLabel lM05Icon = null;  // Fog
    122123        public JLabel lM01FireMark = null;
    123124        private JLabel lM01TypeOfMark = null;
     
    525526                        lM04Icon.setText(""); //$NON-NLS-1$
    526527
     528                        lM05Icon = new JLabel();
     529                        lM05Icon.setBounds(new Rectangle(210, 20, 150, 200));
     530                        lM05Icon.setIcon(null);
     531                        lM05Icon.setText(""); //$NON-NLS-1$
     532
    527533                        lM01FireMark = new JLabel();
    528534                        lM01FireMark.setBounds(new Rectangle(300, 85, 95, 20));
     
    676682                        pM01SeaMap.add(lM03Icon, null);
    677683                        pM01SeaMap.add(lM04Icon, null);
     684                        pM01SeaMap.add(lM05Icon, null);
    678685                        pM01SeaMap.add(getCbM01TypeOfMark(), null);
    679686                        pM01SeaMap.add(lM01TypeOfMark, null);
     
    830837                                                        cbM01CatOfMark.addItem(Messages.getString("SmpDialogAction.207")); //$NON-NLS-1$
    831838                                                        cbM01CatOfMark.addItem(Messages.getString("SmpDialogAction.208")); //$NON-NLS-1$
    832                                                         cbM01CatOfMark.addItem(Messages.getString("SmpDialogAction.209")); //$NON-NLS-1$
    833839                                                }
    834840                                                break;
     
    10441050                        cM01Fog.setFont(new Font("Dialog", Font.PLAIN, 12)); //$NON-NLS-1$
    10451051                        cM01Fog.setText(Messages.getString("SmpDialogAction.174")); //$NON-NLS-1$
     1052                        cM01Fog.addActionListener(new ActionListener() {
     1053                                public void actionPerformed(ActionEvent e) {
     1054                                        buoy.setFog(cM01Fog.isSelected());
     1055                                        buoy.paintSign();
     1056                                }
     1057                        });
    10461058                }
    10471059                return cM01Fog;
  • applications/editors/josm/plugins/toms/src/toms/seamarks/SeaMark.java

    r23050 r23058  
    6464        public final static int LIGHT_MAJOR = 2;
    6565        public final static int LIGHT_MINOR = 3;
    66         public final static int LIGHT_FLOAT = 4;
    6766
    6867        /**
  • applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/Buoy.java

    r23050 r23058  
    259259                dlg.lM03Icon.setIcon(null);
    260260                dlg.lM04Icon.setIcon(null);
     261                dlg.lM05Icon.setIcon(null);
    261262               
    262263                dlg.rbM01RegionA.setSelected(!getRegion());
     
    289290                        dlg.lM01Racon.setVisible(false);
    290291                        dlg.tfM01Racon.setVisible(false);
     292                }
     293               
     294                if (hasFog()) {
     295                        dlg.lM05Icon.setIcon(new ImageIcon(getClass().getResource("/images/Fog_Signal.png")));
    291296                }
    292297               
     
    418423                dlg.cM01Racon.setVisible(false);
    419424                dlg.cbM01Racon.setVisible(false);
    420                 setRatyp(0);
    421425                dlg.tfM01Racon.setText("");
    422426                dlg.tfM01Racon.setVisible(false);
    423427                dlg.lM01Racon.setVisible(false);
    424428                setRacon(false);
     429                setRatyp(0);
    425430                dlg.cM01Fog.setSelected(false);
    426431                dlg.cM01Fog.setVisible(false);
  • applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyCard.java

    r23047 r23058  
    203203                dlg.cM01Racon.setEnabled(true);
    204204                dlg.cM01Racon.setVisible(true);
     205                dlg.cM01Fog.setEnabled(true);
     206                dlg.cM01Fog.setVisible(true);
     207
    205208                dlg.cM01Fired.setEnabled(true);
    206209                dlg.cM01Fired.setVisible(true);
  • applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyIsol.java

    r23047 r23058  
    117117                dlg.cM01Racon.setEnabled(true);
    118118                dlg.cM01Racon.setVisible(true);
     119                dlg.cM01Fog.setEnabled(true);
     120                dlg.cM01Fog.setVisible(true);
     121
     122                dlg.cM01Fired.setVisible(true);
    119123                dlg.cM01Fired.setEnabled(true);
    120124
  • applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyLat.java

    r23047 r23058  
    358358                dlg.cM01Racon.setEnabled(true);
    359359                dlg.cM01Racon.setVisible(true);
     360                dlg.cM01Fog.setEnabled(true);
     361                dlg.cM01Fog.setVisible(true);
     362
     363                dlg.cM01Fired.setVisible(true);
    360364                dlg.cM01Fired.setEnabled(true);
    361365
  • applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyNota.java

    r23047 r23058  
    5252                dlg.sM01StatusBar.setText(getErrMsg());
    5353
    54                 switch (getStyleIndex()) {
     54                dlg.cM01Radar.setEnabled(true);
     55                dlg.cM01Radar.setVisible(true);
     56                dlg.cM01Racon.setEnabled(true);
     57                dlg.cM01Racon.setVisible(true);
     58
     59                dlg.cM01Fog.setEnabled(true);
     60                dlg.cM01Fog.setVisible(true);
     61
     62                dlg.cM01Fired.setVisible(true);
     63                dlg.cM01Fired.setEnabled(false);
     64                dlg.cM01Fired.setSelected(true);
     65
     66                switch (getBuoyIndex()) {
    5567                case SeaMark.LIGHT_HOUSE:
    5668                        dlg.lM01Icon.setIcon(new ImageIcon(getClass().getResource(
     
    6678                        dlg.lM01Icon.setIcon(new ImageIcon(getClass().getResource(
    6779                                        "/images/Light_Minor.png")));
    68                         break;
    69 
    70                 case SeaMark.LIGHT_FLOAT:
    71 //                      dlg.lM01Icon01.setIcon(new ImageIcon(getClass().getResource(
    72 //                                      "/images/Light_Float.png")));
    7380                        break;
    7481
  • applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySaw.java

    r23050 r23058  
    118118                dlg.cM01Fired.setEnabled(true);
    119119
     120                dlg.cM01Fog.setEnabled(true);
     121                dlg.cM01Fog.setVisible(true);
     122
     123                dlg.cM01Fired.setVisible(true);
     124                dlg.cM01Fired.setEnabled(true);
     125
    120126                String image = "/images/Safe_Water";
    121127
  • applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySpec.java

    r23047 r23058  
    158158                }
    159159
     160                dlg.cM01Fog.setEnabled(true);
     161                dlg.cM01Fog.setVisible(true);
     162
     163                dlg.cM01Fired.setVisible(true);
     164                dlg.cM01Fired.setEnabled(true);
     165
    160166                String image = "/images/Special_Purpose";
    161167
Note: See TracChangeset for help on using the changeset viewer.