[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/designer/src/forms/LayoutEditor LayoutEdit...
From: |
Jason Cater |
Subject: |
gnue/designer/src/forms/LayoutEditor LayoutEdit... |
Date: |
Fri, 04 Apr 2003 13:30:45 -0500 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: Jason Cater <address@hidden> 03/04/04 13:30:45
Modified files:
designer/src/forms/LayoutEditor: LayoutEditor.py
Log message:
commenting
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/designer/src/forms/LayoutEditor/LayoutEditor.py.diff?tr1=1.67&tr2=1.68&r1=text&r2=text
Patches:
Index: gnue/designer/src/forms/LayoutEditor/LayoutEditor.py
diff -c gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.67
gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.68
*** gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.67 Thu Apr 3
14:23:25 2003
--- gnue/designer/src/forms/LayoutEditor/LayoutEditor.py Fri Apr 4
13:30:45 2003
***************
*** 71,80 ****
--- 71,85 ----
self.widgetList = []
self._currentSelection = []
+ # Create our own WX GFUserInterface instance
self.uidriver = uidriver = UIwxpython.GFUserInterface(self.instance, 0)
+ # Create a list of all UI widgets
self.widgets = {}
self.widgets.update(uidriver._supportedWidgets)
+
+ # But we don't want a page to act like normal objects...
+ # we have special plans for it (bwahahaha)
del self.widgets['GFPage']
***************
*** 90,95 ****
--- 95,102 ----
self._currentObject = None
self.mode = 'move'
+
+ # Internal mouse states... used by OnMotion, etc
self.__drawing = 0
self.__x = 0
self.__y = 0
***************
*** 205,210 ****
--- 212,218 ----
ft = ""
+ # This sets the feedback text at the top of the Layout Editor window
if object:
try: ft += 'Name: % (%s)' % (object.name, object._type[2:])
except: pass
***************
*** 246,251 ****
--- 254,261 ----
def _setSelection(self, focus, objects):
+ # Unhighlight any previously selected items
+ # that are no longer selected.
for key in self._currentSelection:
if key not in objects:
try:
***************
*** 253,259 ****
except AttributeError:
pass
!
for object in objects:
if hasattr(object, '_widgetHandler'):
self._currentSelection.append(object)
--- 263,269 ----
except AttributeError:
pass
! # and now highlight any new items
for object in objects:
if hasattr(object, '_widgetHandler'):
self._currentSelection.append(object)