Changeset 26968 in osm


Ignore:
Timestamp:
2011-10-25T20:55:16+02:00 (13 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/PanelCol.java

    r26949 r26968  
    5959                                                                if (stackCol.size() != 0)
    6060                                                                        stackIdx++;
    61                                                                 dlg.mark.addColour(ent, stackIdx, col);
     61                                                                if (stackIdx == 0)
     62                                                                        dlg.mark.setColour(ent, col);
     63                                                                else
     64                                                                        dlg.mark.addColour(ent, stackIdx, col);
    6265                                                                stackCol.add(stackIdx, new JRadioButton(new ImageIcon(getClass().getResource("/images/ColourButton.png"))));
    6366                                                                JRadioButton btnI = stackCol.get(stackIdx);
     
    7376                                                                JRadioButton btnI = stackCol.get(i);
    7477                                                                btnI.setBounds(2, (2 + (i * height)), 30, height);
    75                                                                 btnI.setBackground(dlg.mark.ColMAP.get(dlg.mark.getColour(ent, i)));
     78                                                                btnI.setBackground(oseam.seamarks.SeaMark.ColMAP.get(dlg.mark.getColour(ent, i)));
    7679                                                                if (stackIdx == i) {
    7780                                                                        btnI.setBorderPainted(true);
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelHaz.java

    r26951 r26968  
    123123                                        topmarkButton.setVisible(true);
    124124                                        dlg.panelMain.moreButton.setVisible(true);
     125                                        dlg.panelMain.topButton.setEnabled(true);
     126                                        dlg.panelMain.fogButton.setEnabled(true);
     127                                        dlg.panelMain.radButton.setEnabled(true);
     128                                        dlg.panelMain.litButton.setEnabled(true);
    125129                                } else {
    126130                                        topmarkButton.setVisible(false);
    127131                                        dlg.panelMain.moreButton.setVisible(false);
    128                                 }
    129                                 dlg.mark.paintSign();
     132                                        dlg.panelMain.topButton.setEnabled(false);
     133                                        dlg.panelMain.fogButton.setEnabled(false);
     134                                        dlg.panelMain.radButton.setEnabled(false);
     135                                        dlg.panelMain.litButton.setEnabled(false);
     136                                }
    130137                        }
    131138                }
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLights.java

    r26881 r26968  
    150150                                dlg.panelMain.moreButton.setVisible(false);
    151151                        }
    152                         dlg.mark.paintSign();
    153152                }
    154153        }
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelMain.java

    r26949 r26968  
    282282
    283283        public void clearSelections() {
    284                 panelMore.clearSelections();
     284//              panelMore.clearSelections();
     285                panelMore.setVisible(false);
     286                moreButton.setVisible(false);
    285287                typeButtons.clearSelection();
    286288                alType.actionPerformed(null);
    287                 moreButton.setVisible(false);
    288289                nameBox.setText("");
    289290                alName.actionPerformed(null);
     
    298299                miscButtons.clearSelection();
    299300                alMisc.actionPerformed(null);
    300                 panelChan.clearSelections();
    301                 panelHaz.clearSelections();
    302                 panelSpec.clearSelections();
    303                 panelLights.clearSelections();
    304                 panelTop.clearSelections();
    305                 panelFog.clearSelections();
    306                 panelRadar.clearSelections();
    307                 panelLit.clearSelections();
     301//              panelChan.clearSelections();
     302//              panelHaz.clearSelections();
     303//              panelSpec.clearSelections();
     304//              panelLights.clearSelections();
     305//              panelTop.clearSelections();
     306//              panelFog.clearSelections();
     307//              panelRadar.clearSelections();
     308//              panelLit.clearSelections();
    308309                shapeIcon.setIcon(null);
    309310                lightIcon.setIcon(null);
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelMore.java

    r26949 r26968  
    186186                                regionCButton.setBorderPainted(false);
    187187                        }
    188                         dlg.mark.paintSign();
    189188                }
    190189        };
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelPat.java

    r26949 r26968  
    5252                                        break;
    5353                                }
    54                                 dlg.mark.paintSign();
    5554                        }
    5655                }
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelPort.java

    r26949 r26968  
    104104                                        dlg.panelMain.litButton.setEnabled(false);
    105105                                }
    106                                 dlg.mark.paintSign();
    107106                        }
    108107                }
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSaw.java

    r26949 r26968  
    5252                                        dlg.panelMain.litButton.setEnabled(false);
    5353                                }
    54                                 dlg.mark.paintSign();
    5554                        }
    5655                }
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSpec.java

    r26925 r26968  
    119119                                dlg.panelMain.moreButton.setVisible(false);
    120120                        }
    121                         dlg.mark.paintSign();
    122121                }
    123122        }
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelStbd.java

    r26949 r26968  
    104104                                        dlg.panelMain.litButton.setEnabled(false);
    105105                                }
    106                                 dlg.mark.paintSign();
    107106                        }
    108107                }
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java

    r26951 r26968  
    1818        public SeaMark(OSeaMAction dia) {
    1919                dlg = dia;
    20                 dlg.panelMain.clearSelections();
    2120        }
    2221
     
    405404                case BEACON:
    406405                case FLOAT:
    407                         bodyColour.remove(i);
     406                        if (bodyColour.size() > i)
     407                                bodyColour.remove(i);
    408408                        break;
    409409                case TOPMARK:
    410                         topColour.remove(i);
     410                        if (topColour.size() > i)
     411                                topColour.remove(i);
    411412                        break;
    412413                case LIGHT:
    413                         lightColour.remove(i);
     414                        if (lightColour.size() > i)
     415                                lightColour.remove(i);
    414416                        break;
    415417                }
     
    887889
    888890                switch (GrpMAP.get(getObject())) {
    889                 case NUL:
    890                         dlg.panelMain.clearSelections();
    891                         break;
    892891                case LAT:
    893892                        dlg.panelMain.chanButton.doClick();
Note: See TracChangeset for help on using the changeset viewer.