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

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

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

revision 1113 by bh, Fri May 30 15:59:49 2003 UTC revision 1115 by bh, Fri May 30 16:30:26 2003 UTC
# Line 557  class LegendTree(wxTreeCtrl): Line 557  class LegendTree(wxTreeCtrl):
557    
558          if not root.IsOk():          if not root.IsOk():
559              self.image_list = wxImageList(BMP_SIZE_W, BMP_SIZE_H, False, 0)              self.image_list = wxImageList(BMP_SIZE_W, BMP_SIZE_H, False, 0)
560                                                                                    
561              bmp = wxEmptyBitmap(BMP_SIZE_W, BMP_SIZE_H)              bmp = wxEmptyBitmap(BMP_SIZE_W, BMP_SIZE_H)
562              dc = wxMemoryDC()              dc = wxMemoryDC()
563              dc.SelectObject(bmp)              dc.SelectObject(bmp)
564              dc.SetBrush(wxBLACK_BRUSH)              dc.SetBrush(wxBLACK_BRUSH)
565              dc.Clear()              dc.Clear()
566              dc.SelectObject(wxNullBitmap)              dc.SelectObject(wxNullBitmap)
567                                                                                    
568              self.emptyImageIndex = \              self.emptyImageIndex = \
569                  self.image_list.AddWithColourMask(bmp, wxColour(0, 0, 0))                  self.image_list.AddWithColourMask(bmp, wxColour(0, 0, 0))
570                                                                                    
571              bmp = resource.GetBitmapResource("legend_icon_layer",              bmp = resource.GetBitmapResource("legend_icon_layer",
572                                                wxBITMAP_TYPE_XPM)                                                wxBITMAP_TYPE_XPM)
573              self.mapImageIndex = \              self.mapImageIndex = \
574                  self.image_list.Add(bmp)                  self.image_list.Add(bmp)
575    
576              self.AssignImageList(self.image_list)              self.AssignImageList(self.image_list)
577                self.availImgListIndices = []
578    
579              root = self.AddRoot("")              root = self.AddRoot("")
580    

Legend:
Removed from v.1113  
changed lines
  Added in v.1115

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26