Line | |
---|
1 | package iodb;
|
---|
2 |
|
---|
3 | import java.awt.event.ActionEvent;
|
---|
4 | import org.openstreetmap.josm.Main;
|
---|
5 | import org.openstreetmap.josm.actions.JosmAction;
|
---|
6 | import org.openstreetmap.josm.data.coor.LatLon;
|
---|
7 | import org.openstreetmap.josm.data.projection.Projection;
|
---|
8 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
9 |
|
---|
10 | /**
|
---|
11 | * Upload the current imagery offset or an calibration object information.
|
---|
12 | *
|
---|
13 | * @author zverik
|
---|
14 | */
|
---|
15 | public class StoreImageryOffsetAction extends JosmAction {
|
---|
16 |
|
---|
17 | public StoreImageryOffsetAction() {
|
---|
18 | super(tr("Store Imagery Offset..."), "storeoffset", tr("Upload an offset for current imagery (or calibration object information) to a server"), null, false);
|
---|
19 | }
|
---|
20 |
|
---|
21 | public void actionPerformed(ActionEvent e) {
|
---|
22 | Projection proj = Main.map.mapView.getProjection();
|
---|
23 | LatLon center = proj.eastNorth2latlon(Main.map.mapView.getCenter());
|
---|
24 | // todo: open an upload window
|
---|
25 | // todo: if an object was selected, ask if the user wants to upload it
|
---|
26 | // todo: enter all metadata (that is, a description)
|
---|
27 | // todo: upload object info to server
|
---|
28 | }
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.