commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r8349 - in trunk/gnue-designer/src: base/tools forms/PagePainter


From: jcater
Subject: [gnue] r8349 - in trunk/gnue-designer/src: base/tools forms/PagePainter ui/wx/uihelpers/doccanvas
Date: Mon, 3 Apr 2006 21:39:48 -0500 (CDT)

Author: jcater
Date: 2006-04-03 21:39:47 -0500 (Mon, 03 Apr 2006)
New Revision: 8349

Modified:
   trunk/gnue-designer/src/base/tools/EventEditor.py
   trunk/gnue-designer/src/base/tools/PropertyEditor.py
   trunk/gnue-designer/src/base/tools/SchemaNavigator.py
   trunk/gnue-designer/src/base/tools/TreeView.py
   trunk/gnue-designer/src/forms/PagePainter/PagePainter.py
   trunk/gnue-designer/src/ui/wx/uihelpers/doccanvas/canvas.py
Log:
convert to wx.SMALL_FONT for the tool controls

Modified: trunk/gnue-designer/src/base/tools/EventEditor.py
===================================================================
--- trunk/gnue-designer/src/base/tools/EventEditor.py   2006-04-03 23:54:54 UTC 
(rev 8348)
+++ trunk/gnue-designer/src/base/tools/EventEditor.py   2006-04-04 02:39:47 UTC 
(rev 8349)
@@ -142,6 +142,8 @@
 
         # Set up our grid
         self.grid = Grid(self, -1, pos=wx.Point(0,0))
+        self.grid.SetDefaultCellFont(wx.SMALL_FONT)
+        self.grid.SetLabelFont(wx.SMALL_FONT)
         self.grid.CreateGrid(1,1)
         self.grid.SetColLabelSize(0)
 

Modified: trunk/gnue-designer/src/base/tools/PropertyEditor.py
===================================================================
--- trunk/gnue-designer/src/base/tools/PropertyEditor.py        2006-04-03 
23:54:54 UTC (rev 8348)
+++ trunk/gnue-designer/src/base/tools/PropertyEditor.py        2006-04-04 
02:39:47 UTC (rev 8349)
@@ -53,6 +53,7 @@
         self.supplemental = []
         self.main = self.createMainPage()
         self.notebook.AddPage(self.main,'Properties')
+        self.notebook.SetFont(wx.SMALL_FONT)
 
 
     def createMainPage(self):
@@ -200,6 +201,8 @@
 
             try:
                 label = wx.StaticText (self.labelPanel, -1, text)
+                label.SetFont(wx.SMALL_FONT)
+
             except:
                 pass
 
@@ -211,7 +214,10 @@
             elif self.attributes[key].has_key('References'):
                 tag, attr = self.attributes[key]['References'].split('.')
                 objectList = self.editor.document.getObjectList(tag)
-                field = LinkedTextEditor(self.fieldPanel, 
self.attributes[key], objectList, attr)
+                field = LinkedTextEditor(self.fieldPanel,
+                                         self.attributes[key],
+                                         objectList,
+                                         attr)
                 wx.EVT_COMBOBOX(field, field.GetId(), self.__valueModified)
             elif self.attributes[key]['Typecast'] == GTypecast.boolean:
                 field = BoolEditor(self.fieldPanel,self.attributes[key])
@@ -224,20 +230,23 @@
                 field = TextEditor(self.fieldPanel,self.attributes[key])
             wx.EVT_TEXT(field, field.GetId(), self.__valueModified)
 
+            field.SetFont(wx.SMALL_FONT)
+
             # Generate a tooltip from the description.
             # Note that tooltips can have {Name} tokens
             try:
-                tt = self.attributes[key]['Description']
+                tooltip = self.attributes[key]['Description']
                 try:
                     for v, l in self.attributes[key]['ValueSet'].items():
-                        tt = tt.replace('{%s}' % v, '"%s"' % l['Label'])
+                        tooltip = tooltip.replace('{%s}' % v,
+                                                  '"%s"' % l['Label'])
                 except KeyError:
                     pass
-                tt = tt.replace('{Y}','"True"')
-                tt = tt.replace('{N}','"False"')
-                tt = tt.replace('{','"')
-                tt = tt.replace('}','"')
-                field.SetToolTip(wx.ToolTip(tt))
+                tooltip = tooltip.replace('{Y}','"True"')
+                tooltip = tooltip.replace('{N}','"False"')
+                tooltip = tooltip.replace('{','"')
+                tooltip = tooltip.replace('}','"')
+                field.SetToolTip(wx.ToolTip(tooltip))
             except KeyError:
                 pass
 

