1 |
|
2003-04-23 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to |
4 |
|
promote symmetry. There now exists XMLReader and XMLWriter. |
5 |
|
(XMLReader.read): New. Call to read the given file descriptor or |
6 |
|
filename. |
7 |
|
(XMLReader.close): New. Make sure the file is closed. |
8 |
|
(XMLReader.GetFileName): New. Return just the file name that is being |
9 |
|
read from. |
10 |
|
(XMLReader.GetDirectory): New. Return just the directory of the file |
11 |
|
that is being read. |
12 |
|
(XMLReader.AddDispatchers): New. Take a dictionary which contains |
13 |
|
the names of functions to call as the XML tree is parsed. |
14 |
|
(XMLReader.startElementNS): Updated to use new dispatcher dictionary. |
15 |
|
(XMLReader.endElementNS): Updated to use new dispatcher dictionary. |
16 |
|
(SessionLoader): Removed class variables start_dispatcher and |
17 |
|
end_dispatcher since this functionality is now part of a class |
18 |
|
instance. Fixes RTbug #1808. |
19 |
|
(SessionLoader.__init__): Add dispatcher functions. |
20 |
|
(load_xmlfile): Code was moved into the XMLReader.read(). |
21 |
|
(load_session): Use modified SessionLoader. |
22 |
|
|
23 |
|
* Thuban/Model/map.py (Map.GetProjection): New. Returns the |
24 |
|
map's projection. |
25 |
|
|
26 |
|
* Thuban/Model/proj.py (Projection.GetParameters): Renamed to |
27 |
|
GetAllParameters. |
28 |
|
(Projection.GetParameter): Returns the value for the given parameter. |
29 |
|
|
30 |
|
* Thuban/Model/resource.py: Use XMLReader and XMLWriter. |
31 |
|
(GetProjFiles): Renamed from GetProjections. Now returns a list |
32 |
|
of ProjFile objects. |
33 |
|
(GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns |
34 |
|
a list of ProjFile objects whose files are not user defined. |
35 |
|
(GetUserProjFiles): Renamed from GetUserProjections. Returns a |
36 |
|
list of ProjFile objects whose files are user defined. |
37 |
|
(ProjFileReader): Extend new XMLReader. |
38 |
|
|
39 |
|
* Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to |
40 |
|
promote symmetry. |
41 |
|
|
42 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice |
43 |
|
control instead of a wxComboBox. wxChoice controls do not generate |
44 |
|
events as the uses highlights possible choices which fixes problems |
45 |
|
with resizing the dialog when the use selects an option. |
46 |
|
|
47 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice |
48 |
|
control instead of a wxComboBox. |
49 |
|
|
50 |
|
* Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection |
51 |
|
dialog. |
52 |
|
|
53 |
|
* test/test_proj.py (TestProjection.test): New tests for GetParameter |
54 |
|
method. |
55 |
|
|
56 |
|
2003-04-22 Bernhard Herzog <[email protected]> |
57 |
|
|
58 |
|
* Thuban/UI/mainwindow.py: Remove some unused imports and global |
59 |
|
constants |
60 |
|
|
61 |
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape) |
62 |
|
(IdentifyGridCtrl.selected_shape): Use table, not shapetable. |
63 |
|
|
64 |
|
2003-04-17 Bernhard Herzog <[email protected]> |
65 |
|
|
66 |
|
* Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED. |
67 |
|
(Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used |
68 |
|
anymore. |
69 |
|
(Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes) |
70 |
|
(Layer.ShapeType, Layer.Shape): No need to call |
71 |
|
self.open_shapefile since it's always called in __init__ |
72 |
|
|
73 |
|
* Thuban/UI/application.py (ThubanApplication.MainLoop): Removed. |
74 |
|
In wxPython 2.4 there's no need to extend MainLoop anymore since |
75 |
|
wxPython itself makes sure OnExit is called. |
76 |
|
|
77 |
2003-04-16 Jonathan Coles <[email protected]> |
2003-04-16 Jonathan Coles <[email protected]> |
78 |
|
|
79 |
Initial putback of projection management code. Includes new |
Initial putback of projection management code. Includes new |