Commit Graph

40 Commits

Author SHA1 Message Date
Robin Dunn
ca501b065e Use global font and pen to reduce GDI objects created. Patch #1540457
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 19:22:23 +00:00
Robin Dunn
b14b1312ac fix a typo causing the wrong method to be called.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-05 19:09:04 +00:00
Robin Dunn
9c6e3c5714 Use self.GetCanvas() instead of just self.GetCanvas
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-25 00:14:46 +00:00
Robin Dunn
ab552aa4d7 Better cleanup of circular references.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 06:51:34 +00:00
Roman Rolinsky
3f31297359 updated from CVS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-01 10:25:54 +00:00
Robin Dunn
02b800ce7c Merged modifications from the 2.6 branch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-30 23:02:03 +00:00
Kevin Ollivier
a70e625879 Added a missing import that was causing FormatText to fail.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-30 07:20:29 +00:00
Robin Dunn
14fe087a0c Typo fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-03 23:59:17 +00:00
Robin Dunn
4809f5df5d Patch from Davide Salomoni that adds an optional point
parameter to LineShape.InsertLineControlPoint allowing one to
optionally specify where the new control point has to be drawn.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-19 00:13:43 +00:00
Robin Dunn
180ebf90bc Add line control points before the end point
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-12 22:55:32 +00:00
Robin Dunn
940caa34cc Correct way to find the region
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33389 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-06 19:29:34 +00:00
Robin Dunn
7276cbe3f0 OGL fixes from Davide Salomoni
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-30 21:24:51 +00:00
Robin Dunn
3dd9536f2e Fix for bug [ 1098263 ] wx.lib.ogl control points leak
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-12 03:48:06 +00:00
Robin Dunn
bc37bfe2ee Fixed typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-11 20:58:44 +00:00
Robin Dunn
ca8071ca9f OGL patch from Shane Holloway:
Two simple problems found in the new python ogl code.  First is
    the patch for _canvas.py.  Essentially:

        dx = abs(dc.LogicalToDeviceX(x - self._firstDragX))
        dy = abs(dc.LogicalToDeviceY(y - self._firstDragY))

    was incorrect because (x,y) and (self._firstDragX,
    self._firstDragY) are both already in Logical coordinates.
    Therefore the difference between the two is also in logical
    coordinates, and the conversion call is an error.  This bug
    surfaces when you have OGL on a scrollwin, and you are far from
    the origin of the canvas.

    The second change in _composit.py basically removes the assumption
    that the child is in both self._children and self._divisions.
    Causes many problems when it's not.  ;)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-10 18:14:45 +00:00
Robin Dunn
02c3b4d92b A small fix for attachment popints and comments, from Pierre.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-22 15:24:55 +00:00
Robin Dunn
58c132bbfc line segment fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-13 15:14:59 +00:00
Robin Dunn
303aff5ed8 dc.DrawLines fixed [1046055]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-13 15:14:10 +00:00
Robin Dunn
94bc006bd2 Correct call to shape.Show()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-30 23:12:29 +00:00
Robin Dunn
84c8e900a6 Added missing setters
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-24 16:13:30 +00:00
Robin Dunn
cd5cb880d0 Fixes for bug #1031151 and #1031239
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 00:43:47 +00:00
Robin Dunn
162662e91c Use line.Draw(dc) instead of line.GetEventHandler().Draw(dc)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-18 17:33:07 +00:00
Robin Dunn
ae601e32a8 Point x,y fixes from Pierre
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-18 17:21:57 +00:00
Robin Dunn
5dd0f8257c Correct indentation and Snap calls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-17 15:29:43 +00:00
Robin Dunn
558d682c9e Append --> append
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-17 15:27:38 +00:00
Robin Dunn
241d5f3d34 Fix for ogl.FORMAT_SIZE_TO_CONTENTS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-10 19:54:05 +00:00
Robin Dunn
60509cc126 fixed case typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-09 23:14:24 +00:00
Robin Dunn
d8f9d612be Fixed wrong append() name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-08 23:50:59 +00:00
Robin Dunn
79609e6f24 Adding DrawnShape (patch from Pierre Hjälm)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-31 14:54:13 +00:00
Robin Dunn
ae5aafdc71 typo fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-25 22:07:54 +00:00
Robin Dunn
c9c4689547 Don't call wx.ThePenList
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-18 02:34:03 +00:00
Robin Dunn
478ba84485 Fix for drag object bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-21 22:39:24 +00:00
Robin Dunn
a2df8090e8 Patch from Pierre Hjälm.
"""
It removes "from __future__ import division", fixes a couple of bugs and
adds a lot of whitespace.

Since I also removed an instance of [::-1] for list reversing, I think this
ought to work on older pythons (I have not tested though).
"""




git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-18 16:32:03 +00:00
Robin Dunn
19a4dcb8cf The new OGL doesn't have to be compatible with the bugs in the old
one!  ;-)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-08 01:12:26 +00:00
Robin Dunn
31f8e937b8 pi --> math.pi
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-08 00:02:05 +00:00
Robin Dunn
b2f6eb0606 Since everything in the submodules is to appear in the pacakge
namespace rename the submodule to have a leading underscore to make it
easier to document it that way.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-04 20:12:01 +00:00
Robin Dunn
6fd864d159 Added $Id keyword, a bit of cleanup and also some backwards
compatibility aliases.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-02 20:49:09 +00:00
Robin Dunn
28bed70aa9 Use new DrawPoint signature
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-01 21:59:01 +00:00
Robin Dunn
04717ee7df fixed a typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-26 14:55:43 +00:00
Robin Dunn
f847103a32 Added a Python port of the OGL library, deprecated the C++ wrapped version.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-26 02:13:04 +00:00