Changeset 16957 in osm for applications/editors/josm


Ignore:
Timestamp:
2009-08-10T11:48:59+02:00 (15 years ago)
Author:
stoecker
Message:

reactivated pictures

Location:
applications/editors/josm/plugins/surveyor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/surveyor/resources/surveyor.xml

    r12780 r16957  
    44  <!-- action class: either fully qualified classnames or if not found,
    55       package at.dallermassl.josm.plugin.surveyor.action is assumed -->
    6   <button label="Tunnel Start" hotkey="T" icon="tunnel">
     6  <button label="Tunnel Start" hotkey="T" icon="styles/standard/vehicle/tunnel.png">
    77    <action class="PlayAudioAction" params="resource://audio/KDE_Window_Iconify.wav"/>
    88    <action class="SetWaypointAction" params="tunnel start"/>
     
    1414    <action class="SetWaypointAction" params="bridge"/>
    1515  </button>
    16   <button label="Village/City" hotkey="V" icon="place">
     16  <button label="Village/City" hotkey="V" icon="styles/standard/place.png">
    1717    <action class="PlayAudioAction" params="resource://audio/KDE_Window_Iconify.wav"/>
    1818    <action class="SetWaypointAction" params="village"/>
     
    2222    -->
    2323  </button>
    24   <button label="Parking" hotkey="P" icon="parking">
     24  <button label="Parking" hotkey="P" icon="styles/standard/vehicle/parking.png">
    2525    <!--action class="SetNodeAction" params="amenity=parking"/-->
    2626    <action class="PlayAudioAction" params="resource://audio/KDE_Window_Iconify.wav"/>
    2727    <action class="SetWaypointAction" params="Parking"/>
    2828  </button>
    29   <button label="One Way" hotkey="O" icon="noentry">
     29  <button label="One Way" hotkey="O" icon="presets/oneway.png">
    3030    <action class="PlayAudioAction" params="resource://audio/KDE_Window_Iconify.wav"/>
    3131    <action class="SetWaypointAction" params="oneway=yes"/>
    3232  </button>
    33   <button label="Church" hotkey="C" icon="church">
     33  <button label="Church" hotkey="C" icon="styles/standard/religion/church.png">
    3434    <action class="PlayAudioAction" params="resource://audio/KDE_Window_Iconify.wav"/>
    3535    <action class="SetNodeAction" params="amenity=place_of_worship,denomination=christian"/>
    3636    <action class="SetWaypointAction" params="Church"/>
    3737  </button>
    38   <button label="Fuel Station" hotkey="F" icon="fuel">
     38  <button label="Fuel Station" hotkey="F" icon="styles/standard/vehicle/fuel.png">
    3939    <!--action class="SetNodeAction" params="amenity=fuel"/-->
    4040    <action class="PlayAudioAction" params="resource://audio/KDE_Window_Iconify.wav"/>
    4141    <action class="SetWaypointAction" params="Fuel"/>
    4242  </button>
    43   <button label="Hotel" hotkey="H" icon="bed">
     43  <button label="Hotel" hotkey="H" icon="styles/standard/accommodation/hotel.png">
    4444    <action class="PlayAudioAction" params="resource://audio/KDE_Window_Iconify.wav"/>
    4545    <action class="SetWaypointAction" params="Hotel"/>
    4646  </button>
    47   <button label="Restaurant" hotkey="R" icon="restaurant">
     47  <button label="Restaurant" hotkey="R" icon="styles/standard/food/restaurant.png">
    4848    <action class="PlayAudioAction" params="resource://audio/KDE_Window_Iconify.wav"/>
    4949    <action class="SetNodeAction" params="amenity=restaurant"/>
    5050    <action class="SetWaypointAction" params="Restaurant"/>
    5151  </button>
    52   <button label="Shopping" hotkey="S" icon="shopping">
     52  <button label="Shopping" hotkey="S" icon="styles/standard/shop.png">
    5353    <action class="PlayAudioAction" params="resource://audio/KDE_Window_Iconify.wav"/>
    5454    <action class="SetWaypointAction" params="Info"/>
    5555  </button>
    56   <button label="WC" hotkey="W" icon="toilet">
     56  <button label="WC" hotkey="W" icon="styles/standard/vehicle/parking/restarea_toilets.png">
    5757    <action class="PlayAudioAction" params="resource://audio/KDE_Window_Iconify.wav"/>
    5858    <action class="SetWaypointAction" params="Info"/>
    5959  </button>
    60   <button label="Camping" hotkey="Z" icon="caravan">
     60  <button label="Camping" hotkey="Z" icon="styles/standard/accommodation/camping/caravan.png">
    6161    <action class="PlayAudioAction" params="resource://audio/KDE_Window_Iconify.wav"/>
    6262    <action class="SetWaypointAction" params="Camping"/>
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/ButtonDescription.java

    r13497 r16957  
    176176        String actionName = tr(getLabel()) + " (" + hotkey + ")";
    177177
    178         Icon icon = ImageProvider.getIfAvailable("markers",iconName);
     178        Icon icon = ImageProvider.getIfAvailable(null,iconName);
     179        if (icon == null)
     180            icon = ImageProvider.getIfAvailable("markers",iconName);
    179181        if (icon == null)
    180182            icon = ImageProvider.getIfAvailable("symbols",iconName);
Note: See TracChangeset for help on using the changeset viewer.