Modified: trunk/gnue-designer/src/base/tools/SchemaNavigator.py
===================================================================
--- trunk/gnue-designer/src/base/tools/SchemaNavigator.py       2006-04-03 
23:54:54 UTC (rev 8348)
+++ trunk/gnue-designer/src/base/tools/SchemaNavigator.py       2006-04-04 
02:39:47 UTC (rev 8349)
@@ -78,6 +78,7 @@
         self.current = None
 
         self.tree = tree = TreeCtrl(self, self)
+        self.tree.SetFont(wx.SMALL_FONT)
         root = tree.AddRoot('Schema')
         tree.SetItemHasChildren(root, 1)
         for connection in self.connectionNames:

Modified: trunk/gnue-designer/src/base/tools/TreeView.py
===================================================================
--- trunk/gnue-designer/src/base/tools/TreeView.py      2006-04-03 23:54:54 UTC 
(rev 8348)
+++ trunk/gnue-designer/src/base/tools/TreeView.py      2006-04-04 02:39:47 UTC 
(rev 8349)
@@ -65,6 +65,7 @@
         self._handler = None
 
         self.tree.SetImageList(treeIconList)
+        self.tree.SetFont(wx.SMALL_FONT)
 
         wx.EVT_TREE_BEGIN_LABEL_EDIT(self, self.tree.GetId(), 
self.OnTreeLabelEdit)
         wx.EVT_TREE_END_LABEL_EDIT(self, self.tree.GetId(), 
self.OnTreeLabelEditEnd)

Modified: trunk/gnue-designer/src/forms/PagePainter/PagePainter.py
===================================================================
--- trunk/gnue-designer/src/forms/PagePainter/PagePainter.py    2006-04-03 
23:54:54 UTC (rev 8348)
+++ trunk/gnue-designer/src/forms/PagePainter/PagePainter.py    2006-04-04 
02:39:47 UTC (rev 8349)
@@ -72,7 +72,7 @@
             common.char_y_scale += 4
 
         canvas = self.canvas = PagePainterCanvas(self)
-             
+
         self.document.app.ui.autoSizer(self, canvas)
 
         self.object = object

Modified: trunk/gnue-designer/src/ui/wx/uihelpers/doccanvas/canvas.py
===================================================================
--- trunk/gnue-designer/src/ui/wx/uihelpers/doccanvas/canvas.py 2006-04-03 
23:54:54 UTC (rev 8348)
+++ trunk/gnue-designer/src/ui/wx/uihelpers/doccanvas/canvas.py 2006-04-04 
02:39:47 UTC (rev 8349)
@@ -246,11 +246,13 @@
         """
 
         # The updateRegion is not in scrolled coordinates.
-        scrollWindowOriginX, scrollWindowOriginY = 
self.CalcUnscrolledPosition(0, 0)
+        (scrollWindowOriginX,
+         scrollWindowOriginY) = self.CalcUnscrolledPosition(0, 0)
 
-        # wx.BufferedDC doesn't work here since it doesn't handle scrolled 
windows
-        # and always allocates a buffer the size of the client area. So 
instead we'll
-        # allocate a wx.MemoryDC, draw into it then blit it to our paintDC.
+        # wx.BufferedDC doesn't work here since it doesn't handle
+        # scrolled windows  and always allocates a buffer the size of
+        # the client area. So instead we'll  allocate a wx.MemoryDC,
+        # draw into it then blit it to our paintDC.
         paintDC = wx.PaintDC(self)
         self.PrepareDC(paintDC)
 
@@ -453,9 +455,9 @@
 
     def __wx_on_erase_background(self, event):
         """
-        Override __wx_on_erase_background to avoid erasing background. Instead
-        implement OnDrawBackground to draw/erase the background. This
-        design alternative will eliminate flicker
+        Override __wx_on_erase_background to avoid erasing background.
+        Instead implement OnDrawBackground to draw/erase the background.
+        This design alternative will eliminate flicker
         """
         pass
 
@@ -1036,15 +1038,15 @@
                 if not widget.selected:
                     widget.set_selected(True)
                 gobjects += [widget.gobject]
-                    
-        if gobjects: 
+
+        if gobjects:
             gobjects[0].dispatch_designer_event('ObjectSelected',
                   originator="Canvas::SelectedFromCanvas",
                   selection=gobjects)
 
         self.end_refresh_batch()
-        
 
+
     def picked_from_canvas(self, widgets):
         """
         Called when mode is 'picker' and the widget has





reply via email to

[Prev in Thread] Current Thread [Next in Thread]