1 |
|
2002-07-09 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* setup.cfg (bdist_rpm): Add the default value for prefix and tell |
4 |
|
bdist_rpm that we also have an install script. |
5 |
|
(bdist_inno): Add 2002 to the copyright notice. |
6 |
|
|
7 |
|
* setup.py: Create a file in python's site-packages directory to |
8 |
|
make installation of Thuban as a library easier. |
9 |
|
(ThubanInstall.user_options): Add two new options, |
10 |
|
create-init-module and init-module-dir |
11 |
|
(ThubanInstall.expand_with_pure_python_dirs): New method to expand |
12 |
|
filenames for installation in the default directories. |
13 |
|
(ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend |
14 |
|
the inherited methods to capture some filenames before they're |
15 |
|
transformed too much by distutils. |
16 |
|
(ThubanInstall.run): Create the init module if requested. |
17 |
|
(ThubanInstall.thuban_init_filename): New method to return the |
18 |
|
full name of the init module. |
19 |
|
(ThubanInstall.get_outputs): Append the filename of the init |
20 |
|
module. |
21 |
|
|
22 |
|
2002-07-08 Bernhard Herzog <[email protected]> |
23 |
|
|
24 |
|
* setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to |
25 |
|
handle the prefix properly which means that the default for the |
26 |
|
installation prefix should be /usr for RPMs and /usr/local when |
27 |
|
doing a normal source install. |
28 |
|
(bdist_rpm_install_script): Script to override the default install |
29 |
|
commands in the specfile generated by the bdist_rpm command. |
30 |
|
(thuban_bdist_rpm.user_options): Add a prefix option |
31 |
|
(thuban_bdist_rpm.initialize_options): Init the prefix option. |
32 |
|
Create the script files for the spec files as empty files here |
33 |
|
(thuban_bdist_rpm._make_spec_file): Override the inherited method |
34 |
|
to fill the script files with content. |
35 |
|
|
36 |
|
* Thuban/Model/save.py (relative_filename): Wrapper around |
37 |
|
Thuban.Lib.fileutil.relative_filename that accepts an empty dir |
38 |
|
argument. save_session now automatically uses this version, |
39 |
|
solving a problem when saving to a relative filename. |
40 |
|
|
41 |
|
* setup.py: In the setup call, make sure that the library |
42 |
|
directories are under $prefix/lib not directly under $prefix. |
43 |
|
|
44 |
|
2002-06-20 Jan-Oliver Wagner <[email protected]> |
45 |
|
|
46 |
|
* Thuban/Model/extension.py: new module to handle extension objects. |
47 |
|
* Thuban/Model/messages.py: new messages for extensions. |
48 |
|
* Thuban/Model/session.py (Session.Extensions, Session.HasExtensions, |
49 |
|
Session.AddExtension): new for handling extensions. |
50 |
|
Also some other minor changes to round up extension handling. |
51 |
|
* Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization |
52 |
|
of Extension titles and title and names of its objects. |
53 |
|
|
54 |
|
2002-05-29 Bernhard Herzog <[email protected]> |
55 |
|
|
56 |
|
* Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind |
57 |
|
the events for a command. |
58 |
|
(MainWindow.add_toolbar_command, MainWindow.add_menu_command): |
59 |
|
Call bind_command_events to bind the events. add_toolbar_command |
60 |
|
can now bind events too so that it's possible to have commands |
61 |
|
that are only available through the toolbar. |
62 |
|
(MainWindow.init_ids): New instance variable events_bound to keep |
63 |
|
track of for which commands events have been bound. |
64 |
|
|
65 |
|
2002-05-28 Bernhard Herzog <[email protected]> |
66 |
|
|
67 |
|
* Thuban/UI/menu.py: New module to build and manage menus. |
68 |
|
|
69 |
|
* Thuban/UI/mainwindow.py: Remove some unused imports. |
70 |
|
(MainWindow.__init__, main_menu): move the definition of the main |
71 |
|
menu from __init__ to the Menu instance main_menu. |
72 |
|
(MainWindow.build_menu_bar, MainWindow.build_menu): New methods to |
73 |
|
build the menu bar and sub-menus from a menu description. |
74 |
|
|
75 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Read the |
76 |
|
startup file |
77 |
|
(ThubanApplication.read_startup_files): New method to run |
78 |
|
~/.thuban/thubanstart.py |
79 |
|
|
80 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar): |
81 |
|
Move the toolbar definition to the Menu instance main_toolbar. |
82 |
|
(MainWindow.build_toolbar): New method to build the toolbar |
83 |
|
similar to the build_menu methods |
84 |
|
|
85 |
|
2002-05-23 Bernhard Herzog <[email protected]> |
86 |
|
|
87 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of |
88 |
|
layer_outline_color. Fix it in the definition of the command too. |
89 |
|
|
90 |
|
* Thuban/UI/command.py (Command): Fix typo in doc string |
91 |
|
|
92 |
|
2002-05-22 Bernhard Herzog <[email protected]> |
93 |
|
|
94 |
|
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo |
95 |
|
in the docstring |
96 |
|
|
97 |
|
2002-05-15 Bernhard Herzog <[email protected]> |
98 |
|
|
99 |
|
* Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None |
100 |
|
when the shapefile is empty. |
101 |
|
(Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may |
102 |
|
now return None for empty shapefiles. Update doc-strings. |
103 |
|
|
104 |
|
* Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with |
105 |
|
the layer's bbox being None. |
106 |
|
|
107 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the |
108 |
|
layer's bbox being None. |
109 |
|
|
110 |
|
* Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when |
111 |
|
necessary. |
112 |
|
(MapCanvas.__init__): New instance variables, last_selected_layer |
113 |
|
and last_selected_shape to determine how the selection has |
114 |
|
changed. |
115 |
|
|
116 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Do not call |
117 |
|
AutoSizeColumns because it will cause a traversal of the entire |
118 |
|
table which for large .dbf files will take a very long time. |
119 |
|
|
120 |
|
2002-05-14 Bernhard Herzog <[email protected]> |
121 |
|
|
122 |
|
* Thuban/Model/layer.py (Layer.open_shapefile): Choose a better |
123 |
|
maximum depth for the tree than shapelib does by default. |
124 |
|
|
125 |
|
2002-05-10 Bernhard Herzog <[email protected]> |
126 |
|
|
127 |
|
* setup.py (py_modules): The shptree modules doesn't have a |
128 |
|
wrapper, so don't include it in the py_modules |
129 |
|
|
130 |
|
2002-05-08 Bernhard Herzog <[email protected]> |
131 |
|
|
132 |
|
* extensions/shapelib/shptree.c (compare_ints): Make arguments |
133 |
|
const void * as in the qsort prototype |
134 |
|
(SHPTreeFindLikelyShapes): Remove some unused variables. |
135 |
|
|
136 |
|
* Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view |
137 |
|
maintains to redraw the window during a drag. |
138 |
|
(MapCanvas.unprojected_rect_around_point): New method to determine |
139 |
|
a small region around a point for hit-testing. |
140 |
|
(MapCanvas.find_shape_at): Only test the shapes in a small region |
141 |
|
around the point. |
142 |
|
|
143 |
|
* setup.py: Increment the version to 0.1.2 |
144 |
|
|
145 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a |
146 |
|
debug print and set session to None after unsubscribing |
147 |
|
|
148 |
|
2002-05-07 Bernhard Herzog <[email protected]> |
149 |
|
|
150 |
|
* Data/iceland_sample.session, Data/iceland_sample.thuban: Rename |
151 |
|
the file to have a .thuban extension. |
152 |
|
|
153 |
|
* Thuban/UI/tree.py (session_channels): New class constant with |
154 |
|
all the session channels to subscribe to to update the tree |
155 |
|
(SessionTreeCtrl.session_changed): Remember the session so that we |
156 |
|
can unsubscribe properly. Use the new class constant to |
157 |
|
unsubscribe from the old session and subscribe to the new one. |
158 |
|
(SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all |
159 |
|
subscriptions of the SessionTreeCtrl. |
160 |
|
(SessionTreeView.OnClose): Call the tree's unsubscribe_all method. |
161 |
|
|
162 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show |
163 |
|
Session Tree" command to the file menu. |
164 |
|
|
165 |
|
* Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap |
166 |
|
as update_region to the renderer. |
167 |
|
|
168 |
|
* Thuban/UI/renderer.py |
169 |
|
(ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The |
170 |
|
update box is now directly a tuple, not a wxRect anymore. |
171 |
|
|
172 |
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug |
173 |
|
prints. |
174 |
|
|
175 |
2002-05-07 Bernhard Herzog <[email protected]> |
2002-05-07 Bernhard Herzog <[email protected]> |
176 |
|
|
177 |
* setup.py: Add the shptree extension module. See |
* setup.py: Add the shptree extension module. See |