Changeset 24556 in osm for applications/editors/josm/plugins/smed
- Timestamp:
- 2010-12-03T15:18:51+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/oseam/src/oseam
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/OSeaM.java
r24546 r24556 72 72 @Override 73 73 public String getInfo() { 74 return "Seamark editor";74 return Messages.getString("TabInfo"); 75 75 } 76 76 -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/dialogs/OSeaMAction.java
r24546 r24556 38 38 import oseam.OSeaM; 39 39 40 41 40 public class OSeaMAction { 42 41 … … 46 45 private JButton specButton = null; 47 46 private JButton lightButton = null; 48 47 49 48 public OSeaMAction() { 50 49 51 50 String str = Main.pref.get("mappaint.style.sources"); 52 51 if (!str.contains("dev.openseamap.org")) { … … 67 66 oseamPanel.setLayout(null); 68 67 oseamPanel.setSize(new Dimension(400, 360)); 69 //System.out.println("file=" + Messages.getString("ChanButton"));70 oseamPanel.add(getChanButton(), 71 oseamPanel.add(getHazButton(), 72 oseamPanel.add(getSpecButton(), 73 oseamPanel.add(getLightButton(), 68 // System.out.println("file=" + Messages.getString("ChanButton")); 69 oseamPanel.add(getChanButton(), null); 70 oseamPanel.add(getHazButton(), null); 71 oseamPanel.add(getSpecButton(), null); 72 oseamPanel.add(getLightButton(), null); 74 73 } 75 74 return oseamPanel; … … 79 78 if (chanButton == null) { 80 79 chanButton = new JButton(); 81 chanButton.setBounds(new Rectangle( 340, 56, 50, 50));80 chanButton.setBounds(new Rectangle(5, 5, 50, 50)); 82 81 chanButton.setText(""); 83 chanButton.setIcon(new ImageIcon(getClass().getResource(Messages.getString("ChanButton")))); 84 chanButton.setToolTipText("Channel Marks"); 82 chanButton.setIcon(new ImageIcon(getClass().getResource( 83 Messages.getString("ChanButton")))); 84 chanButton.setToolTipText(Messages.getString("ChanTip")); 85 85 chanButton.addActionListener(new java.awt.event.ActionListener() { 86 86 public void actionPerformed(java.awt.event.ActionEvent e) { 87 /* panelLimits.setVisible(false); 88 panelServices.setVisible(false); 89 panelEnv.setVisible(false); 90 panelRelations.setVisible(false); 91 panelGeneral.setVisible(true); 92 */ } 87 /* 88 * panelLimits.setVisible(false); 89 * panelServices.setVisible(false); 90 * panelEnv.setVisible(false); 91 * panelRelations.setVisible(false); 92 * panelGeneral.setVisible(true); 93 */} 93 94 }); 94 95 } … … 99 100 if (hazButton == null) { 100 101 hazButton = new JButton(); 101 hazButton.setBounds(new Rectangle( 340, 111, 50, 50));102 hazButton.setBounds(new Rectangle(60, 5, 50, 50)); 102 103 hazButton.setText(""); 103 hazButton.setIcon(new ImageIcon(getClass().getResource(Messages.getString("HazButton")))); 104 hazButton.setToolTipText("Danger Marks"); 104 hazButton.setIcon(new ImageIcon(getClass().getResource( 105 Messages.getString("HazButton")))); 106 hazButton.setToolTipText(Messages.getString("HazTip")); 105 107 hazButton.addActionListener(new java.awt.event.ActionListener() { 106 108 public void actionPerformed(java.awt.event.ActionEvent e) { 107 /* panelLimits.setVisible(false); 108 panelServices.setVisible(false); 109 panelEnv.setVisible(false); 110 panelRelations.setVisible(false); 111 panelGeneral.setVisible(true); 112 */ } 109 /* 110 * panelLimits.setVisible(false); 111 * panelServices.setVisible(false); 112 * panelEnv.setVisible(false); 113 * panelRelations.setVisible(false); 114 * panelGeneral.setVisible(true); 115 */} 113 116 }); 114 117 } … … 119 122 if (specButton == null) { 120 123 specButton = new JButton(); 121 specButton.setBounds(new Rectangle( 340, 166, 50, 50));124 specButton.setBounds(new Rectangle(115, 5, 50, 50)); 122 125 specButton.setText(""); 123 specButton.setIcon(new ImageIcon(getClass().getResource(Messages.getString("SpecButton")))); 124 specButton.setToolTipText("Special Marks"); 126 specButton.setIcon(new ImageIcon(getClass().getResource( 127 Messages.getString("SpecButton")))); 128 specButton.setToolTipText(Messages.getString("SpecTip")); 125 129 specButton.addActionListener(new java.awt.event.ActionListener() { 126 130 public void actionPerformed(java.awt.event.ActionEvent e) { 127 /* panelLimits.setVisible(false); 128 panelServices.setVisible(false); 129 panelEnv.setVisible(false); 130 panelRelations.setVisible(false); 131 panelGeneral.setVisible(true); 132 */ } 131 /* 132 * panelLimits.setVisible(false); 133 * panelServices.setVisible(false); 134 * panelEnv.setVisible(false); 135 * panelRelations.setVisible(false); 136 * panelGeneral.setVisible(true); 137 */} 133 138 }); 134 139 } … … 139 144 if (lightButton == null) { 140 145 lightButton = new JButton(); 141 lightButton.setBounds(new Rectangle( 340, 221, 50, 50));146 lightButton.setBounds(new Rectangle(170, 5, 50, 50)); 142 147 lightButton.setText(""); 143 lightButton.setIcon(new ImageIcon(getClass().getResource(Messages.getString("LightsButton")))); 144 lightButton.setToolTipText("Light Marks"); 148 lightButton.setIcon(new ImageIcon(getClass().getResource( 149 Messages.getString("LightsButton")))); 150 lightButton.setToolTipText(Messages.getString("LightsTip")); 145 151 lightButton.addActionListener(new java.awt.event.ActionListener() { 146 152 public void actionPerformed(java.awt.event.ActionEvent e) { 147 /* panelLimits.setVisible(false); 148 panelServices.setVisible(false); 149 panelEnv.setVisible(false); 150 panelRelations.setVisible(false); 151 panelGeneral.setVisible(true); 152 */ } 153 /* 154 * panelLimits.setVisible(false); 155 * panelServices.setVisible(false); 156 * panelEnv.setVisible(false); 157 * panelRelations.setVisible(false); 158 * panelGeneral.setVisible(true); 159 */} 153 160 }); 154 161 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages.properties
r24546 r24556 1 TabInfo=Seamark editor 1 2 TabName=Seamarks 2 3 ChanButton=/images/ChanButton.png 4 ChanTip=Channel marks 3 5 HazButton=/images/HazButton.png 6 HazTip=Danger marks 4 7 SpecButton=/images/SpecButton.png 8 SpecTip=Special marks 5 9 LightsButton=/images/LightsButton.png 10 LightsTip=Lights marks -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages_de.properties
r24546 r24556 1 TabInfo=Seamark editor 1 2 TabName=Seezeichen 2 3 ChanButton=/images/ChanButton_de.png 4 ChanTip=Channel marks 3 5 HazButton=/images/HazButton_de.png 6 HazTip=Danger marks 4 7 SpecButton=/images/SpecButton_de.png 8 SpecTip=Special marks 5 9 LightsButton=/images/LightsButton_de.png 10 LightsTip=Lights marks -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages_en.properties
r24546 r24556 1 TabInfo=Seamark editor 1 2 TabName=Seamarks 2 3 ChanButton=/images/ChanButton.png 4 ChanTip=Channel marks 3 5 HazButton=/images/HazButton.png 6 HazTip=Danger marks 4 7 SpecButton=/images/SpecButton.png 8 SpecTip=Special marks 5 9 LightsButton=/images/LightsButton.png 10 LightsTip=Lights marks
Note:
See TracChangeset
for help on using the changeset viewer.