1 |
|
2002-08-22 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/mainwindow.py (make_check_current_tool) |
4 |
|
(_tool_command): Put the code that generates the "checked" |
5 |
|
callback into a separate function so that we can reuse it |
6 |
|
elsewhere |
7 |
|
|
8 |
|
* Thuban/Model/save.py (Saver): New class to handle serializing a |
9 |
|
session into an XML file. The main reason to introduce a class is |
10 |
|
that applications built on Thuban can derive from it so that they |
11 |
|
can save additional information in a session file. |
12 |
|
(save_session): Delegate almost all the work to the Saver class. |
13 |
|
Rename the filename argument to file because it may be a file like |
14 |
|
object now. |
15 |
|
|
16 |
|
* Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility |
17 |
|
code. Remove the little test code which would be executed when the |
18 |
|
module is run as a script which didn't work anymore since it can't |
19 |
|
import the other Thuban modules. |
20 |
|
(ProcessSession, load_session): Refactor the ProcessSession to |
21 |
|
have one method for each element start and end tag so that derived |
22 |
|
classes can easily override the processing of individual tags. |
23 |
|
Also, always parse with namespaces enabled because applications |
24 |
|
built on top of Thuban will likely use namespaces if they extend |
25 |
|
the session file format. |
26 |
|
|
27 |
|
2002-08-21 Bernhard Herzog <[email protected]> |
28 |
|
|
29 |
|
* setup.py (ThubanInstall.run): Don't repr install_lib_orig |
30 |
|
because thubaninit_contents will do it for us. |
31 |
|
|
32 |
|
2002-08-16 Jan-Oliver Wagner <[email protected]> |
33 |
|
|
34 |
|
* Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if |
35 |
|
tree window already open |
36 |
|
|
37 |
|
2002-08-15 Bernhard Herzog <[email protected]> |
38 |
|
|
39 |
|
* Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method |
40 |
|
with self. |
41 |
|
|
42 |
|
* Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse |
43 |
|
when we have actually captured it. |
44 |
|
|
45 |
|
* Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the |
46 |
|
shapefile and destroy the table. |
47 |
|
|
48 |
|
* Thuban/Model/table.py (Table.Destroy): New. Close the DBF file. |
49 |
|
|
50 |
|
2002-08-14 Bernhard Herzog <[email protected]> |
51 |
|
|
52 |
|
* Thuban/UI/controls.py (RecordTable.__init__): Remove the unused |
53 |
|
instance variable columns |
54 |
|
(RecordTable.GetTypeName): row and col may be negative in some |
55 |
|
cases. |
56 |
|
|
57 |
|
* setup.py (InstallLocal.initialize_options) |
58 |
|
(InstallLocal.finalize_options, InstallLocal.user_options): New |
59 |
|
option create-init-file to build a thubaninit.py when running |
60 |
|
install_local |
61 |
|
(InstallLocal.run): Create the thubaninit.py module when requested |
62 |
|
(thubaninit_contents): Split the template into several parts and |
63 |
|
create a new function thubaninit_contents that creates the |
64 |
|
contents of a thubaninit module. |
65 |
|
(ThubanInstall.run): Use the new function to create the thubaninit |
66 |
|
module. |
67 |
|
|
68 |
|
2002-07-30 Bernhard Herzog <[email protected]> |
69 |
|
|
70 |
|
* Thuban/UI/application.py (ThubanApplication.OnExit): Do some |
71 |
|
cleanup. |
72 |
|
(ThubanApplication.MainLoop): Extend to automatically call OnExit. |
73 |
|
|
74 |
|
* Thuban/Model/session.py (Session.Destroy): Don't bypass the |
75 |
|
direct base class' Destroy method. |
76 |
|
|
77 |
|
* Thuban/Model/map.py (Map.ClearLayers): New method to delete all |
78 |
|
layers. |
79 |
|
(Map.Destroy): Destroy the label_layer as well and call the |
80 |
|
inherited Desatroymethod first so that no more messages are |
81 |
|
issued. |
82 |
|
(Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED |
83 |
|
message if the stacking order actually has changed. Add |
84 |
|
doc-strings. |
85 |
|
(Map.BoundingBox): Correct the doc-string. |
86 |
|
(Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers) |
87 |
|
(Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings. |
88 |
|
|
89 |
|
* Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete |
90 |
|
all labels. |
91 |
|
|
92 |
|
2002-07-29 Bernhard Herzog <[email protected]> |
93 |
|
|
94 |
|
* Thuban/Model/map.py (Map.subscribe_layer_channels) |
95 |
|
(Map.unsubscribe_layer_channels): Put the code that (un)subscribes |
96 |
|
to a layer's channels into separate methods. |
97 |
|
(Map.RemoveLayer, Map.AddLayer): Call the new methods |
98 |
|
(Map.Destroy): Unsubscribe from a layer's channels before |
99 |
|
destroying it. |
100 |
|
|
101 |
|
* Thuban/UI/view.py (MapCanvas.find_shape_at): Change the |
102 |
|
selected_layer parameter to searched_layer which is the layer to |
103 |
|
search in. |
104 |
|
(MapCanvas.SelectShapeAt): New parameter layer to restrict the |
105 |
|
search to that layer. Return the selected layer and shape. |
106 |
|
|
107 |
|
* Examples/simple_extensions/simple_tool.py (simple_tool): Fix a |
108 |
|
typo |
109 |
|
|
110 |
2002-07-24 Bernhard Herzog <[email protected]> |
2002-07-24 Bernhard Herzog <[email protected]> |
111 |
|
|
112 |
|
* Thuban/UI/application.py (ThubanApplication.create_session): |
113 |
|
Extend the doc string. |
114 |
|
(ThubanApplication.subscribe_session) |
115 |
|
(ThubanApplication.unsubscribe_session): New methods to |
116 |
|
subscribe/unsubscribe to/from session channels. |
117 |
|
(ThubanApplication.SetSession): Call the new methods here. |
118 |
|
(ThubanApplication.maps_changed, ThubanApplication.set_map): |
119 |
|
Renamed set_map to maps_changed. Its now a subscriber for |
120 |
|
MAPS_CHANGED. |
121 |
|
|
122 |
|
* Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct |
123 |
|
x-coordinate in case of simple clicks |
124 |
|
|
125 |
|
* Thuban/Model/base.py (Modifiable.changed): Apply the args tuple, |
126 |
|
don't pass it as a parameter |
127 |
|
|
128 |
|
* Thuban/Model/session.py (Session.RemoveMap): New |
129 |
|
|
130 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial |
131 |
window size into a parameter. |
window size into a parameter. |
132 |
|
|