"use strict";

var netgis = netgis || {};

netgis.Events = Object.freeze
(
	{
		CONTEXT_UPDATE: "CONTEXT_UPDATE",
		SET_MODE: "SET_MODE",
		
		LAYER_LIST_TOGGLE: "LAYER_LIST_TOGGLE",

		PANEL_TOGGLE: "PANEL_TOGGLE",
		PANEL_SHOW: "PANEL_SHOW",
		PANEL_HIDE: "PANEL_HIDE",

		LAYER_SHOW: "LAYER_SHOW",
		LAYER_HIDE: "LAYER_HIDE",
		LAYER_CREATED: "LAYER_CREATED",

		MAP_ZOOM_WKT: "MAP_ZOOM_WKT",
		MAP_SET_EXTENT: "MAP_SET_EXTENT",
		MAP_CHANGE_ZOOM: "MAP_CHANGE_ZOOM",
		
		MAP_UPDATE_STYLE: "MAP_UPDATE_STYLE", //TODO: ?

		MAP_MODE_POINTS: "MAP_MODE_POINTS",
		MAP_MODE_LINES: "MAP_MODE_LINES",
		MAP_MODE_POLYGONS: "MAP_MODE_POLYGONS",
		
		EDIT_FEATURES_LOADED: "EDIT_FEATURES_LOADED",
		EDIT_FEATURES_CHANGE: "EDIT_FEATURES_CHANGE",
		
		SEARCH_PLACE_REQUEST: "SEARCH_PLACE_REQUEST",
		SEARCH_PLACE_RESPONSE: "SEARCH_PLACE_RESPONSE",
		
		PARCEL_SHOW_PREVIEW: "PARCEL_SHOW_PREVIEW",
		PARCEL_HIDE_PREVIEW: "PARCEL_HIDE_PREVIEW",
		
		BUFFER_CHANGE: "BUFFER_CHANGE",
		BUFFER_ACCEPT: "BUFFER_ACCEPT",
		BUFFER_CANCEL: "BUFFER_CANCEL",
		DRAW_BUFFER_ON: "DRAW_BUFFER_ON",
		DRAW_BUFFER_OFF: "DRAW_BUFFER_OFF",
		DRAW_BUFFER_RADIUS_CHANGE: "DRAW_BUFFER_RADIUS_CHANGE",
		DRAW_BUFFER_SEGMENTS_CHANGE: "DRAW_BUFFER_SEGMENTS_CHANGE",
		SNAP_ON: "SNAP_ON",
		SNAP_OFF: "SNAP_OFF",
		TRACING_ON: "TRACING_ON",
		TRACING_OFF: "TRACING_OFF",
		
		IMPORT_SHAPEFILE_SHOW: "IMPORT_SHAPEFILE_SHOW",
		IMPORT_GEOJSON_SHOW: "IMPORT_GEOJSON_SHOW",
		IMPORT_GML_SHOW: "IMPORT_GML_SHOW",
		IMPORT_SPATIALITE_SHOW: "IMPORT_SPATIALITE_SHOW",
		IMPORT_GEOPACKAGE_SHOW: "IMPORT_GEOPACKAGE_SHOW",
		
		IMPORT_SHAPEFILE: "IMPORT_SHAPEFILE",
		IMPORT_GEOJSON: "IMPORT_GEOJSON",
		IMPORT_GML: "IMPORT_GML",
		IMPORT_WKT: "IMPORT_WKT",
		IMPORT_SPATIALITE: "IMPORT_SPATIALITE",
		IMPORT_GEOPACKAGE: "IMPORT_GEOPACKAGE",
		
		EXPORT_PDF_SHOW: "EXPORT_PDF_SHOW",
		EXPORT_JPEG_SHOW: "EXPORT_JPEG_SHOW",
		EXPORT_PNG_SHOW: "EXPORT_PNG_SHOW",
		EXPORT_GIF_SHOW: "EXPORT_GIF_SHOW",
		
		EXPORT_PDF: "EXPORT_PDF",
		EXPORT_JPEG: "EXPORT_JPEG",
		EXPORT_PNG: "EXPORT_PNG",
		EXPORT_GIF: "EXPORT_GIF",
		EXPORT_BEGIN: "EXPORT_BEGIN",
		EXPORT_END: "EXPORT_END",
		
		ADD_SERVICE_SHOW: "ADD_SERVICE_SHOW",
		ADD_SERVICE_WMS: "ADD_SERVICE_WMS",
		ADD_SERVICE_WFS: "ADD_SERVICE_WFS"
	}
);
