Parent Directory
|
Revision Log
Sticky Revision: |
made a copy
Fixed doc-strings to comply with coding_guidelines.
(Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers, Map.Layers, Map.HasLayers, Map.MoveLayerToTop, Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom, Map.ProjectedBoundingBox, Map.GetProjection): Improved/added doc string. (Map.BoundingBox): Removed superfluous test for label_layer and improved doc string. (Map.TreeInfo): Added label_layer and improved sdo string.
(Map.SetProjection): Send the old projection as an argument to listeners of the MAP_PROJECTION_CHANGED event.
(Map.TopLayer, Map.BottomLayer): Renamed to MoveLayerToTop and MoveLayerToBottom respectively. Fixes RTBug #1907.
(Map.TopLayer(), Map.BottomLayer()): New, place layer at top/bottom of layer stack.
(Map.BoundingBox): Fix typo in comment.
Explicit imports.
(Map.GetProjection): New. Returns the map's projection.
(Map): Forward LAYER_CHANGED messages.
(Map): Rename messages and use new, more specific, messages.
Replace user string by _() for i18n.
(Map.forwarded_channels): Forward the CHANGED channel too. (Map.__init__): Call the Modifiable constructor as well.
(Map.CanRemoveLayer): New method to determine whether a given layer can be deleted.
(Map.ClearLayers): New method to delete all layers. (Map.Destroy): Destroy the label_layer as well and call the inherited Desatroymethod first so that no more messages are issued. (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED message if the stacking order actually has changed. Add doc-strings. (Map.BoundingBox): Correct the doc-string. (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers) (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
(Map.subscribe_layer_channels) (Map.unsubscribe_layer_channels): Put the code that (un)subscribes to a layer's channels into separate methods. (Map.RemoveLayer, Map.AddLayer): Call the new methods (Map.Destroy): Unsubscribe from a layer's channels before destroying it.
* Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
* Thuban/UI/tree.py (color_string): Removed. No longer used. (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split update_tree into update_tree and add_items. The tree now uses a more generic way to display the contents of the tree. (SessionTreeCtrl): Add a doc string explaining the TreeInfo method * Thuban/Model/layer.py (Layer.TreeInfo), Thuban/Model/extension.py (Extension.TreeInfo), Thuban/Model/map.py (Map.TreeInfo), Thuban/Model/session.py (Session.TreeInfo): Add TreeInfo methods to implement the new tree view update scheme
* Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with the layer's bbox being None.
* Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer messages
import all the source files
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |