[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/designer/src/forms LayoutEditor.py
From: |
Jason Cater |
Subject: |
gnue/designer/src/forms LayoutEditor.py |
Date: |
Tue, 22 Jan 2002 15:39:35 -0500 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: Jason Cater <address@hidden> 02/01/22 15:39:35
Modified files:
designer/src/forms: LayoutEditor.py
Log message:
fixed issue w/mouse hanging after creating a new widget using icons;
added autocreation of blocks w/entry icons
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/designer/src/forms/LayoutEditor.py.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
Patches:
Index: gnue/designer/src/forms/LayoutEditor.py
diff -c gnue/designer/src/forms/LayoutEditor.py:1.2
gnue/designer/src/forms/LayoutEditor.py:1.3
*** gnue/designer/src/forms/LayoutEditor.py:1.2 Tue Jan 22 13:17:14 2002
--- gnue/designer/src/forms/LayoutEditor.py Tue Jan 22 15:39:35 2002
***************
*** 320,329 ****
--- 320,331 ----
type = None
attributes = {'x':x,'y':y}
parent = self.block
+ checkblock = 1
if mode in ('box','button','label'):
parent = self.page
type = mode
+ checkblock = 0
elif modeEntryMap.has_key(mode):
type = 'entry'
***************
*** 331,337 ****
elif mode in ('scrollbar',):
type = 'scrollbar'
! attributes['bob'] = self.block.name
if type is not None:
--- 333,349 ----
elif mode in ('scrollbar',):
type = 'scrollbar'
!
!
! # Create a new block if one is needed and none exists
! if checkblock and self.block is None:
!
! parent = Incubator.createObject(
! self._instance,
! self._instance.rootObject,
! 'block',
! parent=self.page,
! attributes={})
if type is not None:
***************
*** 345,350 ****
--- 357,364 ----
parent=parent,
attributes=attributes)
+ event.Skip()
+
def OnRightUp(self, event):
***************
*** 485,491 ****
event.Skip()
def OnLeftDown(self, event):
- pass
self.mouseStartX, self.mouseStartY = event.GetPositionTuple()
if not event.ShiftDown():
--- 499,504 ----
- gnue/designer/src/forms LayoutEditor.py,
Jason Cater <=
- gnue/designer/src/forms LayoutEditor.py, James Thompson, 2002/01/25
- gnue/designer/src/forms LayoutEditor.py, Jason Cater, 2002/01/25
- gnue/designer/src/forms LayoutEditor.py, Jason Cater, 2002/01/25
- gnue/designer/src/forms LayoutEditor.py, Jason Cater, 2002/01/25
- gnue/designer/src/forms LayoutEditor.py, Jason Cater, 2002/01/26
- gnue/designer/src/forms LayoutEditor.py, Jason Cater, 2002/01/26