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