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]> |
2003-04-22 Bernhard Herzog <[email protected]> |
57 |
|
|
58 |
* Thuban/UI/mainwindow.py: Remove some unused imports and global |
* Thuban/UI/mainwindow.py: Remove some unused imports and global |