Changeset 30738 in osm for applications/editors/josm/plugins/smed/src/panels/PanelChr.java
- Timestamp:
- 2014-10-19T01:27:04+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/src/panels/PanelChr.java
r30737 r30738 67 67 } 68 68 String str = charBox.getText(); 69 dlg.panelMain.mark.setLightAtt(Att.CHR, 0, str);69 SmedAction.panelMain.mark.setLightAtt(Att.CHR, 0, str); 70 70 if (!str.contains("Al")) { 71 col2Label.setBackground(SeaMark.ColMAP.get( dlg.panelMain.mark.getLightAtt(Att.COL, 0)));72 dlg.panelMain.mark.setLightAtt(Att.ALT, 0, Col.UNKCOL);71 col2Label.setBackground(SeaMark.ColMAP.get(SmedAction.panelMain.mark.getLightAtt(Att.COL, 0))); 72 SmedAction.panelMain.mark.setLightAtt(Att.ALT, 0, Col.UNKCOL); 73 73 } else { 74 col2Label.setBackground(SeaMark.ColMAP.get( dlg.panelMain.mark.getLightAtt(Att.ALT, 0)));74 col2Label.setBackground(SeaMark.ColMAP.get(SmedAction.panelMain.mark.getLightAtt(Att.ALT, 0))); 75 75 } 76 76 } … … 80 80 public void focusLost(java.awt.event.FocusEvent e) { 81 81 String str = charBox.getText(); 82 dlg.panelMain.mark.setLightAtt(Att.CHR, 0, str);82 SmedAction.panelMain.mark.setLightAtt(Att.CHR, 0, str); 83 83 EnumSet<Chr> set = EnumSet.noneOf(Chr.class); 84 84 for (EnumSet<Chr> map : SeaMark.ChrMAP.keySet()) { … … 99 99 } 100 100 if (!str.contains("Al")) { 101 col2Label.setBackground(SeaMark.ColMAP.get( dlg.panelMain.mark.getLightAtt(Att.COL, 0)));102 dlg.panelMain.mark.setLightAtt(Att.ALT, 0, Col.UNKCOL);101 col2Label.setBackground(SeaMark.ColMAP.get(SmedAction.panelMain.mark.getLightAtt(Att.COL, 0))); 102 SmedAction.panelMain.mark.setLightAtt(Att.ALT, 0, Col.UNKCOL); 103 103 } else { 104 col2Label.setBackground(SeaMark.ColMAP.get( dlg.panelMain.mark.getLightAtt(Att.ALT, 0)));104 col2Label.setBackground(SeaMark.ColMAP.get(SmedAction.panelMain.mark.getLightAtt(Att.ALT, 0))); 105 105 } 106 106 } … … 141 141 142 142 public void syncPanel() { 143 String str = (String) dlg.panelMain.mark.getLightAtt(Att.CHR, 0);143 String str = (String)SmedAction.panelMain.mark.getLightAtt(Att.CHR, 0); 144 144 charBox.setText(str); 145 145 EnumSet<Chr> set = EnumSet.noneOf(Chr.class); … … 151 151 } 152 152 if (!str.contains("Al")) { 153 col2Label.setBackground(SeaMark.ColMAP.get( dlg.panelMain.mark.getLightAtt(Att.COL, 0)));153 col2Label.setBackground(SeaMark.ColMAP.get(SmedAction.panelMain.mark.getLightAtt(Att.COL, 0))); 154 154 } else { 155 col2Label.setBackground(SeaMark.ColMAP.get( dlg.panelMain.mark.getLightAtt(Att.ALT, 0)));155 col2Label.setBackground(SeaMark.ColMAP.get(SmedAction.panelMain.mark.getLightAtt(Att.ALT, 0))); 156 156 } 157 col1Label.setBackground(SeaMark.ColMAP.get( dlg.panelMain.mark.getLightAtt(Att.COL, 0)));157 col1Label.setBackground(SeaMark.ColMAP.get(SmedAction.panelMain.mark.getLightAtt(Att.COL, 0))); 158 158 for (Chr chr : buttons.keySet()) { 159 159 JToggleButton button = buttons.get(chr);
Note:
See TracChangeset
for help on using the changeset viewer.