commit-gnue
[Top][All Lists]
Advanced

[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: Thu, 22 May 2003 20:30:45 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    03/05/22 20:30:44

Modified files:
        designer/src/forms/LayoutEditor: LayoutEditor.py 

Log message:
        added status text showing coordinators when dragging mouse over the 
layout editor

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/designer/src/forms/LayoutEditor/LayoutEditor.py.diff?tr1=1.72&tr2=1.73&r1=text&r2=text

Patches:
Index: gnue/designer/src/forms/LayoutEditor/LayoutEditor.py
diff -c gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.72 
gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.73
*** gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.72   Thu May 22 
19:17:17 2003
--- gnue/designer/src/forms/LayoutEditor/LayoutEditor.py        Thu May 22 
20:30:44 2003
***************
*** 490,497 ****
  
      self.__drawing = 1
  
! ##    x = int(x / self.gridWidth) * self.gridWidth
! ##    y = int(y / self.gridHeight) * self.gridHeight
  
      self.__brush = wxBrush(wxWHITE, style=wxTRANSPARENT)
  
--- 490,499 ----
  
      self.__drawing = 1
  
!     self.__cx = cx = int(x / self.gridWidth) + 1
!     self.__cy = cy = int(y / self.gridHeight) + 1
! 
!     self.setHeaderText ('x: %s; y: %s' % (cx, cy))
  
      self.__brush = wxBrush(wxWHITE, style=wxTRANSPARENT)
  
***************
*** 524,529 ****
--- 526,541 ----
          self.__drawing = 2
  
        x, y = event.GetPositionTuple()
+       cx = int(x / self.gridWidth) + 1
+       cy = int(y / self.gridHeight) + 1
+ 
+       cx1, cx2 = order(self.__cx, cx)
+       cy1, cy2 = order(self.__cy, cy)
+ 
+       self.setHeaderText('x: %s; y: %s, w=%s, h=%s'% (cx1, cy1, cx2 - cx1 + 
1, cy2 - cy1 + 1))
+ 
+ 
+ 
        self.xorBox(self.__x, self.__y, x, y, self.__ox, self.__oy)
  
        self.__ox = x
***************
*** 536,543 ****
--- 548,557 ----
  
      selection = []
  
+     self.setHeaderText('')
  
      if self.__drawing and self.__ox is not None:
+ 
        self.xorBox(self.__x, self.__y, self.__ox, self.__oy)
        self.__ox = None
        self.__oy = None




reply via email to

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