[Commits] (john) changed the initial size of SplitterWindows to be
the size attribute instead of minimumSize. I now persist
changes to column widths in treeLists. Changed default view
sizes to be more reasonable
commits at osafoundation.org
commits at osafoundation.org
Mon Jan 12 15:03:50 PST 2004
Commit by: john
Modified files:
osaf/chandler/Chandler/parcels/OSAF/templates/top/parcel.xml 1.21 1.22
osaf/chandler/Chandler/parcels/OSAF/framework/blocks/ContainerBlocks.py 1.27 1.28
Log message:
changed the initial size of SplitterWindows to be the size attribute instead of minimumSize. I now persist changes to column widths in treeLists. Changed default view sizes to be more reasonable
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/parcels/OSAF/templates/top/parcel.xml.diff?r1=text&tr1=1.21&r2=text&tr2=1.22
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/parcels/OSAF/framework/blocks/ContainerBlocks.py.diff?r1=text&tr1=1.27&r2=text&tr2=1.28
Index: osaf/chandler/Chandler/parcels/OSAF/framework/blocks/ContainerBlocks.py
diff -u osaf/chandler/Chandler/parcels/OSAF/framework/blocks/ContainerBlocks.py:1.27 osaf/chandler/Chandler/parcels/OSAF/framework/blocks/ContainerBlocks.py:1.28
--- osaf/chandler/Chandler/parcels/OSAF/framework/blocks/ContainerBlocks.py:1.27 Mon Jan 12 14:20:46 2004
+++ osaf/chandler/Chandler/parcels/OSAF/framework/blocks/ContainerBlocks.py Mon Jan 12 15:03:19 2004
@@ -305,7 +305,7 @@
splitWindow = wxSplitWindow(parentWindow,
Block.getwxID(self),
wxDefaultPosition,
- (self.minimumSize.width, self.minimumSize.height),
+ (self.size.width, self.size.height),
style=wxSP_3D|wxSP_LIVE_UPDATE|wxNO_FULL_REPAINT_ON_RESIZE)
self.parentBlock.addToContainer(parent, splitWindow, int(self.stretchFactor),
self.Calculate_wxFlag(), self.Calculate_wxBorder())
@@ -451,6 +451,7 @@
def __init__(self, *arguments, **keywords):
wxTreeListCtrl.__init__ (self, *arguments, **keywords)
EVT_TREE_ITEM_EXPANDING(self, self.GetId(), self.OnExpanding)
+ EVT_LIST_COL_END_DRAG(self, self.GetId(), self.OnColumnDrag)
def OnExpanding(self, event):
"""
@@ -462,6 +463,11 @@
notification = Notification('chandler/GetTreeListData', None, None)
notification.SetData(arguments)
Globals.topView.dispatchEvent(notification)
+
+ def OnColumnDrag(self, event):
+ counterpart = Globals.repository.find (self.counterpartUUID)
+ columnIndex = event.GetColumn()
+ counterpart.columnWidths [columnIndex] = self.GetColumnWidth (columnIndex)
class TreeList(RectangularChild):
Index: osaf/chandler/Chandler/parcels/OSAF/templates/top/parcel.xml
diff -u osaf/chandler/Chandler/parcels/OSAF/templates/top/parcel.xml:1.21 osaf/chandler/Chandler/parcels/OSAF/templates/top/parcel.xml:1.22
--- osaf/chandler/Chandler/parcels/OSAF/templates/top/parcel.xml:1.21 Mon Jan 12 12:57:17 2004
+++ osaf/chandler/Chandler/parcels/OSAF/templates/top/parcel.xml Mon Jan 12 15:03:18 2004
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.21 $ -->
-<!-- $Date: 2004/01/12 20:57:17 $ -->
+<!-- $Revision: 1.22 $ -->
+<!-- $Date: 2004/01/12 23:03:18 $ -->
<!-- Copyright (c) 2003 Open Source Applications Foundation -->
<!-- License: http://osafoundation.org/Chandler_0.1_license_terms.htm -->
@@ -616,7 +616,7 @@
<columnHeadings></columnHeadings>
<columnHeadings>URL</columnHeadings>
- <columnWidths>80</columnWidths>
+ <columnWidths>135</columnWidths>
<columnWidths>80</columnWidths>
<columnWidths>80</columnWidths>
<columnWidths>120</columnWidths>
@@ -636,7 +636,7 @@
<size>100,50</size>
<minimumSize>100,50</minimumSize>
- <border>2.0, 2.0, 2.0, 2.0</border>
+ <border>0.0, 0.0, 0.0, 0.0</border>
<alignmentEnum>grow</alignmentEnum>
<stretchFactor>1.0</stretchFactor>
</HTML>
@@ -647,8 +647,8 @@
<childrenBlocks itemref="doc:HTML"/>
<open>True</open>
- <size>100,50</size>
- <minimumSize>100,50</minimumSize>
+ <size>517,564</size>
+ <minimumSize>50,50</minimumSize>
<border>0.0, 0.0, 0.0, 0.0</border>
<alignmentEnum>alignCenter</alignmentEnum>
<stretchFactor>1.0</stretchFactor>
@@ -663,14 +663,14 @@
<childrenBlocks itemref="doc:TabBox"/>
<open>True</open>
- <size>200,100</size>
- <minimumSize>200,100</minimumSize>
+ <size>912,512</size>
+ <minimumSize>50,50</minimumSize>
<border>2.0, 2.0, 2.0, 2.0</border>
<alignmentEnum>grow</alignmentEnum>
<stretchFactor>1.0</stretchFactor>
<orientationEnum>Vertical</orientationEnum>
- <splitPercentage>0.5</splitPercentage>
+ <splitPercentage>0.63</splitPercentage>
</SplitWindow>
<View itemName="TopView">
@@ -691,9 +691,9 @@
<childrenBlocks itemref="doc:Header"/>
<childrenBlocks itemref="doc:ContentBox"/>
- <open>True</open>
+ <open>True</open>
- <size>640,480</size>
+ <size>912,512</size>
<minimumSize>50,50</minimumSize>
<border>10.0, 10.0, 10.0, 10.0</border>
<alignmentEnum>grow</alignmentEnum>
More information about the Commits
mailing list