/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/classifier.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/classifier.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2200 by jan, Fri May 7 20:20:43 2004 UTC revision 2366 by joey, Fri Oct 1 18:24:10 2004 UTC
# Line 685  class Classifier(NonModalNonParentDialog Line 685  class Classifier(NonModalNonParentDialog
685                     FIELDTYPE_INT:    _("Integer"),                     FIELDTYPE_INT:    _("Integer"),
686                     FIELDTYPE_DOUBLE: _("Decimal")}                     FIELDTYPE_DOUBLE: _("Decimal")}
687    
688      def __init__(self, parent, name, map, layer, group = None):      def __init__(self, parent, name, layer, group = None):
689          """Create a Properties/Classification dialog for a layer.          """Create a Properties/Classification dialog for a layer.
690          The layer is part of map. If group is not None, select that          The layer is part of map. If group is not None, select that
691          group in the classification table.          group in the classification table.
# Line 697  class Classifier(NonModalNonParentDialog Line 697  class Classifier(NonModalNonParentDialog
697    
698          self.parent.Subscribe(MAP_REPLACED, self.map_replaced)          self.parent.Subscribe(MAP_REPLACED, self.map_replaced)
699          self.layer = layer          self.layer = layer
700          self.map = map          self.map = parent.Map()
701    
702          self.map.Subscribe(MAP_LAYERS_REMOVED, self.map_layers_removed)          self.map.Subscribe(MAP_LAYERS_REMOVED, self.map_layers_removed)
703          self.layer.Subscribe(LAYER_SHAPESTORE_REPLACED,          self.layer.Subscribe(LAYER_SHAPESTORE_REPLACED,
# Line 1510  class ClassGroupPropertiesCtrl(wxWindow, Line 1510  class ClassGroupPropertiesCtrl(wxWindow,
1510    
1511      def _OnLeftDClick(self, event):      def _OnLeftDClick(self, event):
1512          self.DoEdit()          self.DoEdit()
1513    
1514    from Thuban.UI.mainwindow import layer_properties_dialogs
1515    layer_properties_dialogs.add(Layer, Classifier)
1516    layer_properties_dialogs.add(RasterLayer, Classifier)

Legend:
Removed from v.2200  
changed lines
  Added in v.2366

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26