Changeset 24641 in osm for applications/editors/josm/plugins/smed
- Timestamp:
- 2010-12-07T15:25:55+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/oseam/src
- Files:
-
- 33 added
- 7 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/images/FloatButton.svg
r24597 r24641 16 16 version="1.1" 17 17 inkscape:version="0.47 r22583" 18 sodipodi:docname=" BarrelButton.svg"18 sodipodi:docname="FloatButton.svg" 19 19 inkscape:export-filename="/Users/mherring/boatsw/oseam/josm/plugins/smed/plugs/oseam/src/images/BarrelButton_de.png" 20 20 inkscape:export-xdpi="90" … … 2977 2977 inkscape:pageshadow="2" 2978 2978 inkscape:zoom="11.313708" 2979 inkscape:cx=" 31.399999"2979 inkscape:cx="20.705008" 2980 2980 inkscape:cy="9.8235431" 2981 2981 inkscape:document-units="px" 2982 inkscape:current-layer=" layer1"2982 inkscape:current-layer="g2912" 2983 2983 showgrid="true" 2984 2984 inkscape:showpageshadow="false" … … 3005 3005 <dc:type 3006 3006 rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> 3007 <dc:title ></dc:title>3007 <dc:title /> 3008 3008 </cc:Work> 3009 3009 </rdf:RDF> … … 3049 3049 inkscape:groupmode="layer" 3050 3050 inkscape:label="Text EN" 3051 style="display: inline">3051 style="display:none"> 3052 3052 <text 3053 3053 inkscape:export-ydpi="90" … … 3063 3063 x="52.833485" 3064 3064 id="tspan2910" 3065 sodipodi:role="line"> LightFloat</tspan></text>3065 sodipodi:role="line">Float</tspan></text> 3066 3066 </g> 3067 3067 <g 3068 style="display: none"3068 style="display:inline" 3069 3069 inkscape:label="Text DE" 3070 3070 inkscape:groupmode="layer" … … 3084 3084 id="tspan4557" 3085 3085 x="52.94833" 3086 y="1039.3102"> Leuchtfloß</tspan></text>3086 y="1039.3102">Floß</tspan></text> 3087 3087 </g> 3088 3088 </svg> -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/dialogs/OSeaMAction.java
r24630 r24641 72 72 private PanelHaz panelHaz = null; 73 73 private PanelSpec panelSpec = null; 74 private PanelLights panelLights = null; 74 75 75 76 public OSeaMAction() { … … 95 96 panelSpec.setBounds(new Rectangle(105, 0, 295, 160)); 96 97 panelSpec.setVisible(false); 98 panelLights= new PanelLights(); 99 panelLights.setBounds(new Rectangle(105, 0, 295, 160)); 100 panelLights.setVisible(false); 97 101 } 98 102 … … 129 133 oseamPanel.add(panelHaz, null); 130 134 oseamPanel.add(panelSpec, null); 135 oseamPanel.add(panelLights, null); 131 136 typeButtons = new ButtonGroup(); 132 137 typeButtons.add(chanButton); … … 157 162 panelSpec.setVisible(false); 158 163 } 159 lightsButton.setEnabled(!lightsButton.isSelected()); 164 if (lightsButton.isSelected()) { 165 lightsButton.setEnabled(false); 166 panelLights.setVisible(true); 167 } else { 168 lightsButton.setEnabled(true); 169 panelLights.setVisible(false); 170 } 160 171 } 161 172 }; -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages.properties
r24613 r24641 29 29 IsolButton=/images/IsolButton.png 30 30 IsolTip=Isolated danger marks 31 LighthouseButton=/images/LighthouseButton.png 32 LightMajorButton=/images/LightMajorButton.png 33 LightMinorButton=/images/LightMinorButton.png 34 LightVesselButton=/images/LightVesselButton.png 35 LightFloatButton=/images/LightFloatButton.png 31 36 PillarButton=/images/PillarButton.png 32 37 SparButton=/images/SparButton.png -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages_de.properties
r24613 r24641 29 29 IsolButton=/images/IsolButton_de.png 30 30 IsolTip=Isolated danger marks 31 LighthouseButton=/images/LighthouseButton_de.png 32 LightMajorButton=/images/LightMajorButton_de.png 33 LightMinorButton=/images/LightMinorButton_de.png 34 LightVesselButton=/images/LightVesselButton_de.png 35 LightFloatButton=/images/LightFloatButton_de.png 31 36 PillarButton=/images/PillarButton_de.png 32 37 SparButton=/images/SparButton_de.png -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages_en.properties
r24613 r24641 29 29 IsolButton=/images/IsolButton.png 30 30 IsolTip=Isolated danger marks 31 LighthouseButton=/images/LighthouseButton.png 32 LightMajorButton=/images/LightMajorButton.png 33 LightMinorButton=/images/LightMinorButton.png 34 LightVesselButton=/images/LightVesselButton.png 35 LightFloatButton=/images/LightFloatButton.png 31 36 PillarButton=/images/PillarButton.png 32 37 SparButton=/images/SparButton.png -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLights.java
r24636 r24641 22 22 import java.awt.event.ActionListener; 23 23 24 public class Panel Chanextends JPanel {24 public class PanelLights extends JPanel { 25 25 26 26 private ButtonGroup catButtons = null; 27 private JRadioButton portButton = null; 28 private JRadioButton stbdButton = null; 29 private JRadioButton prefPortButton = null; 30 private JRadioButton prefStbdButton = null; 31 private JRadioButton safeWaterButton = null; 32 private PanelPort panelPort = null; 33 private PanelStbd panelStbd = null; 34 private PanelPrefPort panelPrefPort = null; 35 private PanelPrefStbd panelPrefStbd = null; 36 private PanelSafeWater panelSafeWater = null; 27 private JRadioButton houseButton = null; 28 private JRadioButton majorButton = null; 29 private JRadioButton minorButton = null; 30 private JRadioButton vesselButton = null; 31 private JRadioButton floatButton = null; 37 32 38 public Panel Chan() {33 public PanelLights() { 39 34 super(); 40 panelPort = new PanelPort();41 panelPort.setBounds(new Rectangle(105, 0, 185, 160));42 panelPort.setVisible(false);43 panelStbd = new PanelStbd();44 panelStbd.setBounds(new Rectangle(105, 0, 185, 160));45 panelStbd.setVisible(false);46 panelPrefPort = new PanelPrefPort();47 panelPrefPort.setBounds(new Rectangle(105, 0, 185, 160));48 panelPrefPort.setVisible(false);49 panelPrefStbd = new PanelPrefStbd();50 panelPrefStbd.setBounds(new Rectangle(105, 0, 185, 160));51 panelPrefStbd.setVisible(false);52 panelSafeWater = new PanelSafeWater();53 panelSafeWater.setBounds(new Rectangle(105, 0, 185, 160));54 panelSafeWater.setVisible(false);55 35 initialize(); 56 36 } … … 58 38 private void initialize() { 59 39 this.setLayout(null); 60 this.add(panelPort, null); 61 this.add(panelStbd, null); 62 this.add(panelPrefPort, null); 63 this.add(panelPrefStbd, null); 64 this.add(panelSafeWater, null); 65 this.add(getPortButton(), null); 66 this.add(getStbdButton(), null); 67 this.add(getPrefPortButton(), null); 68 this.add(getPrefStbdButton(), null); 69 this.add(getSafeWaterButton(), null); 40 this.add(getHouseButton(), null); 41 this.add(getMajorButton(), null); 42 this.add(getMinorButton(), null); 43 this.add(getVesselButton(), null); 44 this.add(getFloatButton(), null); 70 45 catButtons = new ButtonGroup(); 71 catButtons.add( portButton);72 catButtons.add( stbdButton);73 catButtons.add( prefPortButton);74 catButtons.add( prefStbdButton);75 catButtons.add( safeWaterButton);46 catButtons.add(houseButton); 47 catButtons.add(majorButton); 48 catButtons.add(minorButton); 49 catButtons.add(vesselButton); 50 catButtons.add(floatButton); 76 51 ActionListener alCat = new ActionListener() { 77 52 public void actionPerformed(java.awt.event.ActionEvent e) { 78 if (portButton.isSelected()) { 79 portButton.setEnabled(false); 80 panelPort.setVisible(true); 81 } else { 82 portButton.setEnabled(true); 83 panelPort.setVisible(false); 84 } 85 if (stbdButton.isSelected()) { 86 stbdButton.setEnabled(false); 87 panelStbd.setVisible(true); 88 } else { 89 stbdButton.setEnabled(true); 90 panelStbd.setVisible(false); 91 } 92 if (prefPortButton.isSelected()) { 93 prefPortButton.setEnabled(false); 94 panelPrefPort.setVisible(true); 95 } else { 96 prefPortButton.setEnabled(true); 97 panelPrefPort.setVisible(false); 98 } 99 if (prefStbdButton.isSelected()) { 100 prefStbdButton.setEnabled(false); 101 panelPrefStbd.setVisible(true); 102 } else { 103 prefStbdButton.setEnabled(true); 104 panelPrefStbd.setVisible(false); 105 } 106 if (safeWaterButton.isSelected()) { 107 safeWaterButton.setEnabled(false); 108 panelSafeWater.setVisible(true); 109 } else { 110 safeWaterButton.setEnabled(true); 111 panelSafeWater.setVisible(false); 112 } 53 houseButton.setEnabled(!houseButton.isSelected()); 54 majorButton.setEnabled(!majorButton.isSelected()); 55 minorButton.setEnabled(!minorButton.isSelected()); 56 vesselButton.setEnabled(!vesselButton.isSelected()); 57 floatButton.setEnabled(!floatButton.isSelected()); 113 58 } 114 59 }; 115 portButton.addActionListener(alCat);116 stbdButton.addActionListener(alCat);117 prefPortButton.addActionListener(alCat);118 prefStbdButton.addActionListener(alCat);119 safeWaterButton.addActionListener(alCat);60 houseButton.addActionListener(alCat); 61 majorButton.addActionListener(alCat); 62 minorButton.addActionListener(alCat); 63 vesselButton.addActionListener(alCat); 64 floatButton.addActionListener(alCat); 120 65 } 121 66 122 private JRadioButton getPortButton() { 123 if (portButton == null) { 124 portButton = new JRadioButton(new ImageIcon(getClass().getResource( 125 Messages.getString("PortButton")))); 126 portButton.setBounds(new Rectangle(0, 0, 105, 32)); 127 portButton.setToolTipText(Messages.getString("PortTip")); 67 private JRadioButton getHouseButton() { 68 if (houseButton == null) { 69 houseButton = new JRadioButton(new ImageIcon(getClass().getResource( 70 Messages.getString("LighthouseButton")))); 71 houseButton.setBounds(new Rectangle(0, 0, 105, 32)); 128 72 } 129 return portButton;73 return houseButton; 130 74 } 131 75 132 private JRadioButton getStbdButton() { 133 if (stbdButton == null) { 134 stbdButton = new JRadioButton(new ImageIcon(getClass().getResource( 135 Messages.getString("StbdButton")))); 136 stbdButton.setBounds(new Rectangle(0, 32, 105, 32)); 137 stbdButton.setToolTipText(Messages.getString("StbdTip")); 76 private JRadioButton getMajorButton() { 77 if (majorButton == null) { 78 majorButton = new JRadioButton(new ImageIcon(getClass().getResource( 79 Messages.getString("LightMajorButton")))); 80 majorButton.setBounds(new Rectangle(0, 32, 105, 32)); 138 81 } 139 return stbdButton;82 return majorButton; 140 83 } 141 84 142 private JRadioButton getPrefPortButton() { 143 if (prefPortButton == null) { 144 prefPortButton = new JRadioButton(new ImageIcon(getClass().getResource( 145 Messages.getString("PrefPortButton")))); 146 prefPortButton.setBounds(new Rectangle(0, 64, 105, 32)); 147 prefPortButton.setToolTipText(Messages.getString("PrefPortTip")); 85 private JRadioButton getMinorButton() { 86 if (minorButton == null) { 87 minorButton = new JRadioButton(new ImageIcon(getClass().getResource( 88 Messages.getString("LightMinorButton")))); 89 minorButton.setBounds(new Rectangle(0, 64, 105, 32)); 148 90 } 149 return prefPortButton;91 return minorButton; 150 92 } 151 93 152 private JRadioButton getPrefStbdButton() { 153 if (prefStbdButton == null) { 154 prefStbdButton = new JRadioButton(new ImageIcon(getClass().getResource( 155 Messages.getString("PrefStbdButton")))); 156 prefStbdButton.setBounds(new Rectangle(0, 96, 105, 32)); 157 prefStbdButton.setToolTipText(Messages.getString("PrefStbdTip")); 94 private JRadioButton getVesselButton() { 95 if (vesselButton == null) { 96 vesselButton = new JRadioButton(new ImageIcon(getClass().getResource( 97 Messages.getString("LightVesselButton")))); 98 vesselButton.setBounds(new Rectangle(0, 96, 105, 32)); 158 99 } 159 return prefStbdButton;100 return vesselButton; 160 101 } 161 102 162 private JRadioButton getSafeWaterButton() { 163 if (safeWaterButton == null) { 164 safeWaterButton = new JRadioButton(new ImageIcon(getClass().getResource( 165 Messages.getString("SafeWaterButton")))); 166 safeWaterButton.setBounds(new Rectangle(0, 128, 105, 32)); 167 safeWaterButton.setToolTipText(Messages.getString("SafeWaterTip")); 103 private JRadioButton getFloatButton() { 104 if (floatButton == null) { 105 floatButton = new JRadioButton(new ImageIcon(getClass().getResource( 106 Messages.getString("LightFloatButton")))); 107 floatButton.setBounds(new Rectangle(0, 128, 105, 32)); 168 108 } 169 return safeWaterButton;109 return floatButton; 170 110 } 171 111
Note:
See TracChangeset
for help on using the changeset viewer.