/[gnue]/gnue-designer/src/base/tools/SchemaNavigator.py
ViewVC logotype

Diff of /gnue-designer/src/base/tools/SchemaNavigator.py

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

revision 1.11 by jcater, Tue Jul 15 22:36:02 2003 UTC revision 1.12 by jcater, Tue Jul 15 22:38:04 2003 UTC
# Line 72  class SchemaNavigator(ToolBase): Line 72  class SchemaNavigator(ToolBase):
72      self.connectionNames.sort()      self.connectionNames.sort()
73      self.connectionCache = {}      self.connectionCache = {}
74    
 ##    EVT_SIZE(self, self.__OnSize)  
   
75      self.current = None      self.current = None
76    
77      self.tree = tree = TreeCtrl(self, self)      self.tree = tree = TreeCtrl(self, self)
# Line 83  class SchemaNavigator(ToolBase): Line 81  class SchemaNavigator(ToolBase):
81         ConnectionNode(self, tree, root, connection=connection)         ConnectionNode(self, tree, root, connection=connection)
82  ##    tree.Expand(root)  ##    tree.Expand(root)
83    
   
 #    scroller.EnableScrolling(False, False)  
   
84      sizer = wxBoxSizer(wxVERTICAL)      sizer = wxBoxSizer(wxVERTICAL)
85      sizer.Add(tree, 1, wxEXPAND|wxALL, 6)      sizer.Add(tree, 1, wxEXPAND|wxALL, 6)
86      self.SetAutoLayout(True)      self.SetAutoLayout(True)
# Line 110  class SchemaNavigator(ToolBase): Line 105  class SchemaNavigator(ToolBase):
105    def createToolbar(self, parent):    def createToolbar(self, parent):
106      return _SchemaToolbar(parent, self.instance)      return _SchemaToolbar(parent, self.instance)
107    
   def __OnSize(self, event):  
     self.scroller.SetSize(self.GetClientSize())  
 #    self.scroller.SetVirtualSize(self.tree.GetSize())  
     print self.scroller.GetVirtualSize()  
     self.scroller.SetScrollbars(10,10,10,10)  
     event.Skip()  
   
108    # Since this class is the root node, we need to    # Since this class is the root node, we need to
109    # emulate part of the Node class    # emulate part of the Node class
110    def getColumn(self, i=0):    def getColumn(self, i=0):

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26