ToolMap
Loading...
Searching...
No Matches
tmlayerpropertiesdef.h
1/***************************************************************************
2 tmlayerpropertiesdef.h
3 Class containing definitions for layer informations
4 -------------------
5 copyright : (C) 2007 CREALP Lucien Schreiber
6 ***************************************************************************/
7
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16#ifndef _TM_LAYERPROPERTIES_DEF_H_
17#define _TM_LAYERPROPERTIES_DEF_H_
18
19// For compilers that support precompilation, includes "wx/wx.h".
20#include <wx/wxprec.h>
21
22// Include wxWidgets' headers
23#ifndef WX_PRECOMP
24#include <wx/wx.h>
25#endif
26
27// TOC Generics values
28// Definitions for the generic layers, we define the text and the id of
29// each string.
30static wxString TOC_GENERIC_NAME_STRING[] = {wxTRANSLATE("Lines"),
31 wxTRANSLATE("Points"),
32 wxTRANSLATE("Labels"),
33 wxTRANSLATE("Notes"),
34 wxTRANSLATE("Frame"),
35 wxTRANSLATE("Folder"),
36 wxTRANSLATE("Not Generic layers")};
37
38// warning, max values are 127 because stored in a tiny int
39// into the database
40enum TOC_GENERIC_NAME {
41 TOC_NAME_LINES = 0,
42 TOC_NAME_POINTS,
43 TOC_NAME_LABELS,
44 TOC_NAME_ANNOTATIONS,
45 TOC_NAME_FRAME,
46 TOC_NAME_GROUP,
47 TOC_NAME_NOT_GENERIC = 100,
48 TOC_NAME_TIFF,
49 TOC_NAME_EGRID,
50 TOC_NAME_JPEG,
51 TOC_NAME_WEB,
52 TOC_NAME_SHP,
53 TOC_NAME_UNKNOWN = 120
54};
55static const int TOC_GENERIC_NAME_NUMBER = 7;
56
57enum TM_GIS_SPATIAL_TYPES {
58 LAYER_SPATIAL_LINE = 0,
59 LAYER_SPATIAL_POINT,
60 LAYER_SPATIAL_POLYGON,
61 LAYER_SPATIAL_RASTER,
62 LAYER_SPATIAL_UNKNOWN,
63 LAYER_EMPTY,
64 LAYER_ERR
65};
66
67const wxString TM_GIS_SPATIAL_TYPES_STRING[] = {wxTRANSLATE("Lines"),
68 wxTRANSLATE("Points"),
69 wxTRANSLATE("Polygons"),
70 wxTRANSLATE("Raster"),
71 wxTRANSLATE("Unknown"),
72 wxTRANSLATE("Empty"),
73 wxTRANSLATE("Error getting layers type")};
74
75// enum for drawing vertex
76enum tmDRAWING_FLAGS {
77 tmDRAW_VERTEX_NONE = 0,
78 tmDRAW_VERTEX_ALL,
79 tmDRAW_VERTEX_BEGIN_END
80};
81
82#endif