1 |
bh |
32 |
2001-09-06 Bernhard Herzog <[email protected]> |
2 |
|
|
|
3 |
|
|
* Thuban/UI/dialogs.py: New file implementing common classes for |
4 |
|
|
dialogs |
5 |
|
|
|
6 |
|
|
* Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to |
7 |
|
|
the SELECTED_SHAPE message anymore. This is now handled by the |
8 |
|
|
parent. |
9 |
|
|
(TableGrid.select_shape): Only update the selection if the shape |
10 |
|
|
is not None. |
11 |
|
|
(TableFrame): Inherit from the new NonModalDialog class. |
12 |
|
|
(TableFrame.__init__, TableFrame.select_shape): Handle the |
13 |
|
|
SELECT_SHAPE message. |
14 |
|
|
(TableFrame.OnClose): Extend the inherited method to unsubscribe |
15 |
|
|
SELECT_SHAPE |
16 |
|
|
|
17 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.init_dialogs): |
18 |
|
|
(MainWindow.add_dialog): |
19 |
|
|
(MainWindow.dialog_open): |
20 |
|
|
(MainWindow.remove_dialog): |
21 |
|
|
(MainWindow.get_open_dialog): New methods to maintain a dictionary |
22 |
|
|
of opened non-modal dialogs. |
23 |
|
|
|
24 |
|
|
(MainWindow.__init__): Initialize the new non-modal dictionary |
25 |
|
|
management code |
26 |
|
|
(MainWindow.LayerShowTable): maintain separate dialogs for each |
27 |
|
|
table using the non-modal dialog management code to only open a |
28 |
|
|
view once for each table. |
29 |
|
|
|
30 |
|
|
(MainWindow.IdentifyTool): |
31 |
|
|
(MainWindow.__init__): |
32 |
|
|
(MainWindow.identify_view_on_demand): Don't open the identify view |
33 |
|
|
in IdentifyTool anymore. This will be done automatically by the |
34 |
|
|
new method identify_view_on_demand which handles the |
35 |
|
|
SELECTED_SHAPE message so that the identify view will be opened on |
36 |
|
|
demand |
37 |
|
|
|
38 |
|
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove |
39 |
|
|
the interactor argument. The SELECTED_SHAPE message is now handled |
40 |
|
|
by the parent. |
41 |
|
|
(IdentifyView.__init__): Add the interactor argument so that we |
42 |
|
|
can handle the SELECTED_SHAPE message here |
43 |
|
|
(IdentifyView.selected_shape): New method to handle the |
44 |
|
|
SELECTED_SHAPE messages |
45 |
|
|
|
46 |
|
|
* Thuban/UI/identifyview.py (IdentifyView): Derive from the new |
47 |
|
|
NonModalDialog class |
48 |
|
|
(IdentifyView.OnClose): Extend the inherited version to |
49 |
|
|
unsubscribe SELECT_SHAPE |
50 |
|
|
|
51 |
|
|
* Thuban/Model/session.py (Session.UnsetModified): Remove debug prints |
52 |
|
|
|
53 |
bh |
26 |
2001-09-05 Bernhard Herzog <[email protected]> |
54 |
|
|
|
55 |
|
|
* Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor. |
56 |
|
|
|
57 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): New argument |
58 |
|
|
interactor to pass through to the MapCanvas |
59 |
|
|
|
60 |
|
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Use the new |
61 |
|
|
argument to the MainWindow constructor to get rid of the ugly hack |
62 |
|
|
that made main.app available early just so that the mapcanvas |
63 |
|
|
could access the interactor object. |
64 |
|
|
|
65 |
bh |
19 |
2001-09-04 Bernhard Herzog <[email protected]> |
66 |
|
|
|
67 |
bh |
22 |
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method |
68 |
|
|
that runs a modal message box |
69 |
|
|
(MainWindow.OnClose): Use the new method |
70 |
|
|
(MainWindow.RemoveLayer): Just do nothing in case no layer is |
71 |
|
|
selected. The command should be grayed out anyway, so there's no |
72 |
|
|
need to pop up a message box. |
73 |
|
|
(MainWindow.AddLayer): Pop up a message box with an error message |
74 |
|
|
if the shape file can't be opened |
75 |
|
|
|
76 |
|
|
* Thuban/Model/layer.py (Layer.__init__): Open the shapefile |
77 |
|
|
immediately. This will cause an exception in case the file can't |
78 |
|
|
be opened and we can display an appropriate message. |
79 |
|
|
|
80 |
bh |
19 |
* MANIFEST.in: Add extensions/pyprojection/LICENSE |
81 |
|
|
|
82 |
|
|
* setup.py (thuban_bdist_rpm): New class implementing a Thuban |
83 |
|
|
specific bdist_rpm command. |
84 |
|
|
|
85 |
|
|
* Thuban/UI/main.py: Catch ImportError exceptions when importing |
86 |
|
|
the locale module because it may not be available on some |
87 |
|
|
installations. |
88 |
|
|
|
89 |
|
|
* extensions/pyprojection/LICENSE: Copy of the license text in |
90 |
|
|
Projection.i. Having it in a separate file makes it easier to |
91 |
|
|
refer to license text in e.g. RPMs |
92 |
|
|
|
93 |
bh |
18 |
2001-09-03 Bernhard Herzog <[email protected]> |
94 |
|
|
|
95 |
bh |
19 |
* setup.py: use wx-config instead of wxgtk-config because it's |
96 |
|
|
more generic |
97 |
|
|
|
98 |
|
|
* setup.py (ThubanInstall.get_outputs): Add the symlink in |
99 |
|
|
<prefix>/bin to the outputs |
100 |
|
|
(ThubanInstall.link_file): New method to link files. We need this |
101 |
|
|
because the standard copy_files refuses to link non-existing |
102 |
|
|
files. |
103 |
|
|
(ThubanInstall.run): Remove the leading install root from the |
104 |
|
|
script filename if an install root was specified and use the new |
105 |
|
|
link_file method |
106 |
|
|
|
107 |
bh |
18 |
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to |
108 |
|
|
the window when the first layer is added to the map. |
109 |
|
|
|
110 |
|
|
* setup.py (ThubanInstall.run): Honor the build root (self.root) |
111 |
|
|
when linking thuban.py to <prefix>/bin |
112 |
|
|
|
113 |
bh |
16 |
2001-08-31 Bernhard Herzog <[email protected]> |
114 |
|
|
|
115 |
|
|
* setup.py: In the setup call, the install parameters shouldn't |
116 |
|
|
have trailing slashes because distutils on non-posix platforms |
117 |
|
|
doesn't like that. The same applies to other directories like |
118 |
|
|
"Resources/Bitmaps" |
119 |
|
|
|
120 |
|
|
In the configuration section for nt, move the wxWindows directory |
121 |
|
|
optins into the part clearly marked as editable. |
122 |
|
|
|
123 |
|
|
(InstallLocal.initialize_options): |
124 |
|
|
(InstallLocal.user_options): remove the currently unused debug |
125 |
|
|
flag |
126 |
|
|
(thuban_build_py.find_all_modules): Add this method so that it |
127 |
|
|
works for our case of having packages and modules in one |
128 |
|
|
distribution as well. |
129 |
|
|
(ThubanInstall.initialize_options): |
130 |
|
|
(ThubanInstall.finalize_options): |
131 |
|
|
(ThubanInstall.user_options): |
132 |
|
|
(ThubanInstall.boolean_options): Add new options, do-symlink and |
133 |
|
|
extra files. Since these are the first ThubanInstall specific |
134 |
|
|
options, override user_options and boolean_options |
135 |
|
|
(ThubanInstall.run): Honor the new do-symlink and extra-files |
136 |
|
|
options. |
137 |
|
|
(ThubanInstall.get_outputs): Add to override the base-class's |
138 |
|
|
version and add the extra-files to the outputs |
139 |
|
|
(bdist_inno): New class for windows distributions with Inno Setup |
140 |
|
|
(InnoIconItem): Helper class for bdist_inno |
141 |
|
|
(thuban_bdist_inno): Thuban specific version of bdist_inno. Added |
142 |
|
|
this together with the appropriate parameters, to the setup call. |
143 |
|
|
|
144 |
|
|
* setup.cfg (bdist_inno): added new section for the inno setup |
145 |
|
|
installer |
146 |
|
|
|
147 |
|
|
* Thuban/UI/tree.py (myTreeCtrlPanel.__init__): New inst var |
148 |
|
|
changing_selection to avoid recursive selection events when |
149 |
|
|
modifying the selection in response to a selection event. |
150 |
|
|
(myTreeCtrlPanel.normalize_selection): Set the new inst var when |
151 |
|
|
changing the tree's selection. |
152 |
|
|
(myTreeCtrlPanel.OnSelChanged): Only normalize the selection when |
153 |
|
|
we're not being called indirectly from normalize_selection. |
154 |
|
|
|
155 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.update_command_ui): Call |
156 |
|
|
event.Check only if the command is actuall checkable. |
157 |
|
|
(MainWindow.__init__): Call the toolbar's Realize method to make |
158 |
|
|
sure that the items are actually shown |
159 |
|
|
|
160 |
bh |
7 |
2001-08-28 Bernhard Herzog <[email protected]> |
161 |
|
|
|
162 |
bh |
9 |
* setup.py: Fix some doc strings |
163 |
|
|
|
164 |
bh |
7 |
* ChangeLog: started |
165 |
|
|
|