[Commits] (jed) Changed event used by ChoiceContainers.

commits at osafoundation.org commits at osafoundation.org
Mon Aug 2 23:55:32 PDT 2004


Commit by: jed
Modified files:
chandler/parcels/osaf/framework/blocks/ContainerBlocks.py 1.121 1.122
chandler/parcels/osaf/views/content/parcel.xml 1.54 1.55

Log message:
Changed event used by ChoiceContainers.

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/blocks/ContainerBlocks.py.diff?r1=text&tr1=1.121&r2=text&tr2=1.122
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/views/content/parcel.xml.diff?r1=text&tr1=1.54&r2=text&tr2=1.55

Index: chandler/parcels/osaf/framework/blocks/ContainerBlocks.py
diff -u chandler/parcels/osaf/framework/blocks/ContainerBlocks.py:1.121 chandler/parcels/osaf/framework/blocks/ContainerBlocks.py:1.122
--- chandler/parcels/osaf/framework/blocks/ContainerBlocks.py:1.121	Tue Jul 20 18:07:48 2004
+++ chandler/parcels/osaf/framework/blocks/ContainerBlocks.py	Mon Aug  2 23:55:30 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.121 $"
-__date__ = "$Date: 2004/07/21 01:07:48 $"
+__version__ = "$Revision: 1.122 $"
+__date__ = "$Date: 2004/08/03 06:55:30 $"
 __copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -109,7 +109,7 @@
 
         return widget
 
-    def onButtonPressed(self, notification):
+    def onSelectionChanged(self, notification):
         # @@@ On the Mac, radio buttons do not work as radio
         # buttons, but rather they behave as individual toggle
         # buttons.  As a workaround, we deselect the other 
@@ -119,7 +119,7 @@
                 if isinstance(childBlock, Toolbar):
                     for toolbarItem in childBlock.widget.toolItemList:
                         if toolbarItem != notification.data['sender']:
-                            if childBlock.widget.GetToolState(toolbarItem.widget.GetId()):                                
+                            if childBlock.widget.GetToolState(toolbarItem.widget.GetId()):
                                 childBlock.widget.ToggleTool(toolbarItem.widget.GetId(), False)
                         else:
                             if not childBlock.widget.GetToolState(toolbarItem.widget.GetId()):                                

Index: chandler/parcels/osaf/views/content/parcel.xml
diff -u chandler/parcels/osaf/views/content/parcel.xml:1.54 chandler/parcels/osaf/views/content/parcel.xml:1.55
--- chandler/parcels/osaf/views/content/parcel.xml:1.54	Thu Jul 22 18:36:53 2004
+++ chandler/parcels/osaf/views/content/parcel.xml	Mon Aug  2 23:55:31 2004
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 
-<!-- $Revision: 1.54 $ -->
-<!-- $Date: 2004/07/23 01:36:53 $ -->
+<!-- $Revision: 1.55 $ -->
+<!-- $Date: 2004/08/03 06:55:31 $ -->
 <!-- Copyright (c) 2004 Open Source Applications Foundation -->
 <!-- License: http://osafoundation.org/Chandler_0.1_license_terms.htm -->
 
@@ -415,7 +415,7 @@
     <toolSize>16,16</toolSize>
     <separatorWidth>100</separatorWidth>
     <stretchFactor>0.0</stretchFactor>
-    <subscribeWhenVisibleEvents itemref="view:ButtonPressed"/>
+    <subscribeWhenVisibleEvents itemref="view:SelectionChanged"/>
   </Toolbar>
 
   <!-- LayoutSelector2 -->
@@ -430,7 +430,7 @@
     <toolSize>16,16</toolSize>
     <separatorWidth>100</separatorWidth>
     <stretchFactor>0.0</stretchFactor>
-    <subscribeWhenVisibleEvents itemref="view:ButtonPressed"/>
+    <subscribeWhenVisibleEvents itemref="view:SelectionChanged"/>
   </Toolbar>
 
   <!-- LayoutSelector3 -->
