Ignore:
Timestamp:
2011-04-19T23:17:01+02:00 (14 years ago)
Author:
zverik
Message:

dumbutils: paste relations; add source tag

Location:
applications/editors/josm/plugins
Files:
6 added
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/dumbutils/src/dumbutils/DumbUtilsPlugin.java

    r25854 r25870  
    1212    JMenuItem replaceGeometry;
    1313    JMenuItem tagBuffer;
     14    JMenuItem sourceTag;
     15    JMenuItem pasteRelations;
     16    JMenuItem alignWayNodes;
    1417
    1518    public DumbUtilsPlugin(PluginInformation info) {
     
    1821        replaceGeometry = MainMenu.add(Main.main.menu.toolsMenu, new ReplaceGeometryAction());
    1922        tagBuffer = MainMenu.add(Main.main.menu.toolsMenu, new TagBufferAction());
     23        sourceTag = MainMenu.add(Main.main.menu.toolsMenu, new TagSourceAction());
     24        pasteRelations = MainMenu.add(Main.main.menu.toolsMenu, new PasteRelationsAction());
     25//        alignWayNodes = MainMenu.add(Main.main.menu.toolsMenu, new AlignWayNodesAction());
    2026    }
    2127
     
    2531        replaceGeometry.setEnabled(enabled);
    2632        tagBuffer.setEnabled(enabled);
     33        sourceTag.setEnabled(enabled);
     34        pasteRelations.setEnabled(enabled);
     35//        alignWayNodes.setEnabled(enabled);
    2736    }
    2837}
  • applications/editors/josm/plugins/dumbutils/src/dumbutils/ReplaceGeometryAction.java

    r25862 r25870  
    102102            commands.add(new ChangePropertyCommand(way, key, geometry.get(key)));
    103103
    104         // And delete odl geometry way
     104        // Remove geometry way from selection
     105        getCurrentDataSet().clearSelection(geometry);
     106
     107        // And delete old geometry way
    105108        commands.add(new DeleteCommand(geometry));
    106109
  • applications/editors/josm/plugins/relcontext/TODO

    r25869 r25870  
    55- "Reverse multipolygon": create a closed area out of outer members, move tags, delete relation and empty ways
    66- Fix tags for public_transport relations
    7 
    8 == DumbUtils todo ==
    9 
    10 - Paste relations to another object (Main.pasteBuffer.getDirectlyAdded() -> relations)
    11 - Align way nodes: 1 node - between neighboring, 2 nodes - all between them, 3 or more - all selected
    12 - Paste remembered source tag value (store it indefinetly, even in preferences)
    13 - Replace geometry: choose nearest node for replacing, not just any
    147
    158== NEW ALGORITHM ==
Note: See TracChangeset for help on using the changeset viewer.