1 |
|
2002-09-02 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/view.py: Get rid of the idle redraw. This is done by |
4 |
|
wxWindows already and our implementation doesn't work correctly |
5 |
|
with wxGTK 2.3: |
6 |
|
(MapCanvas.__init__): Remove the instance variable |
7 |
|
(MapCanvas.OnPaint): Always call do_redraw when there's a map to |
8 |
|
be drawin |
9 |
|
(MapCanvas.OnIdle): Removed. |
10 |
|
|
11 |
|
* Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add |
12 |
|
a parameter to determine the size of the rectangle. |
13 |
|
(MapCanvas.find_shape_at): Create the box around the point on a |
14 |
|
layer by layer basis and make the size depend on the shape type. |
15 |
|
This solves a problem with the selection of point shapes at the |
16 |
|
border of the layer's bounding box |
17 |
|
|
18 |
|
2002-08-30 Bernhard Herzog <[email protected]> |
19 |
|
|
20 |
|
* Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method |
21 |
|
for the sensitivity of remove layer. |
22 |
|
(_can_remove_layer): New. Sensitivity callback for remove layer |
23 |
|
(Command layer_remove): Use _can_remove_layer |
24 |
|
|
25 |
|
* Thuban/Model/map.py (Map.CanRemoveLayer): New method to |
26 |
|
determine whether a given layer can be deleted. |
27 |
|
|
28 |
|
* Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint) |
29 |
|
(MapCanvas.do_redraw): Get rid of the unused update_region |
30 |
|
instance variable |
31 |
|
|
32 |
|
* Thuban/UI/view.py: Add/update some doc-strings. |
33 |
|
|
34 |
|
* test/: new subdirectory with a bunch of unit tests. |
35 |
|
|
36 |
|
* test/README, test/test_table.py, test/test_save.py, |
37 |
|
test/test_menu.py, test/test_load.py: Initial set of tests and |
38 |
|
brief instructions on how to run them |
39 |
|
|
40 |
|
2002-08-29 Bernhard Herzog <[email protected]> |
41 |
|
|
42 |
|
* Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle |
43 |
|
arcs with multiple parts. |
44 |
|
|
45 |
|
* Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp): |
46 |
|
Handle degenrate rectangles. |
47 |
|
|
48 |
|
* Thuban/Model/table.py: Make writing records work correctly: |
49 |
|
(Table.__init__): Keep track of whether the DBF is open for |
50 |
|
writing |
51 |
|
(Table.write_record): Open the DBF file for writing when necessary |
52 |
|
|
53 |
|
2002-08-27 Bernhard Herzog <[email protected]> |
54 |
|
|
55 |
|
* Thuban/Model/table.py (Table.write_record, Table.__init__): Open |
56 |
|
dbf files only for reading by default. Use a new writable dbf |
57 |
|
object for writing. |
58 |
|
|
59 |
|
2002-08-26 Bernhard Herzog <[email protected]> |
60 |
|
|
61 |
|
* Thuban/UI/mainwindow.py: Refactor the context creation: |
62 |
|
(MainWindow.Context): New method to return a context |
63 |
|
(MainWindow.invoke_command, MainWindow.update_command_ui): Use the |
64 |
|
new method |
65 |
|
|
66 |
|
* Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the |
67 |
|
layer table specific code from TableGrid into LayerTableGrid |
68 |
|
(TableFrame, LayerTableFrame): Split the layer table specific code |
69 |
|
from TableFrame into LayerTableFrame |
70 |
|
(LayerTableGrid.select_shape): Remove a debug print |
71 |
|
|
72 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the |
73 |
|
LayerTableFrame |
74 |
|
|
75 |
|
2002-08-23 Bernhard Herzog <[email protected]> |
76 |
|
|
77 |
|
* Thuban/Model/layer.py (Layer.__init__): Make sure we have an |
78 |
|
absolute filename. |
79 |
|
|
80 |
2002-08-22 Bernhard Herzog <[email protected]> |
2002-08-22 Bernhard Herzog <[email protected]> |
81 |
|
|
82 |
* Thuban/Model/table.py (Table.write_record): New method to write |
* Thuban/Model/table.py (Table.write_record): New method to write |