@@ -445,7 +445,7 @@
     <toolSize>16,16</toolSize>
     <separatorWidth>100</separatorWidth>
     <stretchFactor>0.0</stretchFactor>
-    <subscribeWhenVisibleEvents itemref="view:ButtonPressed"/>
+    <subscribeWhenVisibleEvents itemref="view:SelectionChanged"/>
   </Toolbar>
 
   <!-- LayoutSelector5 -->
@@ -460,7 +460,7 @@
     <toolSize>16,16</toolSize>
     <separatorWidth>100</separatorWidth>
     <stretchFactor>0.0</stretchFactor>
-    <subscribeWhenVisibleEvents itemref="view:ButtonPressed"/>
+    <subscribeWhenVisibleEvents itemref="view:SelectionChanged"/>
   </Toolbar>
 
   <!-- LayoutSelector6 -->
@@ -475,12 +475,12 @@
     <toolSize>16,16</toolSize>
     <separatorWidth>100</separatorWidth>
     <stretchFactor>0.0</stretchFactor>
-    <subscribeWhenVisibleEvents itemref="view:ButtonPressed"/>
+    <subscribeWhenVisibleEvents itemref="view:SelectionChanged"/>
   </Toolbar>
 
-  <BlockEvent itemName="ButtonPressed">
+  <BlockEvent itemName="SelectionChanged">
     <dispatchEnum>SendToBlock</dispatchEnum>
-    <methodName>onButtonPressed</methodName>
+    <methodName>onSelectionChanged</methodName>
     <dispatchToBlock itemref="view:CalendarSummary"/>
   </BlockEvent>
 
@@ -496,7 +496,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in list mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <ToolbarItem itsName="MonthViewButton1">
@@ -508,7 +508,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in month mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <ToolbarItem itsName="WeekViewButton1">
@@ -520,7 +520,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in week mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <ToolbarItem itsName="DayViewButton1">
@@ -532,7 +532,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in day mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <ToolbarItem itsName="ListViewButton2">
@@ -544,7 +544,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in list mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <ToolbarItem itsName="MonthViewButton2">
@@ -556,7 +556,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in month mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <ToolbarItem itsName="WeekViewButton2">
@@ -568,7 +568,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in week mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <ToolbarItem itsName="DayViewButton2">
@@ -580,7 +580,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in day mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <ToolbarItem itsName="ListViewButton3">
@@ -592,7 +592,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in list mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <ToolbarItem itsName="MonthViewButton3">
@@ -604,7 +604,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in month mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <ToolbarItem itsName="WeekViewButton3">
@@ -616,7 +616,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in week mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <ToolbarItem itsName="DayViewButton3">
@@ -628,7 +628,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in day mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <ToolbarItem itsName="ListViewButton5">
@@ -640,7 +640,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in list mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <ToolbarItem itsName="MonthViewButton5">
@@ -652,7 +652,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in month mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <ToolbarItem itsName="WeekViewButton5">
@@ -664,7 +664,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in week mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <ToolbarItem itsName="DayViewButton5">
@@ -676,7 +676,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in day mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <ToolbarItem itsName="ListViewButton6">
@@ -688,7 +688,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in list mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <ToolbarItem itsName="MonthViewButton6">
@@ -700,7 +700,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in month mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <ToolbarItem itsName="WeekViewButton6">
@@ -712,7 +712,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in week mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <ToolbarItem itsName="DayViewButton6">
@@ -724,7 +724,7 @@
     <selectedBitmap></selectedBitmap>
     <toolbarItemKind>Radio</toolbarItemKind>
     <helpString>Display the view in day mode</helpString>
-    <event itemref="view:ButtonPressed"/>
+    <event itemref="view:SelectionChanged"/>
   </ToolbarItem>
 
   <!-- Note View -->



More information about the Commits mailing list