Changeset 2811 in josm
- Timestamp:
- 2010-01-10T23:16:45+01:00 (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geticons.pl
r2808 r2811 55 55 ++$icons{$i}; 56 56 } 57 if($l =~ /ImageProvider\.get\(\"(.*?)\",\s +\"(.*?)\"\)/)57 if($l =~ /ImageProvider\.get\(\"(.*?)\",\s*\"(.*?)\"\s*\)/) 58 58 { 59 59 my $i = "$1/$2"; … … 61 61 ++$icons{$i}; 62 62 } 63 if($l =~ /ImageProvider\.getCursor\(\"(.*?)\",\s+\"(.*?)\"\)/) 63 if($l =~ /ImageProvider\.overlay\(.*?,\s*\"(.*?)\",/) 64 { 65 my $i = $1; 66 $i .= ".png" if !($i =~ /\.png$/); 67 ++$icons{$i}; 68 } 69 if($l =~ /getCursor\(\"(.*?)\",\s*\"(.*?)\"/) 64 70 { 65 71 my $i = "cursor/modifier/$2"; … … 67 73 ++$icons{$i}; 68 74 $i = "cursor/$1"; 75 $i .= ".png" if !($i =~ /\.png$/); 76 ++$icons{$i}; 77 } 78 if($l =~ /ImageProvider\.getCursor\(\"(.*?)\",\s*null\)/) 79 { 80 my $i = "cursor/$1"; 69 81 $i .= ".png" if !($i =~ /\.png$/); 70 82 ++$icons{$i}; … … 76 88 ++$icons{$i}; 77 89 } 78 90 if($l =~ /audiotracericon\",\s*\"(.*?)\"/s) 91 { 92 my $i = "markers/$1"; 93 $i .= ".png" if !($i =~ /\.png$/); 94 ++$icons{$i}; 95 } 96 if($l =~ /\"(.*?)\",\s*parentLayer/s) 97 { 98 my $i = "markers/$1"; 99 $i .= ".png" if !($i =~ /\.png$/); 100 ++$icons{$i}; 101 } 79 102 if($l =~ /allowedtypes\s+=.*\{(.*)\}/s) 80 103 { … … 83 106 { 84 107 ++$icons{"Mf_$1.png"}; 108 } 109 } 110 if($l =~ /MODES\s+=.*\{(.*)\}/s) 111 { 112 my $t = $1; 113 while($t =~ /\"(.*?)\"/g) 114 { 115 ++$icons{"dialogs/autoscale/$1.png"}; 116 } 117 } 118 if($l =~ /enum\s+DeleteMode\s*\{(.*)/s) 119 { 120 my $t = $1; 121 while($t =~ /\"(.*?)\"/g) 122 { 123 ++$icons{"cursor/modifier/$1.png"}; 85 124 } 86 125 } -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java
r2295 r2811 148 148 this.offset = offset; 149 149 this.time = time; 150 Icon symbol = ImageProvider.getIfAvailable("markers",iconName); 151 if (symbol == null) { 152 symbol = ImageProvider.getIfAvailable("symbols",iconName); 153 } 154 if (symbol == null) { 155 symbol = ImageProvider.getIfAvailable("nodes",iconName); 156 } 157 this.symbol = symbol; 150 this.symbol = ImageProvider.getIfAvailable("markers",iconName); 158 151 this.parentLayer = parentLayer; 159 152 }
Note:
See TracChangeset
for help on using the changeset viewer.