Changeset 13277 in josm
- Timestamp:
- 2018-01-04T16:00:01+01:00 (7 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geticons.pl
r10566 r13277 23 23 for my $file (glob($arg)) 24 24 { 25 my @defs; 25 26 open(FILE,"<",$file) or die "Could not open $file\n"; 26 27 #print "Read file $file\n"; … … 29 30 while(my $l = <FILE>) 30 31 { 32 if($l =~ /private static final String ([A-Z_]+) = ("[^"]+")/) 33 { 34 push(@defs, [$1, $2]); 35 } 31 36 next if $l =~ /NO-ICON/; 37 for my $d (@defs) 38 { 39 $l =~ s/$d->[0]/$d->[1]/g; 40 } 32 41 if($l =~ /icon\s*[:=]\s*["']([^"'+]+?)["']/) 33 42 { … … 122 131 ++$icons{$i}; 123 132 } 124 if($l =~ /setButtonIcons.*\{(.*)\}/ )133 if($l =~ /setButtonIcons.*\{(.*)\}/ || $l =~ /setButtonIcons\((.*)\)/ ) 125 134 { 126 135 my $t = $1; -
trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyAction.java
r13048 r13277 62 62 SelectionChangedListener, ModifierExListener { 63 63 64 private static final String CROSSHAIR = "crosshair";64 private static final String CROSSHAIR = /* ICON(cursor/)*/ "crosshair"; 65 65 66 66 enum State { … … 81 81 private boolean dragging; 82 82 83 private final Cursor cursorSelect = ImageProvider.getCursor( "normal","mode");84 private final Cursor cursorSelectHover = ImageProvider.getCursor( "hand","mode");83 private final Cursor cursorSelect = ImageProvider.getCursor(/* ICON(cursor/)*/ "normal", /* ICON(cursor/modifier/)*/ "mode"); 84 private final Cursor cursorSelectHover = ImageProvider.getCursor(/* ICON(cursor/)*/ "hand", /* ICON(cursor/modifier/)*/ "mode"); 85 85 private final Cursor cursorImprove = ImageProvider.getCursor(CROSSHAIR, null); 86 private final Cursor cursorImproveAdd = ImageProvider.getCursor(CROSSHAIR, "addnode");87 private final Cursor cursorImproveDelete = ImageProvider.getCursor(CROSSHAIR, "delete_node");88 private final Cursor cursorImproveAddLock = ImageProvider.getCursor(CROSSHAIR, "add_node_lock");89 private final Cursor cursorImproveLock = ImageProvider.getCursor(CROSSHAIR, "lock");86 private final Cursor cursorImproveAdd = ImageProvider.getCursor(CROSSHAIR, /* ICON(cursor/modifier/)*/ "addnode"); 87 private final Cursor cursorImproveDelete = ImageProvider.getCursor(CROSSHAIR, /* ICON(cursor/modifier/)*/ "delete_node"); 88 private final Cursor cursorImproveAddLock = ImageProvider.getCursor(CROSSHAIR, /* ICON(cursor/modifier/)*/ "add_node_lock"); 89 private final Cursor cursorImproveLock = ImageProvider.getCursor(CROSSHAIR, /* ICON(cursor/modifier/)*/ "lock"); 90 90 91 91 private Color guideColor; -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r13189 r13277 72 72 public class SelectAction extends MapMode implements ModifierExListener, KeyPressReleaseListener, SelectionEnded { 73 73 74 private static final String NORMAL = "normal";74 private static final String NORMAL = /* ICON(cursor/)*/ "normal"; 75 75 76 76 /** … … 92 92 enum SelectActionCursor { 93 93 94 rect(NORMAL, "selection"),95 rect_add(NORMAL, "select_add"),96 rect_rm(NORMAL, "select_remove"),97 way(NORMAL, "select_way"),98 way_add(NORMAL, "select_way_add"),99 way_rm(NORMAL, "select_way_remove"),100 node(NORMAL, "select_node"),101 node_add(NORMAL, "select_node_add"),102 node_rm(NORMAL, "select_node_remove"),103 virtual_node(NORMAL, "addnode"),104 scale( "scale", null),105 rotate( "rotate", null),106 merge( "crosshair", null),107 lasso(NORMAL, "rope"),108 merge_to_node( "crosshair","joinnode"),94 rect(NORMAL, /* ICON(cursor/modifier/)*/ "selection"), 95 rect_add(NORMAL, /* ICON(cursor/modifier/)*/ "select_add"), 96 rect_rm(NORMAL, /* ICON(cursor/modifier/)*/ "select_remove"), 97 way(NORMAL, /* ICON(cursor/modifier/)*/ "select_way"), 98 way_add(NORMAL, /* ICON(cursor/modifier/)*/ "select_way_add"), 99 way_rm(NORMAL, /* ICON(cursor/modifier/)*/ "select_way_remove"), 100 node(NORMAL, /* ICON(cursor/modifier/)*/ "select_node"), 101 node_add(NORMAL, /* ICON(cursor/modifier/)*/ "select_node_add"), 102 node_rm(NORMAL, /* ICON(cursor/modifier/)*/ "select_node_remove"), 103 virtual_node(NORMAL, /* ICON(cursor/modifier/)*/ "addnode"), 104 scale(/* ICON(cursor/)*/ "scale", null), 105 rotate(/* ICON(cursor/)*/ "rotate", null), 106 merge(/* ICON(cursor/)*/ "crosshair", null), 107 lasso(NORMAL, /* ICON(cursor/modifier/)*/ "rope"), 108 merge_to_node(/* ICON(cursor/)*/ "crosshair", /* ICON(cursor/modifier/)*/"joinnode"), 109 109 move(Cursor.MOVE_CURSOR); 110 110 -
trunk/src/org/openstreetmap/josm/gui/ScrollViewport.java
r12866 r13277 128 128 // UP 129 129 if ((direction & UP_DIRECTION) != 0) { 130 addScrollButton(UP_DIRECTION, "svpUp", BorderLayout.NORTH);130 addScrollButton(UP_DIRECTION, /* ICON */ "svpUp", BorderLayout.NORTH); 131 131 } 132 132 133 133 // DOWN 134 134 if ((direction & DOWN_DIRECTION) != 0) { 135 addScrollButton(DOWN_DIRECTION, "svpDown", BorderLayout.SOUTH);135 addScrollButton(DOWN_DIRECTION, /* ICON */ "svpDown", BorderLayout.SOUTH); 136 136 } 137 137 138 138 // LEFT 139 139 if ((direction & LEFT_DIRECTION) != 0) { 140 addScrollButton(LEFT_DIRECTION, "svpLeft", BorderLayout.WEST);140 addScrollButton(LEFT_DIRECTION, /* ICON */ "svpLeft", BorderLayout.WEST); 141 141 } 142 142 143 143 // RIGHT 144 144 if ((direction & RIGHT_DIRECTION) != 0) { 145 addScrollButton(RIGHT_DIRECTION, "svpRight", BorderLayout.EAST);145 addScrollButton(RIGHT_DIRECTION, /* ICON */ "svpRight", BorderLayout.EAST); 146 146 } 147 147
Note:
See TracChangeset
for help on using the changeset viewer.