Changeset 26099 in osm for applications/editors


Ignore:
Timestamp:
2011-06-05T17:06:59+02:00 (13 years ago)
Author:
malcolmh
Message:

save

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  
    1717   inkscape:version="0.48.1 r9760"
    1818   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"
    2020   inkscape:export-xdpi="90"
    2121   inkscape:export-ydpi="90"
     
    28952895     inkscape:pageopacity="0.0"
    28962896     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"
    29002900     inkscape:document-units="px"
    29012901     inkscape:current-layer="layer1"
     
    29072907     inkscape:window-x="0"
    29082908     inkscape:window-y="0"
    2909      inkscape:window-maximized="0">
     2909     inkscape:window-maximized="1">
    29102910    <inkscape:grid
    29112911       type="xygrid"
     
    29492949       style="fill:#ffffff;fill-opacity:1;stroke:none"
    29502950       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"
    29652955       inkscape:export-filename="/Users/mherring/boatsw/oseam/josm/plugins/smed/plugs/oseam/src/images/MorseButton.png"
    29662956       inkscape:export-xdpi="90"
     
    29692959       style="fill:#ffffff;fill-opacity:1;stroke:none"
    29702960       id="rect4201"
    2971        width="12.076985"
    2972        height="6"
    2973        x="26.709436"
    2974        y="1041.3622"
     2961       width="12"
     2962       height="4"
     2963       x="27"
     2964       y="1042.3622"
    29752965       inkscape:export-filename="/Users/mherring/boatsw/oseam/josm/plugins/smed/plugs/oseam/src/images/MorseButton.png"
    29762966       inkscape:export-xdpi="90"
    29772967       inkscape:export-ydpi="90" />
    2978     <rect
     2968    <path
     2969       sodipodi:type="arc"
    29792970       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" />
    29882988  </g>
    29892989</svg>
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages.properties

    r26096 r26099  
    7979Character=Character
    8080
     81Single=Single light
     82Sector=Sectored light
     83Group=Group
     84Period=Period
     85Sequence=Sequence
     86Height=Height
     87Range=Range
     88Category=Category
     89NoneSpecified=None specified
     90Vert2=Vertically disposed x2
     91Visibility=Visibility
     92Intensified=intensified
     93Unintensified=unintensified
     94PartiallyObscured=Partially obscured
     95Orientation=Orientation
     96Exhibition=Exhibition
     9724h=24h
     98Day=day
     99Night=night
     100Fog=fog
     101
    81102NoColour=No colour
    82103White=White
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages_de.properties

    r26096 r26099  
    7979Character=Character
    8080
     81Single=Single light
     82Sector=Sectored light
     83Group=Gruppe
     84Period=Dauer
     85Sequence=Sequence
     86Height=Höhe
     87Range=Bereich
     88Category=Kategorie
     89NoneSpecified=None specified
     90Vert2=Vertically disposed x2
     91Visibility=Visibility
     92Intensified=intensified
     93Unintensified=unintensified
     94PartiallyObscured=Partially obscured
     95Orientation=Orientation
     96Exhibition=Exhibition
     9724h=24h
     98Day=day
     99Night=night
     100Fog=fog
     101
    81102NoColour=No colour
    82103White=White
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages_en.properties

    r26096 r26099  
    7979Character=Character
    8080
     81Single=Single light
     82Sector=Sectored light
     83Group=Group
     84Period=Period
     85Sequence=Sequence
     86Height=Height
     87Range=Range
     88Category=Category
     89NoneSpecified=None specified
     90Vert2=Vertically disposed x2
     91Visibility=Visibility
     92Intensified=intensified
     93Unintensified=unintensified
     94PartiallyObscured=Partially obscured
     95Orientation=Orientation
     96Exhibition=Exhibition
     9724h=24h
     98Day=day
     99Night=night
     100Fog=fog
     101
    81102NoColour=No colour
    82103White=White
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLit.java

    r26087 r26099  
    11package oseam.panels;
    22
     3import javax.swing.BorderFactory;
     4import javax.swing.ButtonGroup;
     5import javax.swing.ImageIcon;
     6import javax.swing.JLabel;
    37import javax.swing.JPanel;
    4 
     8import javax.swing.JRadioButton;
     9import javax.swing.JTextField;
     10import javax.swing.JComboBox;
     11import javax.swing.SwingConstants;
     12
     13import java.awt.Color;
    514import java.awt.Rectangle;
    6 
     15import java.awt.event.ActionListener;
     16
     17import oseam.Messages;
    718import oseam.dialogs.OSeaMAction;
    819import oseam.seamarks.SeaMark.Ent;
     
    1122
    1223        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;
    1557
    1658        public PanelLit(OSeaMAction dia) {
     
    2466                this.add(panelChr, null);
    2567                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);
    26210        }
    27211
     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
    28221        public void clearSelections() {
    29222
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelMain.java

    r26096 r26099  
    8181
    8282                shapeIcon = new JLabel();
    83                 shapeIcon.setBounds(new Rectangle(265, 0, 130, 185));
     83                shapeIcon.setBounds(new Rectangle(220, 0, 130, 185));
    8484                this.add(shapeIcon, null);
    8585                lightIcon = new JLabel();
    86                 lightIcon.setBounds(new Rectangle(265, 0, 125, 185));
     86                lightIcon.setBounds(new Rectangle(220, 0, 130, 185));
    8787                this.add(lightIcon, null);
    8888                topIcon = new JLabel();
    89                 topIcon.setBounds(new Rectangle(265, 0, 125, 185));
     89                topIcon.setBounds(new Rectangle(220, 0, 130, 185));
    9090                this.add(topIcon, null);
    9191                radarIcon = new JLabel();
    92                 radarIcon.setBounds(new Rectangle(265, 0, 130, 185));
     92                radarIcon.setBounds(new Rectangle(220, 0, 130, 185));
    9393                this.add(radarIcon, null);
    9494                fogIcon = new JLabel();
    95                 fogIcon.setBounds(new Rectangle(265, 0, 125, 185));
     95                fogIcon.setBounds(new Rectangle(220, 0, 130, 185));
    9696                this.add(fogIcon, null);
    9797
Note: See TracChangeset for help on using the changeset viewer.