Ignore:
Timestamp:
2010-12-04T15:44:22+01:00 (14 years ago)
Author:
malcolmh
Message:

save

Location:
applications/editors/josm/plugins/smed/plugs/oseam/src
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/plugs/oseam/src/images/ChanButton.svg

    r24545 r24577  
    1010   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    1111   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    12    width="50"
    13    height="50"
     12   width="100"
     13   height="40"
    1414   id="svg2"
    1515   version="1.1"
    1616   inkscape:version="0.47 r22583"
    17    sodipodi:docname="Chan.svg">
     17   sodipodi:docname="ChanButton.svg"
     18   inkscape:export-filename="/Users/mherring/boatsw/oseam/josm/plugins/smed/plugs/oseam/src/images/ChanButton.png"
     19   inkscape:export-xdpi="90"
     20   inkscape:export-ydpi="90">
    1821  <defs
    1922     id="defs4">
     
    3336     inkscape:pageopacity="0.0"
    3437     inkscape:pageshadow="2"
    35      inkscape:zoom="16.8"
    36      inkscape:cx="17.483568"
     38     inkscape:zoom="11.879394"
     39     inkscape:cx="47.703965"
    3740     inkscape:cy="24.637413"
    3841     inkscape:document-units="px"
     
    6265        <dc:type
    6366           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
    64         <dc:title />
     67        <dc:title></dc:title>
    6568      </cc:Work>
    6669    </rdf:RDF>
     
    7073     inkscape:groupmode="layer"
    7174     id="layer1"
    72      transform="translate(0,-1002.3622)"
     75     transform="translate(0,-1012.3622)"
    7376     style="display:inline">
    7477    <rect
     
    105108  </g>
    106109  <g
    107      transform="translate(0,-1002.3622)"
     110     transform="translate(0,-1012.3622)"
    108111     id="g2900"
    109112     inkscape:groupmode="layer"
    110113     inkscape:label="Text EN"
    111      style="display:none">
     114     style="display:inline">
    112115    <text
    113116       inkscape:export-ydpi="90"
     
    116119       sodipodi:linespacing="100%"
    117120       id="text2908"
    118        y="1011.8579"
    119        x="25.189297"
     121       y="1036.0173"
     122       x="75.191849"
    120123       style="font-size:10px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
    121124       xml:space="preserve"><tspan
    122          y="1011.8579"
    123          x="25.189297"
     125         y="1036.0173"
     126         x="75.191849"
    124127         id="tspan2910"
    125128         sodipodi:role="line">Channel</tspan></text>
    126129  </g>
    127130  <g
    128      style="display:inline"
     131     style="display:none"
    129132     inkscape:label="Text DE"
    130133     inkscape:groupmode="layer"
    131134     id="g2912"
    132      transform="translate(0,-1002.3622)">
     135     transform="translate(0,-1012.3622)">
    133136    <text
    134137       xml:space="preserve"
    135138       style="font-size:10px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
    136        x="24.951202"
    137        y="1011.7985"
     139       x="75.037933"
     140       y="1036.1263"
    138141       id="text2914"
    139142       sodipodi:linespacing="100%"
     
    143146         sodipodi:role="line"
    144147         id="tspan2916"
    145          x="24.951202"
    146          y="1011.7985">Deutsch</tspan></text>
     148         x="75.037933"
     149         y="1036.1263">Deutsch</tspan></text>
    147150  </g>
    148151</svg>
  • applications/editors/josm/plugins/smed/plugs/oseam/src/images/HazButton.svg

    r24545 r24577  
    1010   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    1111   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    12    width="50"
    13    height="50"
     12   width="100"
     13   height="40"
    1414   id="svg2"
    1515   version="1.1"
    1616   inkscape:version="0.47 r22583"
    17    sodipodi:docname="Haz.svg"
     17   sodipodi:docname="HazButton.svg"
    1818   inkscape:export-filename="/Users/mherring/boatsw/oseam/openseamap/josm/icons/Chan.png"
    1919   inkscape:export-xdpi="90"
     
    3737     inkscape:pageopacity="0.0"
    3838     inkscape:pageshadow="2"
    39      inkscape:zoom="16.8"
    40      inkscape:cx="17.662139"
     39     inkscape:zoom="11.879394"
     40     inkscape:cx="51.249711"
    4141     inkscape:cy="26.914183"
    4242     inkscape:document-units="px"
     
    7474     inkscape:groupmode="layer"
    7575     id="layer1"
    76      transform="translate(0,-1002.3622)"
     76     transform="translate(0,-1012.3622)"
    7777     style="display:inline">
    7878    <path
     
    104104       sodipodi:rx="4.6130953"
    105105       sodipodi:ry="4.5833335"
    106        d="m 30.238095,18.154762 a 4.6130953,4.5833335 0 1 1 -9.22619,0 4.6130953,4.5833335 0 1 1 9.22619,0 z"
     106       d="m 30.238095,18.154762 c 0,2.531305 -2.065353,4.583334 -4.613095,4.583334 -2.547742,0 -4.613095,-2.052029 -4.613095,-4.583334 0,-2.531305 2.065353,-4.583333 4.613095,-4.583333 2.547742,0 4.613095,2.052028 4.613095,4.583333 z"
    107107       transform="matrix(0.97349799,0,0,0.97981954,0.06898993,1004.5888)" />
    108108    <path
    109109       transform="matrix(0.97349799,0,0,0.97981954,0.03922803,1014.4995)"
    110        d="m 30.238095,18.154762 a 4.6130953,4.5833335 0 1 1 -9.22619,0 4.6130953,4.5833335 0 1 1 9.22619,0 z"
     110       d="m 30.238095,18.154762 c 0,2.531305 -2.065353,4.583334 -4.613095,4.583334 -2.547742,0 -4.613095,-2.052029 -4.613095,-4.583334 0,-2.531305 2.065353,-4.583333 4.613095,-4.583333 2.547742,0 4.613095,2.052028 4.613095,4.583333 z"
    111111       sodipodi:ry="4.5833335"
    112112       sodipodi:rx="4.6130953"
     
    118118  </g>
    119119  <g
    120      transform="translate(0,-1002.3622)"
     120     transform="translate(0,-1012.3622)"
    121121     id="g3612"
    122122     inkscape:groupmode="layer"
    123123     inkscape:label="Text EN"
    124      style="display:none">
     124     style="display:inline">
    125125    <text
    126126       inkscape:export-ydpi="90"
     
    129129       sodipodi:linespacing="100%"
    130130       id="text3614"
    131        y="1011.6199"
    132        x="24.594061"
     131       y="1034.9376"
     132       x="74.596611"
    133133       style="font-size:10px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#d40000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
    134134       xml:space="preserve"><tspan
    135          y="1011.6199"
    136          x="24.594061"
     135         y="1034.9376"
     136         x="74.596611"
    137137         id="tspan3616"
    138138         sodipodi:role="line">Danger</tspan></text>
    139139  </g>
    140140  <g
    141      style="display:inline"
     141     style="display:none"
    142142     inkscape:label="Text DE"
    143143     inkscape:groupmode="layer"
    144144     id="g3636"
    145      transform="translate(0,-1002.3622)">
     145     transform="translate(0,-1012.3622)">
    146146    <text
    147147       xml:space="preserve"
    148148       style="font-size:10px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#d40000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
    149        x="24.951204"
    150        y="1011.977"
     149       x="74.953758"
     150       y="1035.9681"
    151151       id="text3638"
    152152       sodipodi:linespacing="100%"
     
    156156         sodipodi:role="line"
    157157         id="tspan3640"
    158          x="24.951204"
    159          y="1011.977">Deutsch</tspan></text>
     158         x="74.953758"
     159         y="1035.9681">Deutsch</tspan></text>
    160160  </g>
    161161</svg>
  • applications/editors/josm/plugins/smed/plugs/oseam/src/images/LightsButton.svg

    r24545 r24577  
    1010   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    1111   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    12    width="50"
    13    height="50"
     12   width="100"
     13   height="40"
    1414   id="svg2"
    1515   version="1.1"
    1616   inkscape:version="0.47 r22583"
    17    sodipodi:docname="Lights.svg"
     17   sodipodi:docname="LightsButton.svg"
    1818   inkscape:export-filename="/Users/mherring/boatsw/oseam/josm/plugins/smed/plugs/oseam/src/Lights.png"
    1919   inkscape:export-xdpi="90"
     
    11151115     inkscape:pageshadow="2"
    11161116     inkscape:zoom="11.879394"
    1117      inkscape:cx="14.574065"
     1117     inkscape:cx="58.263162"
    11181118     inkscape:cy="14.533528"
    11191119     inkscape:document-units="px"
     
    11511151     inkscape:groupmode="layer"
    11521152     id="layer1"
    1153      transform="translate(0,-1002.3622)"
     1153     transform="translate(0,-1012.3622)"
    11541154     style="display:inline">
    11551155    <g
     
    12371237  </g>
    12381238  <g
    1239      transform="translate(0,-1002.3622)"
     1239     transform="translate(0,-1012.3622)"
    12401240     id="g3309"
    12411241     inkscape:groupmode="layer"
    12421242     inkscape:label="Text EN"
    1243      style="display:none">
     1243     style="display:inline">
    12441244    <text
    12451245       inkscape:export-ydpi="90"
     
    12481248       sodipodi:linespacing="100%"
    12491249       id="text3311"
    1250        y="1011.8578"
    1251        x="24.777712"
     1250       y="1034.9227"
     1251       x="74.696091"
    12521252       style="font-size:10px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#d400d4;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
    12531253       xml:space="preserve"><tspan
    1254          y="1011.8578"
    1255          x="24.777712"
     1254         y="1034.9227"
     1255         x="74.696091"
    12561256         id="tspan3313"
    12571257         sodipodi:role="line">Lights</tspan></text>
    12581258  </g>
    12591259  <g
    1260      style="display:inline"
     1260     style="display:none"
    12611261     inkscape:label="Text DE"
    12621262     inkscape:groupmode="layer"
    12631263     id="g3341"
    1264      transform="translate(0,-1002.3622)">
     1264     transform="translate(0,-1012.3622)">
    12651265    <text
    12661266       xml:space="preserve"
    12671267       style="font-size:10px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#d400d4;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
    1268        x="25.030249"
    1269        y="1011.8579"
     1268       x="74.948616"
     1269       y="1036.1016"
    12701270       id="text3343"
    12711271       sodipodi:linespacing="100%"
     
    12751275         sodipodi:role="line"
    12761276         id="tspan3345"
    1277          x="25.030249"
    1278          y="1011.8579">Deutsch</tspan></text>
     1277         x="74.948616"
     1278         y="1036.1016">Deutsch</tspan></text>
    12791279  </g>
    12801280</svg>
  • applications/editors/josm/plugins/smed/plugs/oseam/src/images/SpecButton.svg

    r24545 r24577  
    1010   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    1111   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    12    width="50"
    13    height="50"
     12   width="100"
     13   height="40"
    1414   id="svg2"
    1515   version="1.1"
    1616   inkscape:version="0.47 r22583"
    17    sodipodi:docname="Spec.svg">
     17   sodipodi:docname="SpecButton.svg">
    1818  <defs
    1919     id="defs4">
     
    3333     inkscape:pageopacity="0.0"
    3434     inkscape:pageshadow="2"
    35      inkscape:zoom="16.8"
    36      inkscape:cx="9.07896"
     35     inkscape:zoom="11.879394"
     36     inkscape:cx="52.768058"
    3737     inkscape:cy="27.488438"
    3838     inkscape:document-units="px"
    39      inkscape:current-layer="g3725"
     39     inkscape:current-layer="g3709"
    4040     showgrid="true"
    4141     inkscape:showpageshadow="false"
     
    7070     inkscape:groupmode="layer"
    7171     id="layer1"
    72      transform="translate(0,-1002.3622)"
     72     transform="translate(0,-1012.3622)"
    7373     style="display:inline">
    7474    <path
     
    101101  </g>
    102102  <g
    103      transform="translate(0,-1002.3622)"
     103     transform="translate(0,-1012.3622)"
    104104     id="g3709"
    105105     inkscape:groupmode="layer"
    106106     inkscape:label="Text EN"
    107      style="display:none">
     107     style="display:inline">
    108108    <text
    109109       inkscape:export-ydpi="90"
     
    112112       sodipodi:linespacing="100%"
    113113       id="text3711"
    114        y="1011.977"
    115        x="25.129772"
     114       y="1035.2106"
     115       x="75.132324"
    116116       style="font-size:10px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#ffd400;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
    117117       xml:space="preserve"><tspan
    118          y="1011.977"
    119          x="25.129772"
     118         y="1035.2106"
     119         x="75.132324"
    120120         id="tspan3713"
    121121         sodipodi:role="line">Special</tspan></text>
    122122  </g>
    123123  <g
    124      style="display:inline"
     124     style="display:none"
    125125     inkscape:label="Text DE"
    126126     inkscape:groupmode="layer"
    127127     id="g3725"
    128      transform="translate(0,-1002.3622)">
     128     transform="translate(0,-1012.3622)">
    129129    <text
    130130       xml:space="preserve"
    131131       style="font-size:10px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#ffd400;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
    132        x="25.129772"
    133        y="1011.977"
     132       x="75.048141"
     133       y="1036.1364"
    134134       id="text3727"
    135135       sodipodi:linespacing="100%"
     
    139139         sodipodi:role="line"
    140140         id="tspan3729"
    141          x="25.129772"
    142          y="1011.977">Deutsch</tspan></text>
     141         x="75.048141"
     142         y="1036.1364">Deutsch</tspan></text>
    143143  </g>
    144144</svg>
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/dialogs/OSeaMAction.java

    r24556 r24577  
    4141
    4242        private JPanel oseamPanel = null;
    43         private JButton chanButton = null;
    44         private JButton hazButton = null;
    45         private JButton specButton = null;
    46         private JButton lightButton = null;
     43        private ButtonGroup typeButtons = null;
     44        private JRadioButton chanButton = null;
     45        private JRadioButton hazButton = null;
     46        private JRadioButton specButton = null;
     47        private JRadioButton lightButton = null;
    4748
    4849        public OSeaMAction() {
     
    6667                        oseamPanel.setLayout(null);
    6768                        oseamPanel.setSize(new Dimension(400, 360));
    68                         // System.out.println("file=" + Messages.getString("ChanButton"));
    6969                        oseamPanel.add(getChanButton(), null);
    7070                        oseamPanel.add(getHazButton(), null);
    7171                        oseamPanel.add(getSpecButton(), null);
    7272                        oseamPanel.add(getLightButton(), null);
     73                        typeButtons = new ButtonGroup();
     74                        typeButtons.add(chanButton);
     75                        typeButtons.add(hazButton);
     76                        typeButtons.add(specButton);
     77                        typeButtons.add(lightButton);
     78                        ActionListener alType = new ActionListener() {
     79                                public void actionPerformed(java.awt.event.ActionEvent e) {
     80//System.out.println("pressed: " + chanButton.isSelected() + " " + hazButton.isSelected() + " " + specButton.isSelected() + " " + lightButton.isSelected());
     81                                }
     82                        };
     83                        chanButton.addActionListener(alType);
     84                        hazButton.addActionListener(alType);
     85                        specButton.addActionListener(alType);
     86                        lightButton.addActionListener(alType);
    7387                }
    7488                return oseamPanel;
    7589        }
    7690
    77         private JButton getChanButton() {
     91        private JRadioButton getChanButton() {
    7892                if (chanButton == null) {
    79                         chanButton = new JButton();
    80                         chanButton.setBounds(new Rectangle(5, 5, 50, 50));
    81                         chanButton.setText("");
    82                         chanButton.setIcon(new ImageIcon(getClass().getResource(
     93                        chanButton = new JRadioButton(new ImageIcon(getClass().getResource(
    8394                                        Messages.getString("ChanButton"))));
     95                        chanButton.setBounds(new Rectangle(5, 0, 105, 40));
     96                        chanButton.setBorderPainted(true);
    8497                        chanButton.setToolTipText(Messages.getString("ChanTip"));
    85                         chanButton.addActionListener(new java.awt.event.ActionListener() {
    86                                 public void actionPerformed(java.awt.event.ActionEvent e) {
    87                                         /*
    88                                          * panelLimits.setVisible(false);
    89                                          * panelServices.setVisible(false);
    90                                          * panelEnv.setVisible(false);
    91                                          * panelRelations.setVisible(false);
    92                                          * panelGeneral.setVisible(true);
    93                                          */}
    94                         });
    9598                }
    9699                return chanButton;
    97100        }
    98101
    99         private JButton getHazButton() {
     102        private JRadioButton getHazButton() {
    100103                if (hazButton == null) {
    101                         hazButton = new JButton();
    102                         hazButton.setBounds(new Rectangle(60, 5, 50, 50));
    103                         hazButton.setText("");
    104                         hazButton.setIcon(new ImageIcon(getClass().getResource(
     104                        hazButton = new JRadioButton(new ImageIcon(getClass().getResource(
    105105                                        Messages.getString("HazButton"))));
     106                        hazButton.setBounds(new Rectangle(5, 40, 105, 40));
     107                        hazButton.setBorderPainted(true);
    106108                        hazButton.setToolTipText(Messages.getString("HazTip"));
    107                         hazButton.addActionListener(new java.awt.event.ActionListener() {
    108                                 public void actionPerformed(java.awt.event.ActionEvent e) {
    109                                         /*
    110                                          * panelLimits.setVisible(false);
    111                                          * panelServices.setVisible(false);
    112                                          * panelEnv.setVisible(false);
    113                                          * panelRelations.setVisible(false);
    114                                          * panelGeneral.setVisible(true);
    115                                          */}
    116                         });
    117109                }
    118110                return hazButton;
    119111        }
    120112
    121         private JButton getSpecButton() {
     113        private JRadioButton getSpecButton() {
    122114                if (specButton == null) {
    123                         specButton = new JButton();
    124                         specButton.setBounds(new Rectangle(115, 5, 50, 50));
    125                         specButton.setText("");
    126                         specButton.setIcon(new ImageIcon(getClass().getResource(
     115                        specButton = new JRadioButton(new ImageIcon(getClass().getResource(
    127116                                        Messages.getString("SpecButton"))));
     117                        specButton.setBounds(new Rectangle(5, 80, 105, 40));
     118                        specButton.setBorderPainted(true);
    128119                        specButton.setToolTipText(Messages.getString("SpecTip"));
    129                         specButton.addActionListener(new java.awt.event.ActionListener() {
    130                                 public void actionPerformed(java.awt.event.ActionEvent e) {
    131                                         /*
    132                                          * panelLimits.setVisible(false);
    133                                          * panelServices.setVisible(false);
    134                                          * panelEnv.setVisible(false);
    135                                          * panelRelations.setVisible(false);
    136                                          * panelGeneral.setVisible(true);
    137                                          */}
    138                         });
    139120                }
    140121                return specButton;
    141122        }
    142123
    143         private JButton getLightButton() {
     124        private JRadioButton getLightButton() {
    144125                if (lightButton == null) {
    145                         lightButton = new JButton();
    146                         lightButton.setBounds(new Rectangle(170, 5, 50, 50));
    147                         lightButton.setText("");
    148                         lightButton.setIcon(new ImageIcon(getClass().getResource(
     126                        lightButton = new JRadioButton(new ImageIcon(getClass().getResource(
    149127                                        Messages.getString("LightsButton"))));
     128                        lightButton.setBounds(new Rectangle(5, 120, 105, 40));
     129                        lightButton.setBorderPainted(true);
    150130                        lightButton.setToolTipText(Messages.getString("LightsTip"));
    151                         lightButton.addActionListener(new java.awt.event.ActionListener() {
    152                                 public void actionPerformed(java.awt.event.ActionEvent e) {
    153                                         /*
    154                                          * panelLimits.setVisible(false);
    155                                          * panelServices.setVisible(false);
    156                                          * panelEnv.setVisible(false);
    157                                          * panelRelations.setVisible(false);
    158                                          * panelGeneral.setVisible(true);
    159                                          */}
    160                         });
    161131                }
    162132                return lightButton;
Note: See TracChangeset for help on using the changeset viewer.