[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/designer/src/forms/LayoutEditor LayoutEdit...
From: |
James Thompson |
Subject: |
gnue/designer/src/forms/LayoutEditor LayoutEdit... |
Date: |
Mon, 01 Apr 2002 17:02:07 -0500 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: James Thompson <address@hidden> 02/04/01 17:02:06
Modified files:
designer/src/forms/LayoutEditor: LayoutEditor.py
Log message:
Hack to resize designer labels to match their actual size. Oversized
labels
were causing the UI to look funny under win32. This will mess up
align=center
labels until I have time to fix tonight
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/designer/src/forms/LayoutEditor/LayoutEditor.py.diff?tr1=1.14&tr2=1.15&r1=text&r2=text
Patches:
Index: gnue/designer/src/forms/LayoutEditor/LayoutEditor.py
diff -c gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.14
gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.15
*** gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.14 Mon Feb 18
00:24:09 2002
--- gnue/designer/src/forms/LayoutEditor/LayoutEditor.py Mon Apr 1
17:02:06 2002
***************
*** 177,188 ****
def onModifyObject (self, object, handler, modifications):
if object == None:
return
! self.propBar.onModifyObject(object, handler, modifications)
if handler != "Forms::LayoutEditor":
if object._type == 'GFPage':
self.notebook.SetPageText(self._notebookMap[object],object.name)
self.notebook.SetSelection(self.notebook.GetSelection())
! else:
page = object.findParentOfType('GFPage')
if page:
self._setCurrentPage(page)
--- 177,203 ----
def onModifyObject (self, object, handler, modifications):
if object == None:
return
!
! # TODO: adjust label width to match new length...this shouldn't be here
! if object._type == 'GFLabel':
! mods = []
! for modification in modifications:
! mods.append(modification)
! field, value = modification
! if field=='text':
! #TODO: this will butcher align=center setups
! #if (not hasattr(object,'width')) or (len(value) > object.width):
! object.width=len(value)
! mods.append( ('width',len(value)) )
!
! self.propBar.onModifyObject(object, handler, mods)
!
!
if handler != "Forms::LayoutEditor":
if object._type == 'GFPage':
self.notebook.SetPageText(self._notebookMap[object],object.name)
self.notebook.SetSelection(self.notebook.GetSelection())
! else:
page = object.findParentOfType('GFPage')
if page:
self._setCurrentPage(page)
- gnue/designer/src/forms/LayoutEditor LayoutEdit...,
James Thompson <=