[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue-designer/src base/Instance.py forms/Layout...
From: |
Jason Cater |
Subject: |
gnue-designer/src base/Instance.py forms/Layout... |
Date: |
Tue, 08 Jul 2003 12:18:03 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue-designer
Branch:
Changes by: Jason Cater <address@hidden> 03/07/08 12:18:02
Modified files:
src/base : Instance.py
src/forms/LayoutEditor: LayoutEditor.py
Log message:
moved the caching logic out of Designer and into EventController as I
realized this was causing a LOT of the weird designer behavior of late
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-designer/src/base/Instance.py.diff?tr1=1.115&tr2=1.116&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-designer/src/forms/LayoutEditor/LayoutEditor.py.diff?tr1=1.91&tr2=1.92&r1=text&r2=text
Patches:
Index: gnue-designer/src/base/Instance.py
diff -c gnue-designer/src/base/Instance.py:1.115
gnue-designer/src/base/Instance.py:1.116
*** gnue-designer/src/base/Instance.py:1.115 Tue Jun 17 00:55:08 2003
--- gnue-designer/src/base/Instance.py Tue Jul 8 12:18:02 2003
***************
*** 114,122 ****
# During startup, we will cache all events
# so we can execute them when everything has
# been initialized.
! self.__origDispatchEvent = self.dispatchEvent
! self.dispatchEvent = self.__cacheEvents
! self.__cachedEvents = []
# Register ourself with RuntimeSettings
RuntimeSettings.registerInstance(self)
--- 114,120 ----
# During startup, we will cache all events
# so we can execute them when everything has
# been initialized.
! self.startCachingEvents()
# Register ourself with RuntimeSettings
RuntimeSettings.registerInstance(self)
***************
*** 261,275 ****
EVT_CLOSE(self, self.OnClose)
! #
! # Play all the cached events
! #
! self.dispatchEvent = self.__origDispatchEvent
! for arg, parms in self.__cachedEvents:
! self.dispatchEvent(*arg, **parms)
!
! def __cacheEvents(self, *arg, **parms):
! self.__cachedEvents.append((arg, parms))
def _initMenu(self):
# Add the [sub]menus
--- 259,265 ----
EVT_CLOSE(self, self.OnClose)
! self.stopCachingEvents()
def _initMenu(self):
# Add the [sub]menus
Index: gnue-designer/src/forms/LayoutEditor/LayoutEditor.py
diff -c gnue-designer/src/forms/LayoutEditor/LayoutEditor.py:1.91
gnue-designer/src/forms/LayoutEditor/LayoutEditor.py:1.92
*** gnue-designer/src/forms/LayoutEditor/LayoutEditor.py:1.91 Tue Jul 8
11:36:39 2003
--- gnue-designer/src/forms/LayoutEditor/LayoutEditor.py Tue Jul 8
12:18:02 2003
***************
*** 734,745 ****
def endPrePositioningTemplate(self, x, y, width=None, height=None):
TemplateParser(self.instance, self.instance.rootObject,
self.instance, self.__template, currentObject=self.block or
self.page).run(x=x, y=y,
width=width,
height=height)
self.instance.dispatchEvent(Event('EndWizard', template=self.__template))
- self.mode = 'move'
def zoomIn(self, event):
--- 734,745 ----
def endPrePositioningTemplate(self, x, y, width=None, height=None):
+ self.mode = 'move'
TemplateParser(self.instance, self.instance.rootObject,
self.instance, self.__template, currentObject=self.block or
self.page).run(x=x, y=y,
width=width,
height=height)
self.instance.dispatchEvent(Event('EndWizard', template=self.__template))
def zoomIn(self, event):
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue-designer/src base/Instance.py forms/Layout...,
Jason Cater <=