Changeset 10069 in josm


Ignore:
Timestamp:
2016-03-28T14:41:27+02:00 (8 years ago)
Author:
stoecker
Message:

update geticons script, drop 4 unused icons

Location:
trunk
Files:
1 edited
4 moved

Legend:

Unmodified
Added
Removed
  • trunk/geticons.pl

    r9958 r10069  
    3030    {
    3131      next if $l =~ /NO-ICON/;
    32       if($l =~ /icon\s*[:=]\s*["']([^+]+?)["']/)
     32      if($l =~ /icon\s*[:=]\s*["']([^"'+]+?)["']/)
    3333      {
    3434        ++$icons{$1};
     
    4646      {
    4747        my $i = $1;
    48         $i = "styles/standard/$i" if $i eq "misc/no_icon.png";
     48        $i = "styles/standard/$i" if $i eq "misc/no_icon";
    4949        ++$icons{$i};
    5050      }
     
    6969        ++$icons{$i};
    7070      }
    71       if($l =~ /ImageProvider\.get\(\"(.*?)\",\s*\"(.*?)\"\s*\)/)
     71      if($l =~ /setIcon\(\"(.*?)\"/)
     72      {
     73        my $i = "statusline/$1";
     74        ++$icons{$i};
     75      }
     76      if($l =~ /ImageProvider\.get(?:IfAvailable)?\(\"(.*?)\",\s*\"(.*?)\"\s*\)/)
     77      {
     78        my $i = "$1/$2";
     79        ++$icons{$i};
     80      }
     81      if($l =~ /new ImageProvider\(\"(.*?)\",\s*\"(.*?)\"\s*\)/)
    7282      {
    7383        my $i = "$1/$2";
     
    116126        ++$icons{$i};
    117127      }
    118       if($l =~ /\.setButtonIcons.*\{(.*)\}/)
     128      if($l =~ /setButtonIcons.*\{(.*)\}/)
    119129      {
    120130        my $t = $1;
     
    132142      {
    133143        $extends = "dialogs/";
     144      }
     145      elsif($l =~ /extends JosmAction/)
     146      {
     147        $extends = "";
    134148      }
    135149    }
Note: See TracChangeset for help on using the changeset viewer.