/[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 655 by jonathan, Fri Apr 11 15:50:13 2003 UTC revision 668 by jonathan, Mon Apr 14 17:12:57 2003 UTC
# Line 54  class LegendPanel(DockPanel): Line 54  class LegendPanel(DockPanel):
54          panelBox = wxBoxSizer(wxVERTICAL)          panelBox = wxBoxSizer(wxVERTICAL)
55    
56          self.toolBar = wxToolBar(self, -1)          self.toolBar = wxToolBar(self, -1)
57            self.toolBar.SetToolBitmapSize(wxSize(24, 24))
58    
59          bmp = resource.GetBitmapResource(RAISE_BMP, wxBITMAP_TYPE_XPM)          bmp = resource.GetBitmapResource(RAISE_BMP, wxBITMAP_TYPE_XPM)
60          self.toolBar.AddTool(ID_LEGEND_RAISE, bmp,          self.toolBar.AddTool(ID_LEGEND_RAISE, bmp,
# Line 76  class LegendPanel(DockPanel): Line 77  class LegendPanel(DockPanel):
77              shortHelpString=_("Edit Layer Properties"))              shortHelpString=_("Edit Layer Properties"))
78    
79          self.toolBar.Realize()          self.toolBar.Realize()
80          panelBox.Add(self.toolBar, 0, wxALL, 0)          panelBox.Add(self.toolBar, 0, wxGROW, 0)
81    
82          EVT_TOOL(self, ID_LEGEND_RAISE, self._OnMoveUp)          EVT_TOOL(self, ID_LEGEND_RAISE, self._OnMoveUp)
83          EVT_TOOL(self, ID_LEGEND_LOWER, self._OnMoveDown)          EVT_TOOL(self, ID_LEGEND_LOWER, self._OnMoveDown)
# Line 86  class LegendPanel(DockPanel): Line 87  class LegendPanel(DockPanel):
87    
88          self.tree = LegendTree(self, ID_LEGEND_TREE, map, mainWindow)          self.tree = LegendTree(self, ID_LEGEND_TREE, map, mainWindow)
89    
90          panelBox.Add(self.tree, 1, wxGROW, 4)          panelBox.Add(self.tree, 1, wxGROW, 0)
   
         panelBox.Fit(self)  
91    
92          self.SetAutoLayout(True)          self.SetAutoLayout(True)
93          self.SetSizer(panelBox)          self.SetSizer(panelBox)
94          panelBox.SetSizeHints(self)          panelBox.SetSizeHints(self)
95    
96    
97          self.panelBox = panelBox          self.panelBox = panelBox
98    
99          self.__EnableButtons(False)          self.__EnableButtons(False)
100    
101            self.Create()
102    
103          EVT_CLOSE(self, self._OnClose)          EVT_CLOSE(self, self._OnClose)
104    
105    

Legend:
Removed from v.655  
changed lines
  Added in v.668

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26