1 |
|
2003-05-08 Frank Koormann <[email protected]> |
2 |
|
|
3 |
|
Coding style updates |
4 |
|
|
5 |
|
* test/test_scalebar.py: Replaced tab indentation by spaces. |
6 |
|
|
7 |
|
* Thuban/UI/scalebar.py: Explicit imports. |
8 |
|
|
9 |
|
2003-05-08 Frank Koormann <[email protected]> |
10 |
|
|
11 |
|
* Thuban/UI/scalebar.py |
12 |
|
(ScaleBar.DrawScalebar): Format string bug fixed. |
13 |
|
|
14 |
|
2003-05-08 Frank Koormann <[email protected]> |
15 |
|
|
16 |
|
Reorganization of scalebar component (no wx in Thuban/Model) |
17 |
|
|
18 |
|
* Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py |
19 |
|
(deriveInterval): |
20 |
|
Calculate scalebar interval and unit which fits in width for scale. |
21 |
|
(roundInterval): Round float. |
22 |
|
|
23 |
|
* Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering |
24 |
|
|
25 |
|
* test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods. |
26 |
|
|
27 |
|
* Thuban/UI/legend.py: Import Thuban.UI.scalebar |
28 |
|
|
29 |
|
2003-05-08 Frank Koormann <[email protected]> |
30 |
|
|
31 |
|
* Thuban/UI/legend.py (ScalebarBitmap.SetCanvas): |
32 |
|
Initialize ScaleBar with canvas.map |
33 |
|
|
34 |
|
* Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New, |
35 |
|
round intervals to display smarter lengths |
36 |
|
(ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a |
37 |
|
layer. If the maps has no projection applied grey the scalebar. |
38 |
|
|
39 |
|
2003-05-07 Frank Koormann <[email protected]> |
40 |
|
|
41 |
|
Basic Scalebar features added. |
42 |
|
|
43 |
|
* Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering. |
44 |
|
|
45 |
|
* Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap |
46 |
|
(ScaleBarBitmap): New, links the scalebar bitmap with view messages |
47 |
|
and the renderer. |
48 |
|
|
49 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED. |
50 |
|
|
51 |
|
* Thuban/UI/messages.py: SCALE_CHANGED added. |
52 |
|
|
53 |
|
2003-05-07 Bernhard Herzog <[email protected]> |
54 |
|
|
55 |
|
* Thuban/Model/session.py (Session.__init__): New instance |
56 |
|
variable shapestores to hold a list of all open shapestore objects |
57 |
|
(Session.ShapeStores): New. Accessor method for the shapestores |
58 |
|
list. |
59 |
|
(Session._add_shapestore, Session._clean_weak_store_refs): New. |
60 |
|
Internal methods to maintain the shapestores list. |
61 |
|
(Session.Tables): New. Return all tables open in the session. |
62 |
|
(Session.OpenShapefile): Insert the new ShapeStore into the |
63 |
|
shapestores list. |
64 |
|
|
65 |
|
* test/test_session.py (TestSessionSimple.test_initial_state): Add |
66 |
|
tests for ShapeStores and Tables |
67 |
|
(TestSessionWithContent.test_shape_stores) |
68 |
|
(TestSessionWithContent.test_tables): New. Test cases for |
69 |
|
ShapeStores and Tables |
70 |
|
|
71 |
|
2003-05-07 Bernhard Herzog <[email protected]> |
72 |
|
|
73 |
|
* Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict): |
74 |
|
Add comments about the optimizations used. |
75 |
|
(AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New. |
76 |
|
Implement the ReadValue table interface method. |
77 |
|
|
78 |
|
* test/test_transientdb.py |
79 |
|
(TestTransientTable.run_iceland_political_tests) |
80 |
|
(TestTransientTable.test_transient_joined_table): Add tests for |
81 |
|
ReadValue |
82 |
|
|
83 |
|
2003-05-07 Frank Koormann <[email protected]> |
84 |
|
|
85 |
|
* Resources/Bitmaps/fulllayerextent.xpm, |
86 |
|
Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with |
87 |
|
new icons. |
88 |
|
|
89 |
2003-05-06 Bernhard Herzog <[email protected]> |
2003-05-06 Bernhard Herzog <[email protected]> |
90 |
|
|
91 |
* Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery): |
* Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery): |