1 |
|
2003-11-03 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/baserenderer.py |
4 |
|
(BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue |
5 |
|
method. ReadValue is faster than ReadRowAsDict since it only reads |
6 |
|
one cell especially now that the dbf file objects actually |
7 |
|
implement it. |
8 |
|
|
9 |
|
* Thuban/Model/table.py (DBFTable.ReadValue): Use the new |
10 |
|
read_attribute method of the dbf objects |
11 |
|
|
12 |
|
2003-11-03 Bernhard Herzog <[email protected]> |
13 |
|
|
14 |
|
* Extensions/profiling/profiling.py (popup_dialog_box): New config |
15 |
|
variable to indicate whether the result should be shown in a |
16 |
|
dialog box |
17 |
|
(profile_screen_renderer, time_screen_renderer): Only show a |
18 |
|
dialog box if popup_dialog_box is true. |
19 |
|
(profile_screen_renderer): Flush stdout after the printing the |
20 |
|
first part of the "profiling..." message |
21 |
|
|
22 |
|
* Thuban/UI/baserenderer.py |
23 |
|
(BaseRenderer.draw_shape_layer_incrementally): Cache the pens and |
24 |
|
brushes for the groups so that they're not created over and over |
25 |
|
again |
26 |
|
|
27 |
|
* Thuban/Model/classification.py (Classification.__getattr__) |
28 |
|
(Classification._compile_classification) |
29 |
|
(Classification._clear_compiled_classification): New. Methods to |
30 |
|
manage a 'compiled' representation of the classification groups |
31 |
|
which is created on demand |
32 |
|
(Classification.InsertGroup, Classification.RemoveGroup) |
33 |
|
(Classification.ReplaceGroup): reset the compiled representation |
34 |
|
(Classification.FindGroup): Use the compiled representation to |
35 |
|
find the matching group |
36 |
|
(ClassGroupRange.GetRangeTuple): New. Return the range as a tuple |
37 |
|
|
38 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
39 |
|
|
40 |
|
* Thuban/Model/classification.py (Classification.SetDefaultGroup): |
41 |
|
Send a CLASS_CHANGED message |
42 |
|
(Classification.RemoveGroup): Send a CLASS_CHANGED message and do |
43 |
|
not return the removed group since it wasn't used. |
44 |
|
|
45 |
|
* test/test_classification.py |
46 |
|
(TestClassification.test_set_default_group): New. Test the |
47 |
|
SetDefaultGroup method |
48 |
|
(TestClassification.test_insert_group): New. Test the InsertGroup |
49 |
|
method |
50 |
|
(TestClassification.test_remove_group): New. Test the RemoveGroup |
51 |
|
method |
52 |
|
(TestClassification.test_replace_group): New. Test the |
53 |
|
ReplaceGroup method |
54 |
|
|
55 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
56 |
|
|
57 |
|
* test/test_classification.py (TestClassification.setUp): |
58 |
|
Subscribe to the CLASS_CHANGED messages |
59 |
|
(TestClassification.tearDown): New. Destroy the classification |
60 |
|
properly |
61 |
|
(TestClassification.test_defaults): Add tests for the default line |
62 |
|
width and whether no messages were sent yet |
63 |
|
(TestClassification.test_set_default_properties): Add tests for |
64 |
|
messages and setting the default line width |
65 |
|
(TestClassification.test_add_singleton) |
66 |
|
(TestClassification.test_add_range) |
67 |
|
(TestClassification.test_multiple_groups): Add tests for messages |
68 |
|
|
69 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
70 |
|
|
71 |
|
Some more refactoring in preparation for new tests: |
72 |
|
|
73 |
|
* test/test_classification.py (TestClassification.setUp): New. |
74 |
|
Instantiate the classification here. Update the test methods |
75 |
|
accordingly. |
76 |
|
(TestClassification.test_multiple_groups): Make sure that the two |
77 |
|
singletons matching 1 are considered different. |
78 |
|
|
79 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
80 |
|
|
81 |
|
* test/test_classification.py (red, green, blue): New. These |
82 |
|
constants were used in several cases. Update the relevant methods. |
83 |
|
(TestClassification.test_defaults) |
84 |
|
(TestClassification.test_set_default_properties) |
85 |
|
(TestClassification.test_add_singleton) |
86 |
|
(TestClassification.test_add_range) |
87 |
|
(TestClassification.test_multiple_groups) |
88 |
|
(TestClassification.test_deepcopy): New. These were formerly all |
89 |
|
part of the single method test. |
90 |
|
(TestClassification.test_deepcopy): Removed. |
91 |
|
(TestClassIterator): Removed. The test case is now a method of |
92 |
|
TestClassification since it tests part of the public interface of |
93 |
|
Classification |
94 |
|
(TestClassification.test_iterator): New. Used to be |
95 |
|
TestClassIterator effectively |
96 |
|
|
97 |
|
2003-10-31 Jan-Oliver Wagner <[email protected]> |
98 |
|
|
99 |
|
GUIfied the functions of the profiling extension. |
100 |
|
|
101 |
|
* /Extensions/profiling/__init__.py: New: Init to make this |
102 |
|
directory a package. |
103 |
|
|
104 |
|
* Extensions/profiling/profiling.py: Moved menu entries to |
105 |
|
the Extensions menu. Applied _() for strings. |
106 |
|
(profile_screen_renderer): Catch the detailed printout and present |
107 |
|
it in a dialog. |
108 |
|
(time_screen_renderer): Raise a dialog to present the result instead |
109 |
|
of printing it to stdout. |
110 |
|
|
111 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
112 |
|
|
113 |
|
* test/test_classification.py (TestClassGroupProperties) |
114 |
|
(TestClassGroup, TestClassGroupDefault, TestClassGroupRange) |
115 |
|
(TestClassGroupSingleton, TestClassIterator, TestClassification): |
116 |
|
Split TestClassification into several classes, one for each class |
117 |
|
being tested. TestClassification itself now only tests |
118 |
|
Classification. This split makes changes to the tests a bit easier |
119 |
|
|
120 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
121 |
|
|
122 |
|
* Extensions/profiling/profiling.py: New. Extension to measure |
123 |
|
Thuban performance |
124 |
|
|
125 |
|
2003-10-31 Frank Koormann <[email protected]> |
126 |
|
|
127 |
|
Added two items to legend popup menu: Remove Layer and Show Layer Table |
128 |
|
|
129 |
|
* Thuban/UI/legend.py (LegendPanel._OnRemoveLayer, |
130 |
|
LegendPanel._OnShowTable): New event handlers, call the corresponding |
131 |
|
mainwindow methods. |
132 |
|
(LegendTree._OnRightClick): Added items to popup menu. |
133 |
|
|
134 |
2003-10-30 Bernhard Herzog <[email protected]> |
2003-10-30 Bernhard Herzog <[email protected]> |
135 |
|
|
136 |
* Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle |
* Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle |