Changeset 916 in josm


Ignore:
Timestamp:
2008-09-03T17:13:16+02:00 (16 years ago)
Author:
stoecker
Message:

removed duplicate preset icons, added better message for 500 server error. Run optipng over all icons.

Location:
trunk
Files:
1 added
7 deleted
80 edited

Legend:

Unmodified
Added
Removed
  • trunk/presets/presets.xml

    r915 r916  
    230230                <separator/>
    231231
    232                 <item name="Road (Unknown Type)" icon="presets/way_unknown.png">
     232                <item name="Road (Unknown Type)" icon="presets/way_unclassified.png">
    233233                        <label text="Edit a Road of unknown type" />
    234234                        <label text=" " />
     
    293293                        <text key="width" text="Width (metres)" default="" delete_if_empty="true" />
    294294                </item>
     295
    295296                <item name="Bridge" icon="presets/bridge.png">
    296297                        <label text="Edit a Bridge" />
     
    308309        </group> <!-- Streets -->
    309310
    310         <group name="Ways" icon="presets/way_unknown.png">
    311                 <item name="Service" icon="presets/way_service.png">
     311        <group name="Ways" icon="presets/way_unclassified.png">
     312                <item name="Service" icon="presets/way_unclassified.png">
    312313                        <label text="Edit a Serviceway" />
    313314                        <label text=" " />
     
    328329                </item>
    329330
    330                 <item name="Parking Aisle" icon="presets/way_service.png">
     331                <item name="Parking Aisle" icon="presets/way_unclassified.png">
    331332                        <label text="Edit a Parking Aisle" />
    332333                        <label text=" " />
     
    459460                <separator/>
    460461
    461                 <item name="Track" icon="presets/track.png">
     462                <item name="Track" icon="presets/track1.png">
    462463                        <label text="Edit a Track" />
    463464                        <label text=" " />
     
    778779                        <text key="name" text="Name" default="" delete_if_empty="true" />
    779780                </item>
     781
     782                <item name="City Limit" icon="presets/citylimit.png">
     783                        <label text="Edit a city limit sign" />
     784                        <label text=" " />
     785                        <key key="traffic_sign" value="city_limit" />
     786                        <label text=" " />
     787                        <text key="name" text="Name" default="" delete_if_empty="true" />
     788                        <text key="alt_name" text="Second Name" default="" delete_if_empty="true" />
     789                </item>
     790
     791                <item name="Speed Camera" icon="presets/waypoints.png">
     792                        <key key="amenity" value="speed_camera" />
     793                </item>
    780794        </group> <!-- Waypoints -->
    781795
     
    10311045                </item>
    10321046               
    1033                 <item name="Railway Halt" icon="presets/railway_halt.png">
     1047                <item name="Railway Halt" icon="presets/station.png">
    10341048                        <label text="Edit Halt" />
    10351049                        <label text=" " />
  • trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java

    r910 r916  
    361361                ImageIcon icon = ImageProvider.getIfAvailable(null, iconName);
    362362                if (icon == null)
     363                {
     364                        System.out.println("Could not get presets icon " + iconName);
    363365                        icon = new ImageIcon(iconName);
     366                }
    364367                if (Math.max(icon.getIconHeight(), icon.getIconWidth()) != 16)
    365368                        icon = new ImageIcon(icon.getImage().getScaledInstance(16, 16, Image.SCALE_SMOOTH));
  • trunk/src/org/openstreetmap/josm/io/OsmServerReader.java

    r655 r916  
    11// License: GPL. Copyright 2007 by Immanuel Scholz and others
    22package org.openstreetmap.josm.io;
     3
     4import static org.openstreetmap.josm.tools.I18n.tr;
    35
    46import java.io.IOException;
     
    3335                String version = Main.pref.get("osm-server.version", "0.5");
    3436                urlStr = Main.pref.get("osm-server.url")+"/"+version+"/" + urlStr;
    35                 System.out.println("download: "+urlStr);
     37//              System.out.println("download: "+urlStr);
    3638                initAuthentication();
    3739                URL url = new URL(urlStr);
     
    4547                        activeConnection.setRequestProperty("Accept-Encoding", "gzip, deflate");
    4648
    47                 System.out.println("got return: "+activeConnection.getResponseCode());
    4849                activeConnection.setConnectTimeout(15000);
    4950                if (isAuthCancelled() && activeConnection.getResponseCode() == 401)
    5051                        return null;
     52                if( activeConnection.getResponseCode() == 500 )
     53                {
     54                        throw new IOException(tr("Server returned internal error. Try a reduced area or retry after waiting some time."));
     55                }
     56//              System.out.println("got return: "+activeConnection.getResponseCode());
    5157
    5258                String encoding = activeConnection.getContentEncoding();
  • trunk/styles/standard/elemstyles.xml

    r898 r916  
    35293529        </rule>
    35303530
     3531        <rule>
     3532                <condition k="traffic_sign" v="city_limit"/>
     3533                <icon annotate="true" src="citylimit.png"/>
     3534                <scale_min>1</scale_min>
     3535                <scale_max>40000</scale_max>
     3536        </rule>
     3537
    35313538</rules>
Note: See TracChangeset for help on using the changeset viewer.