File: messages.py

package info (click to toggle)
thuban 1.2.2-14
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 9,176 kB
  • sloc: python: 30,410; ansic: 6,181; xml: 4,234; cpp: 1,595; makefile: 145
file content (53 lines) | stat: -rw-r--r-- 1,627 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Copyright (c) 2001, 2003 by Intevation GmbH
# Authors:
# Bernhard Herzog <bh@intevation.de>
#
# This program is free software under the GPL (>=v2)
# Read the file COPYING coming with Thuban for details.

"""
Define the message types used by the classes implementing Thuban's data
model. The messages types are simply strings. The message system itself
is implemented in Thuban.Lib.connector.
"""
__version__ = "$Revision: 1823 $"

# Common message types
TITLE_CHANGED = "TITLE_CHANGED"
CHANGED = "CHANGED"

# ProjFile message types
PROJECTION_ADDED = "PROJECTION_ADDED"
PROJECTION_REPLACED = "PROJECTION_REPLACED"
PROJECTION_REMOVED = "PROJECTION_REMOVED"

# classification specific message types
CLASS_CHANGED = "CLASS_CHANGED"

# layer specific message types
LAYER_PROJECTION_CHANGED = "LAYER_PROJECTION_CHANGED"
LAYER_LEGEND_CHANGED = "LAYER_LEGEND_CHANGED"
LAYER_VISIBILITY_CHANGED = "LAYER_VISIBILITY_CHANGED"
LAYER_CHANGED = "LAYER_CHANGED"
LAYER_SHAPESTORE_REPLACED = "LAYER_SHAPESTORE_REPLACED"

# Map specific message types
MAP_STACKING_CHANGED = "MAP_STACKING_CHANGED"
MAP_LAYERS_CHANGED = "MAP_LAYERS_CHANGED"
MAP_LAYERS_ADDED = "MAP_LAYERS_ADDED"
MAP_LAYERS_REMOVED = "MAP_LAYERS_REMOVED"
MAP_PROJECTION_CHANGED = "MAP_PROJECTION_CHANGED"

# Extension specific message types
EXTENSION_CHANGED = "EXTENSION_CHANGED"
EXTENSION_OBJECTS_CHANGED = "EXTENSION_OBJECTS_CHANGED"

# Session specific message types
MAPS_CHANGED = "MAPS_CHANGED"
EXTENSIONS_CHANGED = "EXTENSIONS_CHANGED"
FILENAME_CHANGED = "FILENAME_CHANGED"

TABLE_REMOVED = "TABLE_REMOVED"

DBCONN_ADDED = "DBCONN_ADDED"
DBCONN_REMOVED = "DBCONN_REMOVED"