source: osm/applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/XmlBoundsConstants.java@ 27015

Last change on this file since 27015 was 27015, checked in by donvip, 13 years ago

JOSM Imagery-XML-Bounds plugin version 1.3 : allow to edit selected default imagery entries from Preferences dialog

File size: 4.3 KB
Line 
1// JOSM Imagery XML Bounds plugin.
2// Copyright (C) 2011 Don-vip
3//
4// This program is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with this program. If not, see <http://www.gnu.org/licenses/>.
16package org.openstreetmap.josm.plugins.imageryxmlbounds;
17
18import static org.openstreetmap.josm.tools.I18n.tr;
19
20import javax.swing.ImageIcon;
21
22import org.openstreetmap.josm.actions.ExtensionFileFilter;
23import org.openstreetmap.josm.tools.ImageProvider;
24
25/**
26 * Main constants of JOSM Imagery XML Bounds plugin.
27 * @author Don-vip
28 *
29 */
30public interface XmlBoundsConstants {
31
32 /**
33 * Plugin version.
34 */
35 public static final String PLUGIN_VERSION = "1.3";
36
37 /**
38 * XML namespace for JOSM Imagery schema.
39 */
40 public static final String XML_NAMESPACE = "http://josm.openstreetmap.de/maps-1.0";
41
42 /**
43 * XML file location.
44 */
45 public static final String XML_LOCATION = "http://josm.openstreetmap.de/maps";
46
47 /**
48 * XML Schema
49 */
50 public static final String XML_SCHEMA = "resource://data/maps.xsd";
51
52 /**
53 * XML tags
54 */
55 public static final String XML_NAME = "name";
56 public static final String XML_TYPE = "type";
57 public static final String XML_URL = "url";
58 public static final String XML_DEFAULT = "default";
59 public static final String XML_EULA = "eula";
60 public static final String XML_ATTR_TEXT = "attribution-text";
61 public static final String XML_ATTR_URL = "attribution-url";
62 public static final String XML_TERMS_TEXT = "terms-of-use-text";
63 public static final String XML_TERMS_URL = "terms-of-use-url";
64 public static final String XML_PROJECTIONS = "projections";
65 public static final String XML_MAX_ZOOM = "max-zoom";
66 public static final String XML_MIN_ZOOM = "min-zoom";
67 public static final String XML_COUNTRY_CODE = "country-code";
68 public static final String XML_LOGO_IMAGE = "logo-image";// TODO
69 public static final String XML_LOGO_URL = "logo-url";
70
71 /**
72 * Prefix used in front of OSM keys.
73 */
74 public static final String PREFIX = "imagery:";
75
76 /**
77 * OSM keys, equivalent to those used in XML schema, but prefixed (except for name).
78 */
79 public static final String KEY_NAME = XML_NAME;
80 public static final String KEY_TYPE = PREFIX + XML_TYPE;
81 public static final String KEY_URL = PREFIX + XML_URL;
82 public static final String KEY_DEFAULT = PREFIX + XML_DEFAULT;
83 public static final String KEY_EULA = PREFIX + XML_EULA;
84 public static final String KEY_ATTR_TEXT = PREFIX + XML_ATTR_TEXT;
85 public static final String KEY_ATTR_URL = PREFIX + XML_ATTR_URL;
86 public static final String KEY_TERMS_TEXT = PREFIX + XML_TERMS_TEXT;
87 public static final String KEY_TERMS_URL = PREFIX + XML_TERMS_URL;
88 public static final String KEY_PROJECTIONS = PREFIX + XML_PROJECTIONS;
89 public static final String KEY_MAX_ZOOM = PREFIX + XML_MAX_ZOOM;
90 public static final String KEY_MIN_ZOOM = PREFIX + XML_MIN_ZOOM;
91 public static final String KEY_COUNTRY_CODE = PREFIX + XML_COUNTRY_CODE;
92 public static final String KEY_LOGO_IMAGE = PREFIX + XML_LOGO_IMAGE;// TODO
93 public static final String KEY_LOGO_URL = PREFIX + XML_LOGO_URL;
94
95 /**
96 * File extension.
97 */
98 public static final String EXTENSION = "imagery.xml";
99
100 /**
101 * File encoding.
102 */
103 public static final String ENCODING = "UTF-8";
104
105 /**
106 * File filter used in import/export dialogs.
107 */
108 public static final ExtensionFileFilter FILE_FILTER = new ExtensionFileFilter(EXTENSION, EXTENSION, tr("Imagery XML Files") + " (*."+EXTENSION+")");
109
110 /**
111 * Plugin icons.
112 */
113 public static ImageIcon XML_ICON_16 = ImageProvider.get("xml_16.png");
114 public static ImageIcon XML_ICON_24 = ImageProvider.get("xml_24.png");
115}
Note: See TracBrowser for help on using the repository browser.