1 |
|
2003-04-07 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item |
4 |
|
to the map module |
5 |
|
|
6 |
|
2003-04-07 Bernhard Herzog <[email protected]> |
7 |
|
|
8 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in |
9 |
|
favor of ToggleSessionTree |
10 |
|
(MainWindow.ToggleSessionTree): New method to toggle visibility of |
11 |
|
the session tree. |
12 |
|
(MainWindow.SessionTreeShown): New method to return whether the |
13 |
|
session tree is currently shown. |
14 |
|
(MainWindow.ToggleLegend): New method to toggle visibility of the |
15 |
|
legend |
16 |
|
(MainWindow.ShowLegend): Implement in terms of ToggleLegend and |
17 |
|
LegendShown |
18 |
|
(MainWindow.LegendShown): New method to return whether the legend |
19 |
|
is currently shown. |
20 |
|
(_method_command): Add checked parameter so we can define check |
21 |
|
menu items |
22 |
|
(_has_tree_window_shown, _has_legend_shown): Use the appropriate |
23 |
|
mainwindow methods. |
24 |
|
(show_session_tree, show_legend commands): Removed. |
25 |
|
(toggle_session_tree, toggle_legend commands): New commands to |
26 |
|
toggle the visibility of the dialogs |
27 |
|
|
28 |
|
2003-04-07 Jonathan Coles <[email protected]> |
29 |
|
|
30 |
|
* Thuban/UI/classgen.py: Fix Windows problem. |
31 |
|
|
32 |
|
* Thuban/UI/dock.py: Fix Windows problem. |
33 |
|
|
34 |
|
* Thuban/UI/mainwindow.py: Use False instead of false. |
35 |
|
(MainWindow.ShowLegend): Remove unnecessary switch parameter. |
36 |
|
|
37 |
|
2003-04-07 Jonathan Coles <[email protected]> |
38 |
|
|
39 |
|
Since we now say that the order of the groups in a classification |
40 |
|
matters, it makes sense to be able to manipulate that order. Most |
41 |
|
of the changes to Thuban/Model/classification.py are to that end. |
42 |
|
|
43 |
|
* Thuban/Model/classification.py (Classification.AppendGroup, |
44 |
|
Classification.InsertGroup, Classification.ReplaceGroup, |
45 |
|
Classification.RemoveGroup, Classification.GetGroup): Do as the |
46 |
|
names imply. |
47 |
|
(Classification.FindGroup): This was called GetGroup, but GetGroup |
48 |
|
takes an index, while FindGroup takes a value. |
49 |
|
(Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER |
50 |
|
REFERENCE. Currently there is a cyclic reference between the layer |
51 |
|
and its classification. If the classification doesn't need to know |
52 |
|
its owning layer we can change this, since it may make sense to be |
53 |
|
able to use the same classification with different layers. |
54 |
|
|
55 |
|
* Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup() |
56 |
|
|
57 |
|
* Thuban/UI/classgen.py: Use Classification.AppendGroup(), |
58 |
|
not AddGroup() |
59 |
|
|
60 |
|
* Thuban/UI/classifier.py: Now that we can depend on the order in |
61 |
|
a Classification and have methods to manipulate that order we don't |
62 |
|
need to use our own data structures in the grid. We can simply make |
63 |
|
the grid/table access the information they need from a copy of |
64 |
|
the classification object. |
65 |
|
(Classifier._OnCloseBtn): Event handler for when the user clicks |
66 |
|
'Close'. This is needed so if the user applies changes and then |
67 |
|
continues to change the table the user has the option of discarding |
68 |
|
the most recent changes and keeping what they applied. |
69 |
|
|
70 |
|
* Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree" |
71 |
|
into the same group. |
72 |
|
|
73 |
|
* extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled |
74 |
|
with a really old version of proj, PJ_VERSION won't even be defined. |
75 |
|
If it isn't defined then just compile so that the function always |
76 |
|
returns Py_False. |
77 |
|
|
78 |
|
* test/test_classification.py: Fix tests to use the renamed methods. |
79 |
|
Still need to write tests for the new methods. |
80 |
|
|
81 |
|
2003-04-04 Jonathan Coles <[email protected]> |
82 |
|
|
83 |
|
* Thuban/UI/classifier.py (Classifier.__SelectField): Move the |
84 |
|
call to SetSelection out of the method and before the call |
85 |
|
to __SelectField in __init__. This prevents a recursion of events |
86 |
|
when _OnFieldSelect is triggered by the user. |
87 |
|
|
88 |
|
2003-04-04 Jonathan Coles <[email protected]> |
89 |
|
|
90 |
|
* Thuban/Model/classification.py: Rename Color.None to |
91 |
|
Color.Transparent. |
92 |
|
(ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill): |
93 |
|
Don't bother copying the color, since Colors are immutable. |
94 |
|
|
95 |
|
* Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py, |
96 |
|
Thuban/UI/classifier.py, Thuban/UI/mainwindow.py, |
97 |
|
Thuban/UI/renderer.py, Thuban/UI/view.py: |
98 |
|
Rename Color.None to Color.Transparent. |
99 |
|
|
100 |
|
* test/test_classification.py, test/test_load.py: Rename Color.None |
101 |
|
to Color.Transparent. |
102 |
|
|
103 |
2003-04-04 Jonathan Coles <[email protected]> |
2003-04-04 Jonathan Coles <[email protected]> |
104 |
|
|
105 |
* Thuban/Model/classification.py: Fix assert calls. |
* Thuban/Model/classification.py: Fix assert calls. |