Changeset 26099 in osm for applications/editors/josm/plugins
- Timestamp:
- 2011-06-05T17:06:59+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/oseam/src
- Files:
-
- 4 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/images/MorseButton.svg
r26087 r26099 17 17 inkscape:version="0.48.1 r9760" 18 18 sodipodi:docname="MorseButton.svg" 19 inkscape:export-filename="/Users/mherring/boatsw/oseam/josm/plugins/smed/plugs/oseam/src/images/ OccultingButton.png"19 inkscape:export-filename="/Users/mherring/boatsw/oseam/josm/plugins/smed/plugs/oseam/src/images/MorseButton.png" 20 20 inkscape:export-xdpi="90" 21 21 inkscape:export-ydpi="90" … … 2895 2895 inkscape:pageopacity="0.0" 2896 2896 inkscape:pageshadow="2" 2897 inkscape:zoom=" 22.627416"2898 inkscape:cx=" 13.382537"2899 inkscape:cy=" 8.0491388"2897 inkscape:zoom="31.09502" 2898 inkscape:cx="20.000001" 2899 inkscape:cy="7.9999435" 2900 2900 inkscape:document-units="px" 2901 2901 inkscape:current-layer="layer1" … … 2907 2907 inkscape:window-x="0" 2908 2908 inkscape:window-y="0" 2909 inkscape:window-maximized=" 0">2909 inkscape:window-maximized="1"> 2910 2910 <inkscape:grid 2911 2911 type="xygrid" … … 2949 2949 style="fill:#ffffff;fill-opacity:1;stroke:none" 2950 2950 id="rect4197" 2951 width="12.076985" 2952 height="6" 2953 x="1.2135795" 2954 y="1041.3622" 2955 inkscape:export-filename="/Users/mherring/boatsw/oseam/josm/plugins/smed/plugs/oseam/src/images/MorseButton.png" 2956 inkscape:export-xdpi="90" 2957 inkscape:export-ydpi="90" /> 2958 <rect 2959 y="1041.3622" 2960 x="15.079301" 2961 height="6" 2962 width="4.0256615" 2963 id="rect4199" 2964 style="fill:#ffffff;fill-opacity:1;stroke:none" 2951 width="12" 2952 height="4" 2953 x="1" 2954 y="1042.3622" 2965 2955 inkscape:export-filename="/Users/mherring/boatsw/oseam/josm/plugins/smed/plugs/oseam/src/images/MorseButton.png" 2966 2956 inkscape:export-xdpi="90" … … 2969 2959 style="fill:#ffffff;fill-opacity:1;stroke:none" 2970 2960 id="rect4201" 2971 width="12 .076985"2972 height=" 6"2973 x="2 6.709436"2974 y="104 1.3622"2961 width="12" 2962 height="4" 2963 x="27" 2964 y="1042.3622" 2975 2965 inkscape:export-filename="/Users/mherring/boatsw/oseam/josm/plugins/smed/plugs/oseam/src/images/MorseButton.png" 2976 2966 inkscape:export-xdpi="90" 2977 2967 inkscape:export-ydpi="90" /> 2978 <rect 2968 <path 2969 sodipodi:type="arc" 2979 2970 style="fill:#ffffff;fill-opacity:1;stroke:none" 2980 id="rect4260" 2981 width="4.0256615" 2982 height="6" 2983 x="20.895039" 2984 y="1041.3622" 2985 inkscape:export-filename="/Users/mherring/boatsw/oseam/josm/plugins/smed/plugs/oseam/src/images/MorseButton.png" 2986 inkscape:export-xdpi="90" 2987 inkscape:export-ydpi="90" /> 2971 id="path8577" 2972 sodipodi:cx="17.279922" 2973 sodipodi:cy="6.8297086" 2974 sodipodi:rx="1.5909903" 2975 sodipodi:ry="2.0550292" 2976 d="m 18.870913,6.8297086 a 1.5909903,2.0550292 0 1 1 -3.181981,0 1.5909903,2.0550292 0 1 1 3.181981,0 z" 2977 transform="matrix(1.2570787,0,0,0.9732222,-4.7222225,1037.7154)" /> 2978 <path 2979 transform="matrix(1.2570787,0,0,0.9732222,1.2777775,1037.7154)" 2980 d="m 18.870913,6.8297086 a 1.5909903,2.0550292 0 1 1 -3.181981,0 1.5909903,2.0550292 0 1 1 3.181981,0 z" 2981 sodipodi:ry="2.0550292" 2982 sodipodi:rx="1.5909903" 2983 sodipodi:cy="6.8297086" 2984 sodipodi:cx="17.279922" 2985 id="path9087" 2986 style="fill:#ffffff;fill-opacity:1;stroke:none" 2987 sodipodi:type="arc" /> 2988 2988 </g> 2989 2989 </svg> -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages.properties
r26096 r26099 79 79 Character=Character 80 80 81 Single=Single light 82 Sector=Sectored light 83 Group=Group 84 Period=Period 85 Sequence=Sequence 86 Height=Height 87 Range=Range 88 Category=Category 89 NoneSpecified=None specified 90 Vert2=Vertically disposed x2 91 Visibility=Visibility 92 Intensified=intensified 93 Unintensified=unintensified 94 PartiallyObscured=Partially obscured 95 Orientation=Orientation 96 Exhibition=Exhibition 97 24h=24h 98 Day=day 99 Night=night 100 Fog=fog 101 81 102 NoColour=No colour 82 103 White=White -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages_de.properties
r26096 r26099 79 79 Character=Character 80 80 81 Single=Single light 82 Sector=Sectored light 83 Group=Gruppe 84 Period=Dauer 85 Sequence=Sequence 86 Height=Höhe 87 Range=Bereich 88 Category=Kategorie 89 NoneSpecified=None specified 90 Vert2=Vertically disposed x2 91 Visibility=Visibility 92 Intensified=intensified 93 Unintensified=unintensified 94 PartiallyObscured=Partially obscured 95 Orientation=Orientation 96 Exhibition=Exhibition 97 24h=24h 98 Day=day 99 Night=night 100 Fog=fog 101 81 102 NoColour=No colour 82 103 White=White -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages_en.properties
r26096 r26099 79 79 Character=Character 80 80 81 Single=Single light 82 Sector=Sectored light 83 Group=Group 84 Period=Period 85 Sequence=Sequence 86 Height=Height 87 Range=Range 88 Category=Category 89 NoneSpecified=None specified 90 Vert2=Vertically disposed x2 91 Visibility=Visibility 92 Intensified=intensified 93 Unintensified=unintensified 94 PartiallyObscured=Partially obscured 95 Orientation=Orientation 96 Exhibition=Exhibition 97 24h=24h 98 Day=day 99 Night=night 100 Fog=fog 101 81 102 NoColour=No colour 82 103 White=White -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLit.java
r26087 r26099 1 1 package oseam.panels; 2 2 3 import javax.swing.BorderFactory; 4 import javax.swing.ButtonGroup; 5 import javax.swing.ImageIcon; 6 import javax.swing.JLabel; 3 7 import javax.swing.JPanel; 4 8 import javax.swing.JRadioButton; 9 import javax.swing.JTextField; 10 import javax.swing.JComboBox; 11 import javax.swing.SwingConstants; 12 13 import java.awt.Color; 5 14 import java.awt.Rectangle; 6 15 import java.awt.event.ActionListener; 16 17 import oseam.Messages; 7 18 import oseam.dialogs.OSeaMAction; 8 19 import oseam.seamarks.SeaMark.Ent; … … 11 22 12 23 private OSeaMAction dlg; 13 public PanelCol panelCol = null; 14 public PanelChr panelChr = null; 24 public PanelCol panelCol; 25 public PanelChr panelChr; 26 public JLabel groupLabel; 27 public JTextField groupBox; 28 public JLabel periodLabel; 29 public JTextField periodBox; 30 public JLabel sequenceLabel; 31 public JTextField sequenceBox; 32 public JLabel visibilityLabel; 33 public JComboBox visibilityBox; 34 public JLabel heightLabel; 35 public JTextField heightBox; 36 public JLabel rangeLabel; 37 public JTextField rangeBox; 38 public JLabel orientationLabel; 39 public JTextField orientationBox; 40 public JLabel categoryLabel; 41 public JComboBox categoryBox; 42 public JLabel exhibitionLabel; 43 public JComboBox exhibitionBox; 44 private ButtonGroup typeButtons; 45 public JRadioButton singleButton; 46 public JRadioButton sectorButton; 47 private ActionListener alType; 48 private ActionListener alGroupBox; 49 private ActionListener alPeriodBox; 50 private ActionListener alSequenceBox; 51 private ActionListener alVisibilityBox; 52 private ActionListener alHeightBox; 53 private ActionListener alRangeBox; 54 private ActionListener alOrientationBox; 55 private ActionListener alCategoryBox; 56 private ActionListener alExhibitionBox; 15 57 16 58 public PanelLit(OSeaMAction dia) { … … 24 66 this.add(panelChr, null); 25 67 this.add(panelCol, null); 68 69 alType = new ActionListener() { 70 public void actionPerformed(java.awt.event.ActionEvent e) { 71 singleButton.setBorderPainted(singleButton.isSelected()); 72 sectorButton.setBorderPainted(sectorButton.isSelected()); 73 dlg.mark.paintSign(); 74 } 75 }; 76 typeButtons = new ButtonGroup(); 77 singleButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SingleButton.png"))); 78 this.add(getTypeButton(singleButton, 280, 125, 34, 30, "Single"), null); 79 sectorButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SectorButton.png"))); 80 this.add(getTypeButton(sectorButton, 315, 125, 34, 30, "Sector"), null); 81 82 alGroupBox = new ActionListener() { 83 public void actionPerformed(java.awt.event.ActionEvent e) { 84 String str = groupBox.getText(); 85 } 86 }; 87 groupLabel = new JLabel(Messages.getString("Group"), SwingConstants.CENTER); 88 groupLabel.setBounds(new Rectangle(123, 0, 65, 20)); 89 this.add(groupLabel, null); 90 groupBox = new JTextField(); 91 groupBox.setBounds(new Rectangle(135, 20, 40, 20)); 92 this.add(groupBox, null); 93 groupBox.addActionListener(alGroupBox); 94 95 alPeriodBox = new ActionListener() { 96 public void actionPerformed(java.awt.event.ActionEvent e) { 97 String str = periodBox.getText(); 98 } 99 }; 100 periodLabel = new JLabel(Messages.getString("Period"), SwingConstants.CENTER); 101 periodLabel.setBounds(new Rectangle(123, 40, 65, 20)); 102 this.add(periodLabel, null); 103 periodBox = new JTextField(); 104 periodBox.setBounds(new Rectangle(135, 60, 40, 20)); 105 periodBox.setHorizontalAlignment(SwingConstants.CENTER); 106 this.add(periodBox, null); 107 periodBox.addActionListener(alPeriodBox); 108 109 alHeightBox = new ActionListener() { 110 public void actionPerformed(java.awt.event.ActionEvent e) { 111 String str = heightBox.getText(); 112 } 113 }; 114 heightLabel = new JLabel(Messages.getString("Height"), SwingConstants.CENTER); 115 heightLabel.setBounds(new Rectangle(123, 80, 65, 20)); 116 this.add(heightLabel, null); 117 heightBox = new JTextField(); 118 heightBox.setBounds(new Rectangle(135, 100, 40, 20)); 119 heightBox.setHorizontalAlignment(SwingConstants.CENTER); 120 this.add(heightBox, null); 121 heightBox.addActionListener(alHeightBox); 122 123 alRangeBox = new ActionListener() { 124 public void actionPerformed(java.awt.event.ActionEvent e) { 125 String str = rangeBox.getText(); 126 } 127 }; 128 rangeLabel = new JLabel(Messages.getString("Range"), SwingConstants.CENTER); 129 rangeLabel.setBounds(new Rectangle(123, 120, 65, 20)); 130 this.add(rangeLabel, null); 131 rangeBox = new JTextField(); 132 rangeBox.setBounds(new Rectangle(135, 140, 40, 20)); 133 rangeBox.setHorizontalAlignment(SwingConstants.CENTER); 134 this.add(rangeBox, null); 135 rangeBox.addActionListener(alRangeBox); 136 137 alSequenceBox = new ActionListener() { 138 public void actionPerformed(java.awt.event.ActionEvent e) { 139 String str = sequenceBox.getText(); 140 } 141 }; 142 sequenceLabel = new JLabel(Messages.getString("Sequence"), SwingConstants.CENTER); 143 sequenceLabel.setBounds(new Rectangle(188, 120, 80, 20)); 144 this.add(sequenceLabel, null); 145 sequenceBox = new JTextField(); 146 sequenceBox.setBounds(new Rectangle(183, 140, 90, 20)); 147 sequenceBox.setHorizontalAlignment(SwingConstants.CENTER); 148 this.add(sequenceBox, null); 149 sequenceBox.addActionListener(alSequenceBox); 150 151 alCategoryBox = new ActionListener() { 152 public void actionPerformed(java.awt.event.ActionEvent e) { 153 } 154 }; 155 categoryLabel = new JLabel(Messages.getString("Category"), SwingConstants.CENTER); 156 categoryLabel.setBounds(new Rectangle(185, 0, 165, 20)); 157 this.add(categoryLabel, null); 158 categoryBox = new JComboBox(); 159 categoryBox.setBounds(new Rectangle(185, 20, 165, 20)); 160 this.add(categoryBox, null); 161 categoryBox.addActionListener(alCategoryBox); 162 categoryBox.addItem(Messages.getString("NoneSpecified")); 163 categoryBox.addItem(Messages.getString("Vert2")); 164 165 alVisibilityBox = new ActionListener() { 166 public void actionPerformed(java.awt.event.ActionEvent e) { 167 } 168 }; 169 visibilityLabel = new JLabel(Messages.getString("Visibility"), SwingConstants.CENTER); 170 visibilityLabel.setBounds(new Rectangle(185, 40, 165, 20)); 171 this.add(visibilityLabel, null); 172 visibilityBox = new JComboBox(); 173 visibilityBox.setBounds(new Rectangle(185, 60, 165, 20)); 174 this.add(visibilityBox, null); 175 visibilityBox.addActionListener(alVisibilityBox); 176 visibilityBox.addItem(Messages.getString("NoneSpecified")); 177 visibilityBox.addItem(Messages.getString("Intensified")); 178 visibilityBox.addItem(Messages.getString("Unintensified")); 179 visibilityBox.addItem(Messages.getString("PartiallyObscured")); 180 181 alExhibitionBox = new ActionListener() { 182 public void actionPerformed(java.awt.event.ActionEvent e) { 183 } 184 }; 185 exhibitionLabel = new JLabel(Messages.getString("Exhibition"), SwingConstants.CENTER); 186 exhibitionLabel.setBounds(new Rectangle(280, 80, 70, 20)); 187 this.add(exhibitionLabel, null); 188 exhibitionBox = new JComboBox(); 189 exhibitionBox.setBounds(new Rectangle(280, 100, 70, 20)); 190 this.add(exhibitionBox, null); 191 exhibitionBox.addActionListener(alExhibitionBox); 192 exhibitionBox.addItem(Messages.getString("24h")); 193 exhibitionBox.addItem(Messages.getString("Day")); 194 exhibitionBox.addItem(Messages.getString("Night")); 195 exhibitionBox.addItem(Messages.getString("Fog")); 196 197 alOrientationBox = new ActionListener() { 198 public void actionPerformed(java.awt.event.ActionEvent e) { 199 String str = orientationBox.getText(); 200 } 201 }; 202 orientationLabel = new JLabel(Messages.getString("Orientation"), SwingConstants.CENTER); 203 orientationLabel.setBounds(new Rectangle(188, 80, 80, 20)); 204 this.add(orientationLabel, null); 205 orientationBox = new JTextField(); 206 orientationBox.setBounds(new Rectangle(208, 100, 40, 20)); 207 orientationBox.setHorizontalAlignment(SwingConstants.CENTER); 208 this.add(orientationBox, null); 209 orientationBox.addActionListener(alOrientationBox); 26 210 } 27 211 212 private JRadioButton getTypeButton(JRadioButton button, int x, int y, int w, int h, String tip) { 213 button.setBounds(new Rectangle(x, y, w, h)); 214 button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 215 button.setToolTipText(Messages.getString(tip)); 216 button.addActionListener(alType); 217 typeButtons.add(button); 218 return button; 219 } 220 28 221 public void clearSelections() { 29 222 -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelMain.java
r26096 r26099 81 81 82 82 shapeIcon = new JLabel(); 83 shapeIcon.setBounds(new Rectangle(2 65, 0, 130, 185));83 shapeIcon.setBounds(new Rectangle(220, 0, 130, 185)); 84 84 this.add(shapeIcon, null); 85 85 lightIcon = new JLabel(); 86 lightIcon.setBounds(new Rectangle(2 65, 0, 125, 185));86 lightIcon.setBounds(new Rectangle(220, 0, 130, 185)); 87 87 this.add(lightIcon, null); 88 88 topIcon = new JLabel(); 89 topIcon.setBounds(new Rectangle(2 65, 0, 125, 185));89 topIcon.setBounds(new Rectangle(220, 0, 130, 185)); 90 90 this.add(topIcon, null); 91 91 radarIcon = new JLabel(); 92 radarIcon.setBounds(new Rectangle(2 65, 0, 130, 185));92 radarIcon.setBounds(new Rectangle(220, 0, 130, 185)); 93 93 this.add(radarIcon, null); 94 94 fogIcon = new JLabel(); 95 fogIcon.setBounds(new Rectangle(2 65, 0, 125, 185));95 fogIcon.setBounds(new Rectangle(220, 0, 130, 185)); 96 96 this.add(fogIcon, null); 97 97
Note:
See TracChangeset
for help on using the changeset viewer.