Changeset 24875 in osm for applications


Ignore:
Timestamp:
2010-12-25T14:21:00+01:00 (14 years ago)
Author:
malcolmh
Message:

save

Location:
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam
Files:
11 edited

Legend:

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

    r24872 r24875  
    2020import oseam.seamarks.SeaMark.Cat;
    2121import oseam.seamarks.SeaMark.Col;
     22import oseam.seamarks.SeaMark.Obj;
    2223import oseam.seamarks.MarkLat;
    2324import oseam.seamarks.MarkSaw;
     
    4142                                dlg.mark.setCategory(Cat.LAT_PORT);
    4243                                if (dlg.mark.getRegion() == SeaMark.IALA_A) {
    43                                         dlg.mark.setColour(Col.RED);
     44                                        dlg.mark.setColour(Obj.BODY, Col.RED);
    4445                                        panelPort.regionAButton.doClick();
    4546                                } else {
    46                                         dlg.mark.setColour(Col.GREEN);
     47                                        dlg.mark.setColour(Obj.BODY, Col.GREEN);
    4748                                        panelPort.regionBButton.doClick();
    4849                                }
     
    5960                                dlg.mark.setCategory(Cat.LAT_STBD);
    6061                                if (dlg.mark.getRegion() == SeaMark.IALA_A) {
    61                                         dlg.mark.setColour(Col.GREEN);
     62                                        dlg.mark.setColour(Obj.BODY, Col.GREEN);
    6263                                        panelStbd.regionAButton.doClick();
    6364                                } else {
    64                                         dlg.mark.setColour(Col.RED);
     65                                        dlg.mark.setColour(Obj.BODY, Col.RED);
    6566                                        panelStbd.regionBButton.doClick();
    6667                                }
     
    7778                                dlg.mark.setCategory(Cat.LAT_PREF_PORT);
    7879                                if (dlg.mark.getRegion() == SeaMark.IALA_A) {
    79                                         dlg.mark.setColour(Col.RED_GREEN_RED);
     80                                        dlg.mark.setColour(Obj.BODY, Col.RED_GREEN_RED);
    8081                                        panelPrefPort.regionAButton.doClick();
    8182                                } else {
    82                                         dlg.mark.setColour(Col.GREEN_RED_GREEN);
     83                                        dlg.mark.setColour(Obj.BODY, Col.GREEN_RED_GREEN);
    8384                                        panelPrefPort.regionBButton.doClick();
    8485                                }
     
    9596                                dlg.mark.setCategory(Cat.LAT_PREF_STBD);
    9697                                if (dlg.mark.getRegion() == SeaMark.IALA_A) {
    97                                         dlg.mark.setColour(Col.GREEN_RED_GREEN);
     98                                        dlg.mark.setColour(Obj.BODY, Col.GREEN_RED_GREEN);
    9899                                        panelPrefStbd.regionAButton.doClick();
    99100                                } else {
    100                                         dlg.mark.setColour(Col.RED_GREEN_RED);
     101                                        dlg.mark.setColour(Obj.BODY, Col.RED_GREEN_RED);
    101102                                        panelPrefStbd.regionBButton.doClick();
    102103                                }
     
    111112                                if (!(dlg.mark instanceof MarkSaw))
    112113                                        dlg.mark = new MarkSaw(dlg);
    113                                 dlg.mark.setColour(Col.RED_WHITE);
     114                                dlg.mark.setColour(Obj.BODY, Col.RED_WHITE);
    114115                                safeWaterButton.setBorderPainted(true);
    115116                                panelSafeWater.setVisible(true);
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelCol.java

    r24873 r24875  
    1818import oseam.dialogs.OSeaMAction;
    1919import oseam.seamarks.SeaMark.Col;
     20import oseam.seamarks.SeaMark.Obj;
    2021
    2122public class PanelCol extends JPanel {
    2223
    2324        private OSeaMAction dlg;
     25        private Obj obj;
    2426        private ButtonGroup colourButtons = new ButtonGroup();
    2527        public JRadioButton offButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/OffButton.png")));
     
    4143                                JRadioButton button = colours.get(col);
    4244                                if (button.isSelected()) {
     45                                        if (dlg.mark != null) dlg.mark.setColour(obj, col);
    4346                                        button.setBorderPainted(true);
    4447                                } else
     
    4851        };
    4952
    50         public PanelCol(OSeaMAction dia) {
     53        public PanelCol(OSeaMAction dia, Obj object) {
    5154                dlg = dia;
     55                obj = object;
    5256                this.setLayout(null);
    5357                this.add(getColButton(offButton, 0, 0, 34, 16, "No colour", Col.UNKNOWN), null);
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelHaz.java

    r24872 r24875  
    1717import oseam.seamarks.SeaMark.Cat;
    1818import oseam.seamarks.SeaMark.Col;
     19import oseam.seamarks.SeaMark.Obj;
    1920import oseam.seamarks.SeaMark.Shp;
    2021
     
    4041                                }
    4142                                dlg.mark.setCategory(Cat.CARD_NORTH);
    42                                 dlg.mark.setColour(Col.BLACK_YELLOW);
     43                                dlg.mark.setColour(Obj.BODY, Col.BLACK_YELLOW);
    4344                                dlg.panelMain.panelTop.northTopButton.doClick();
    4445                                dlg.panelMain.panelTop.panelCol.blackButton.doClick();
     
    5354                                }
    5455                                dlg.mark.setCategory(Cat.CARD_SOUTH);
    55                                 dlg.mark.setColour(Col.YELLOW_BLACK);
     56                                dlg.mark.setColour(Obj.BODY, Col.YELLOW_BLACK);
    5657                                dlg.panelMain.panelTop.southTopButton.doClick();
    5758                                dlg.panelMain.panelTop.panelCol.blackButton.doClick();
     
    6667                                }
    6768                                dlg.mark.setCategory(Cat.CARD_EAST);
    68                                 dlg.mark.setColour(Col.BLACK_YELLOW_BLACK);
     69                                dlg.mark.setColour(Obj.BODY, Col.BLACK_YELLOW_BLACK);
    6970                                dlg.panelMain.panelTop.eastTopButton.doClick();
    7071                                dlg.panelMain.panelTop.panelCol.blackButton.doClick();
     
    7980                                }
    8081                                dlg.mark.setCategory(Cat.CARD_WEST);
    81                                 dlg.mark.setColour(Col.YELLOW_BLACK_YELLOW);
     82                                dlg.mark.setColour(Obj.BODY, Col.YELLOW_BLACK_YELLOW);
    8283                                dlg.panelMain.panelTop.westTopButton.doClick();
    8384                                dlg.panelMain.panelTop.panelCol.blackButton.doClick();
     
    9192                                        alShape.actionPerformed(null);
    9293                                }
    93                                 dlg.mark.setColour(Col.BLACK_RED_BLACK);
     94                                dlg.mark.setColour(Obj.BODY, Col.BLACK_RED_BLACK);
    9495                                dlg.panelMain.panelTop.spheres2TopButton.doClick();
    9596                                dlg.panelMain.panelTop.panelCol.blackButton.doClick();
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLit.java

    r24839 r24875  
    33import javax.swing.JPanel;
    44
    5 import java.awt.Color;
    6 import java.awt.Dimension;
    75import java.awt.Rectangle;
    8 import java.awt.Font;
    9 
    10 import javax.swing.ButtonGroup;
    11 import javax.swing.ImageIcon;
    12 import javax.swing.JLabel;
    13 import javax.swing.JTextField;
    14 import javax.swing.JComboBox;
    15 import javax.swing.JCheckBox;
    16 import javax.swing.JRadioButton;
    176
    187import oseam.Messages;
    198import oseam.dialogs.OSeaMAction;
    20 
    21 import java.awt.Cursor;
    22 import java.awt.event.ActionListener;
     9import oseam.seamarks.SeaMark.Obj;
    2310
    2411public class PanelLit extends JPanel {
     
    2916        public PanelLit(OSeaMAction dia) {
    3017                dlg = dia;
    31                 panelCol = new PanelCol(dlg);
     18                panelCol = new PanelCol(dlg, Obj.LIGHT);
    3219                panelCol.setBounds(new Rectangle(0, 0, 34, 160));
    3320                this.setLayout(null);
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSpec.java

    r24870 r24875  
    2020import oseam.dialogs.OSeaMAction;
    2121import oseam.seamarks.SeaMark.Shp;
     22import oseam.seamarks.SeaMark.Obj;
    2223
    2324public class PanelSpec extends JPanel {
     
    5657        public PanelSpec(OSeaMAction dia) {
    5758                dlg = dia;
    58                 panelCol = new PanelCol(dlg);
     59                panelCol = new PanelCol(dlg, Obj.BODY);
    5960                panelCol.setBounds(new Rectangle(9, 0, 34, 160));
    6061
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelTop.java

    r24873 r24875  
    1616import oseam.dialogs.OSeaMAction;
    1717import oseam.seamarks.SeaMark.Top;
     18import oseam.seamarks.SeaMark.Obj;
    1819
    1920public class PanelTop extends JPanel {
     
    4647                                JRadioButton button = tops.get(top);
    4748                                if (button.isSelected()) {
     49                                        dlg.mark.setTopMark(top);
    4850                                        button.setBorderPainted(true);
    4951                                } else
     
    5557        public PanelTop(OSeaMAction dia) {
    5658                dlg = dia;
    57                 panelCol = new PanelCol(dlg);
     59                panelCol = new PanelCol(dlg, Obj.TOPMARK);
    5860                panelCol.setBounds(new Rectangle(0, 0, 34, 160));
    5961                this.setLayout(null);
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/MarkCard.java

    r24870 r24875  
    101101
    102102        public void setLightColour() {
    103                 super.setLightColour("W");
     103                super.setLightColour(Col.WHITE);
    104104        }
    105105
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/MarkIsol.java

    r24870 r24875  
    1010import oseam.dialogs.OSeaMAction;
    1111import oseam.seamarks.SeaMark;
     12import oseam.seamarks.SeaMark.Col;
    1213
    1314public class MarkIsol extends SeaMark {
     
    6970
    7071        public void setLightColour() {
    71                 super.setLightColour("W");
     72                super.setLightColour(Col.WHITE);
    7273        }
    7374
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/MarkLat.java

    r24870 r24875  
    99
    1010import oseam.dialogs.OSeaMAction;
     11import oseam.seamarks.SeaMark.Col;
    1112
    1213public class MarkLat extends SeaMark {
     
    157158                if (getRegion() == IALA_A) {
    158159                        if (getCategory() == Cat.LAT_PORT || getCategory() == Cat.LAT_PREF_PORT)
    159                                 super.setLightColour("R");
     160                                super.setLightColour(Col.RED);
    160161                        else
    161                                 super.setLightColour("G");
     162                                super.setLightColour(Col.GREEN);
    162163                } else {
    163164                        if (getCategory() == Cat.LAT_PORT || getCategory() == Cat.LAT_PREF_PORT)
    164                                 super.setLightColour("G");
     165                                super.setLightColour(Col.GREEN);
    165166                        else
    166                                 super.setLightColour("R");
     167                                super.setLightColour(Col.RED);
    167168                }
    168169        }
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/MarkSpec.java

    r24870 r24875  
    1010import oseam.dialogs.OSeaMAction;
    1111import oseam.seamarks.SeaMark;
     12import oseam.seamarks.SeaMark.Col;
    1213
    1314public class MarkSpec extends SeaMark {
     
    9192
    9293        public void setLightColour() {
    93                 super.setLightColour("W");
     94                super.setLightColour(Col.WHITE);
    9495        }
    9596
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java

    r24872 r24875  
    4545
    4646        public enum Col {
    47                 UNKNOWN, WHITE, RED, ORANGE, AMBER, YELLOW, GREEN, BLUE, VIOLET,
    48                 BLACK, RED_GREEN_RED, GREEN_RED_GREEN, RED_WHITE,
     47                UNKNOWN, WHITE, RED, ORANGE, AMBER, YELLOW, GREEN, BLUE, VIOLET, BLACK,
     48                RED_GREEN_RED, GREEN_RED_GREEN, RED_WHITE,
    4949                BLACK_YELLOW, BLACK_YELLOW_BLACK, YELLOW_BLACK, YELLOW_BLACK_YELLOW, BLACK_RED_BLACK
    5050        }
    5151
    52         private Col colour = Col.UNKNOWN;
    53 
    54         public Col getColour() {
    55                 return colour;
    56         }
    57 
    58         public void setColour(Col col) {
    59                 colour = col;
     52        public enum Obj {
     53                BODY, TOPMARK, LIGHT
     54        }
     55
     56        private Col bodyColour = Col.UNKNOWN;
     57
     58        public Col getColour(Obj obj) {
     59                switch (obj) {
     60                case BODY:
     61                        return bodyColour;
     62                case TOPMARK:
     63                        return topColour;
     64                case LIGHT:
     65                        return lightColour[sectorIndex];
     66                }
     67                return Col.UNKNOWN;
     68        }
     69
     70        public void setColour(Obj obj, Col col) {
     71                switch (obj) {
     72                case BODY:
     73                        bodyColour = col;
     74                        break;
     75                case TOPMARK:
     76                        topColour = col;
     77                        break;
     78                case LIGHT:
     79                        lightColour[sectorIndex] = col;
     80                        break;
     81                }
    6082        }
    6183
     
    87109
    88110        public enum Shp {
    89                 UNKNOWN, PILLAR, SPAR, CAN, CONE, SPHERE, BARREL, FLOAT, SUPER, BEACON, TOWER, STAKE, PERCH
     111                UNKNOWN, PILLAR, SPAR, CAN, CONE, SPHERE, BARREL, FLOAT, SUPER,
     112                BEACON, TOWER, STAKE, PERCH
    90113        }
    91114
     
    101124
    102125        public enum Top {
    103                 NONE, CAN, CONE, SPHERE, X_SHAPE, NORTH, SOUTH, EAST, WEST, SPHERES2, BOARD, DIAMOND, TRIANGLE, TRIANGLE_INV, SQUARE, MOORING
    104         }
    105 
    106         private Top TopMark = Top.NONE;
     126                NONE, CAN, CONE, SPHERE, X_SHAPE, NORTH, SOUTH, EAST, WEST, SPHERES2,
     127                BOARD, DIAMOND, TRIANGLE, TRIANGLE_INV, SQUARE, MOORING
     128        }
     129
     130        private Top topMark = Top.NONE;
     131        private Col topColour = Col.UNKNOWN;
    107132
    108133        public boolean hasTopMark() {
    109                 return (TopMark != Top.NONE);
     134                return (topMark != Top.NONE);
    110135        }
    111136
    112137        public void setTopMark(Top top) {
    113                 TopMark = top;
     138                topMark = top;
    114139        }
    115140
     
    221246                Sectored = sectored;
    222247                if (sectored) {
    223                         LightColour[0] = "";
     248                        lightColour[0] = Col.UNKNOWN;
    224249                } else {
    225                         setSectorIndex(0);
     250                        setsectorIndex(0);
    226251                        setLightChar("");
    227                         setLightColour("");
     252                        setLightColour(Col.UNKNOWN);
    228253                        setLightGroup("");
    229254                        setHeight("");
     
    235260        }
    236261
    237         private int SectorIndex = 0;
    238 
    239         public int getSectorIndex() {
    240                 return SectorIndex;
    241         }
    242 
    243         public void setSectorIndex(int sector) {
    244                 SectorIndex = sector;
     262        private int sectorIndex = 0;
     263
     264        public int getsectorIndex() {
     265                return sectorIndex;
     266        }
     267
     268        public void setsectorIndex(int sector) {
     269                sectorIndex = sector;
    245270        }
    246271
     
    248273
    249274        public String getLightChar() {
    250                 if (LightChar[SectorIndex] == null)
     275                if (LightChar[sectorIndex] == null)
    251276                        return (LightChar[0]);
    252                 return LightChar[SectorIndex];
     277                return LightChar[sectorIndex];
    253278        }
    254279
    255280        public void setLightChar(String lightChar) {
    256                 if (SectorIndex == 0) {
     281                if (sectorIndex == 0) {
    257282                        LightChar = new String[10];
    258283                        LightChar[0] = lightChar;
    259284                } else if (LightChar[0].isEmpty())
    260                         LightChar[SectorIndex] = lightChar;
    261         }
    262 
    263         private String[] LightColour = new String[10];
    264 
    265         public String getLightColour() {
    266                 if (LightColour[SectorIndex] == null)
    267                         return (LightColour[0]);
    268                 return LightColour[SectorIndex];
    269         }
    270 
    271         public void setLightColour(String lightColour) {
    272                 LightColour[SectorIndex] = lightColour;
     285                        LightChar[sectorIndex] = lightChar;
     286        }
     287
     288        private Col[] lightColour = new Col[10];
     289
     290        public Col getLightColour() {
     291                if (lightColour[sectorIndex] == null)
     292                        return (lightColour[0]);
     293                return lightColour[sectorIndex];
     294        }
     295
     296        public void setLightColour(Col col) {
     297                lightColour[sectorIndex] = col;
    273298        }
    274299
     
    276301
    277302        public String getLightGroup() {
    278                 if (LightGroup[SectorIndex] == null)
     303                if (LightGroup[sectorIndex] == null)
    279304                        return (LightGroup[0]);
    280                 return LightGroup[SectorIndex];
     305                return LightGroup[sectorIndex];
    281306        }
    282307
    283308        public void setLightGroup(String lightGroup) {
    284                 if (SectorIndex == 0)
     309                if (sectorIndex == 0)
    285310                        LightGroup = new String[10];
    286                 LightGroup[SectorIndex] = lightGroup;
     311                LightGroup[sectorIndex] = lightGroup;
    287312        }
    288313
     
    298323
    299324        public String getHeight() {
    300                 if (Height[SectorIndex] == null)
     325                if (Height[sectorIndex] == null)
    301326                        return (Height[0]);
    302                 return Height[SectorIndex];
     327                return Height[sectorIndex];
    303328        }
    304329
    305330        public void setHeight(String height) {
    306                 if (SectorIndex == 0)
     331                if (sectorIndex == 0)
    307332                        Height = new String[10];
    308                 Height[SectorIndex] = height;
     333                Height[sectorIndex] = height;
    309334        }
    310335
     
    312337
    313338        public String getRange() {
    314                 if (Range[SectorIndex] == null)
     339                if (Range[sectorIndex] == null)
    315340                        return (Range[0]);
    316                 return Range[SectorIndex];
     341                return Range[sectorIndex];
    317342        }
    318343
    319344        public void setRange(String range) {
    320                 if (SectorIndex == 0)
     345                if (sectorIndex == 0)
    321346                        Range = new String[10];
    322                 Range[SectorIndex] = range;
     347                Range[sectorIndex] = range;
    323348        }
    324349
     
    326351
    327352        public String getBearing1() {
    328                 if (Bearing1[SectorIndex] == null)
     353                if (Bearing1[sectorIndex] == null)
    329354                        return (Bearing1[0]);
    330                 return Bearing1[SectorIndex];
     355                return Bearing1[sectorIndex];
    331356        }
    332357
    333358        public void setBearing1(String bearing) {
    334                 if (SectorIndex == 0)
     359                if (sectorIndex == 0)
    335360                        Bearing1 = new String[10];
    336                 Bearing1[SectorIndex] = bearing;
     361                Bearing1[sectorIndex] = bearing;
    337362        }
    338363
     
    340365
    341366        public String getBearing2() {
    342                 if (Bearing2[SectorIndex] == null)
     367                if (Bearing2[sectorIndex] == null)
    343368                        return (Bearing2[0]);
    344                 return Bearing2[SectorIndex];
     369                return Bearing2[sectorIndex];
    345370        }
    346371
    347372        public void setBearing2(String bearing) {
    348                 if (SectorIndex == 0)
     373                if (sectorIndex == 0)
    349374                        Bearing2 = new String[10];
    350                 Bearing2[SectorIndex] = bearing;
     375                Bearing2[sectorIndex] = bearing;
    351376        }
    352377
     
    354379
    355380        public String getRadius() {
    356                 if (Radius[SectorIndex] == null)
     381                if (Radius[sectorIndex] == null)
    357382                        return (Radius[0]);
    358                 return Radius[SectorIndex];
     383                return Radius[sectorIndex];
    359384        }
    360385
    361386        public void setRadius(String radius) {
    362                 if (SectorIndex == 0)
     387                if (sectorIndex == 0)
    363388                        Radius = new String[10];
    364                 Radius[SectorIndex] = radius;
     389                Radius[sectorIndex] = radius;
    365390        }
    366391
     
    368393
    369394        public String getLightPeriod() {
    370                 if (LightPeriod[SectorIndex] == null)
     395                if (LightPeriod[sectorIndex] == null)
    371396                        return (LightPeriod[0]);
    372                 return LightPeriod[SectorIndex];
     397                return LightPeriod[sectorIndex];
    373398        }
    374399
     
    389414                        }
    390415                }
    391                 if (SectorIndex == 0)
     416                if (sectorIndex == 0)
    392417                        LightPeriod = new String[10];
    393                 LightPeriod[SectorIndex] = lightPeriod;
     418                LightPeriod[sectorIndex] = lightPeriod;
    394419        }
    395420
     
    415440                                        String values[] = value.split(":");
    416441                                        if (values[0].equals("red"))
    417                                                 LightColour[index] = "R";
     442                                                lightColour[index] = Col.RED;
    418443                                        else if (values[0].equals("green"))
    419                                                 LightColour[index] = "G";
     444                                                lightColour[index] = Col.GREEN;
    420445                                        else if (values[0].equals("white"))
    421                                                 LightColour[index] = "W";
     446                                                lightColour[index] = Col.WHITE;
    422447                                        if (values.length > 1)
    423448                                                Bearing1[index] = values[1];
     
    433458                                if (key.equals("colour")) {
    434459                                        if (value.equals("red"))
    435                                                 LightColour[index] = "R";
     460                                                lightColour[index] = Col.RED;
    436461                                        else if (value.equals("green"))
    437                                                 LightColour[index] = "G";
     462                                                lightColour[index] = Col.GREEN;
    438463                                        else if (value.equals("white"))
    439                                                 LightColour[index] = "W";
     464                                                lightColour[index] = Col.WHITE;
    440465                                } else if (key.equals("character")) {
    441466                                        LightChar[index] = value;
     
    585610                 * dlg.tfM01RepeatTime.setVisible(true); if (isSectored()) {
    586611                 * dlg.rbM01Fired1.setSelected(false); dlg.rbM01FiredN.setSelected(true); if
    587                  * ((getSectorIndex() != 0) && (!LightChar[0].isEmpty()))
     612                 * ((getsectorIndex() != 0) && (!LightChar[0].isEmpty()))
    588613                 * dlg.cbM01Kennung.setEnabled(false); else
    589614                 * dlg.cbM01Kennung.setEnabled(true);
    590                  * dlg.cbM01Kennung.setSelectedItem(getLightChar()); if ((getSectorIndex()
     615                 * dlg.cbM01Kennung.setSelectedItem(getLightChar()); if ((getsectorIndex()
    591616                 * != 0) && (!LightGroup[0].isEmpty())) dlg.tfM01Group.setEnabled(false);
    592617                 * else dlg.tfM01Group.setEnabled(true);
    593                  * dlg.tfM01Group.setText(getLightGroup()); if ((getSectorIndex() != 0) &&
     618                 * dlg.tfM01Group.setText(getLightGroup()); if ((getsectorIndex() != 0) &&
    594619                 * (!LightPeriod[0].isEmpty())) dlg.tfM01RepeatTime.setEnabled(false); else
    595620                 * dlg.tfM01RepeatTime.setEnabled(true);
    596                  * dlg.tfM01RepeatTime.setText(getLightPeriod()); if ((getSectorIndex() !=
     621                 * dlg.tfM01RepeatTime.setText(getLightPeriod()); if ((getsectorIndex() !=
    597622                 * 0) && (!Height[0].isEmpty())) dlg.tfM01Height.setEnabled(false); else
    598623                 * dlg.tfM01Height.setEnabled(true); dlg.tfM01Height.setText(getHeight());
    599                  * if ((getSectorIndex() != 0) && (!Range[0].isEmpty()))
     624                 * if ((getsectorIndex() != 0) && (!Range[0].isEmpty()))
    600625                 * dlg.tfM01Range.setEnabled(false); else dlg.tfM01Range.setEnabled(true);
    601626                 * dlg.tfM01Range.setText(getRange()); dlg.lM01Sector.setVisible(true);
     
    685710                 * if (Bearing2[i] != null) Main.main.undoRedo.add(new
    686711                 * ChangePropertyCommand(Node, "seamark:light:" + i + ":sector_end",
    687                  * Bearing2[i])); } }
    688                  * if (hasTopMark()) { Main.main.undoRedo.add(new
     712                 * Bearing2[i])); } } if (hasTopMark()) { Main.main.undoRedo.add(new
    689713                 * ChangePropertyCommand(Node, "seamark:topmark:shape", shape));
    690714                 * Main.main.undoRedo.add(new ChangePropertyCommand(Node,
    691                  * "seamark:topmark:colour", colour)); }
    692                  * if (hasRadar()) { Main.main.undoRedo.add(new ChangePropertyCommand(Node,
     715                 * "seamark:topmark:colour", colour)); } if (hasRadar()) {
     716                 * Main.main.undoRedo.add(new ChangePropertyCommand(Node,
    693717                 * "seamark:radar_reflector", "yes")); } if (hasRacon()) { switch (RaType) {
    694718                 * case RATYPE_RACON: Main.main.undoRedo.add(new ChangePropertyCommand(Node,
Note: See TracChangeset for help on using the changeset viewer.