Commit Graph

35579 Commits

Author SHA1 Message Date
Paul Cornett
5e26ba70aa GTK+ paints during idle time, it doesn't need help with that
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-27 00:57:37 +00:00
Robin Dunn
c4caf81dbc Do premultiplication in wx*PixelData_Iterator::Get and Set
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-27 00:46:22 +00:00
Paul Cornett
c7b2e4941f returning true is sufficient to stop signal emission
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-27 00:31:39 +00:00
Vadim Zeitlin
0228081ff2 don't crash when EnsureVisible() is called for the hidden root item
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 22:26:53 +00:00
Vadim Zeitlin
23c2b62bb4 don't call EnsureVisible(tree->GetRootItem()) for a tree with hidden root, this crashes under MSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 22:21:11 +00:00
Paul Cornett
1481968400 use "event" signal emission hook to install idle handler for many events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 22:07:45 +00:00
Paul Cornett
1136ac0b7c don't tie up cpu in idle loop when showing assert dialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 22:04:21 +00:00
Robin Dunn
9f54c187b0 Patch #1547057: Disable grid lines in wx.lib.printout.PrintTable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 21:15:40 +00:00
Robin Dunn
8c29915355 Patch from Will Sadkin:
- Fixed masked.numctrl to properly limit integer controls, and
   also handle '-.00' properly.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 21:13:58 +00:00
Robin Dunn
d464551409 wxURLDataObject has a parameter
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 20:40:24 +00:00
Robin Dunn
28cc717d5a Add alpha component to wxColour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 20:37:29 +00:00
Paul Cornett
d281df5096 add needed includes, remove unneeded ones
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 18:37:51 +00:00
Paul Cornett
4f13428c4f correct idle tag type; remove unneeded includes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 18:36:19 +00:00
Paul Cornett
6a55573961 remove special pending idle callback, pending events are handled by common code; remove unneeded includes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 18:35:03 +00:00
Stefan Csomor
a69aabc360 adding constants
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 16:16:16 +00:00
Stefan Csomor
151dab1197 getting rid of unused param warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 13:43:15 +00:00
Stefan Csomor
83b445a666 adding alpha to core graphics dc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 13:35:08 +00:00
Stefan Csomor
fa8bc37bc2 adding alpha to wxColour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 13:33:09 +00:00
Robin Dunn
f2a2796dae Removed wxHTML_FONT_SIZE_x
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 00:53:25 +00:00
Robin Dunn
25e29eb243 ComputeScaleAndOrigin not protected anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 00:52:46 +00:00
Robin Dunn
361bd11400 Avoid deprecation warnings for BeginDrawing and EndDrawing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 00:28:41 +00:00
Vadim Zeitlin
1f5cf9cc23 don't set cursor for not realized (and not only hidden) windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 22:50:30 +00:00
Vadim Zeitlin
2d97237dac override OnAssertFailure(), not OnAssert() which is not called by wxOnAssert() any longer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 22:48:07 +00:00
Robin Dunn
543a99218d Use the width of the widest line (not the first line) for the max
width of the tooltip.  Also, don't set a narrower width if the tooltip
control already has a wider one.  It will automatically adjust smaller
if needed based on the \n's in the text.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 22:12:07 +00:00
Robin Dunn
4d9de11075 Add wx.App.DisplayAvailable() which can be used to determine if a GUI
can be created in the current environment.  (Still need an
implementation for wxMSW...)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 21:53:12 +00:00
Robin Dunn
086ee959df workaround sizing bug on Mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 19:49:15 +00:00
Robin Dunn
6c7fd46620 workaround sizing bug on Mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 19:45:24 +00:00
Vadim Zeitlin
dabb05ac5b quote an underscore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 17:26:57 +00:00
Vadim Zeitlin
8fe79cfc42 removed extra '}'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 17:23:01 +00:00
Vadim Zeitlin
ba804ab2d4 don't hardcode HTML font sizes, this makes wxHtmlWindow look really ugly when default font size is not 12, base the default font sizes on wxNORMAL_FONT instead
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 16:52:58 +00:00
Vadim Zeitlin
6c6a3e8a23 shouldn't update cursor for hidden windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 16:05:56 +00:00
Vadim Zeitlin
73865dad6e remove the object from wxPendingDelete list before deleting it to avoid infinite loop if DeletePendingObject() is reentered from object dtor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 15:49:11 +00:00
Włodzimierz Skiba
449210a44c Warning fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 14:09:34 +00:00
Vadim Zeitlin
fe24a9451e reset busy cursor checkbox when switching to another control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 13:23:47 +00:00
Vadim Zeitlin
5478f2210d changed GTKCallbackCommonPrologue() to return -1 in addition to true and false to allow returning immediately with true return code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 13:22:32 +00:00
Vadim Zeitlin
06a7419e71 forgot GTKSetDelayedFocusIfNeeded() call in the last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 13:07:16 +00:00
Vadim Zeitlin
1c2b98d6f5 Many changes:
- Introduced GTKGetWindow() which returns all GdkWindows associated with the
  given wxWindow
- Renamed IsOwnGtkWindow() to GTKIsOwnWindow() to avoid confusion with the old
  virtual function (the new one is non-virtual and is implemented in terms of
  GTKGetWindow())
- Refactored/simplified event handlers code in gtk/window.cpp
- Fixed some header guards names (__GTKFOO__ -> _WX_GTK_FOO_H_)
- Added GTKUpdateCursor() which sets the current cursor for all windows
  returned by GTKGetWindow()
- Factored out code from many different classes in wxControl::OnInternalIdle()
  which now updates the cursor, checks for internal focus and sends update UI
  events


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 13:06:19 +00:00
Vadim Zeitlin
ef5c70f96f Many changes:
- Introduced GTKGetWindow() which returns all GdkWindows associated with the
  given wxWindow
- Renamed IsOwnGtkWindow() to GTKIsOwnWindow() to avoid confusion with the old
  virtual function (the new one is non-virtual and is implemented in terms of
  GTKGetWindow())
- Refactored/simplified event handlers code in gtk/window.cpp
- Fixed some header guards names (__GTKFOO__ -> _WX_GTK_FOO_H_)
- Added GTKUpdateCursor() which sets the current cursor for all windows
  returned by GTKGetWindow()
- Factored out code from many different classes in wxControl::OnInternalIdle()
  which now updates the cursor, checks for internal focus and sends update UI
  events


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 12:59:28 +00:00
Włodzimierz Skiba
d5eb08546f Missing API.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 11:21:14 +00:00
Jouk Jansen
097b868b5a Patches for OpenVMS port
Modified Files:
wxWidgets/setup.h_vms wxWidgets/src/common/descrip.mms
 	wxWidgets/src/generic/descrip.mms
 	wxWidgets/src/gtk/descrip.mms wxWidgets/src/gtk1/descrip.mms
 	wxWidgets/src/motif/descrip.mms wxWidgets/src/x11/descrip.mms


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 06:56:52 +00:00
Paul Cornett
d0e7975501 set depth to 32 when creating pixbuf from wxImage with alpha; correct a few comments
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 06:27:34 +00:00
Robin Dunn
777dffec69 Add wrappers for wxNativePixelData and wxAlphaPixelData
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 03:30:20 +00:00
Robin Dunn
7499bd8874 Still check for a Python error in %threadWrapperOff
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 03:21:18 +00:00
Robin Dunn
44d669c880 Default construcctor for Iterator
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 03:19:06 +00:00
Michael Wetherell
9aecec9a94 Add apptrait.h for msdos
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-24 21:18:18 +00:00
Vadim Zeitlin
3e85973919 prevent selecting the treebook items without corresponding pages to ensure that CurrentPage() always returns something non NULL and removed the checks for it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-24 21:05:20 +00:00
Vadim Zeitlin
9f30729a03 don't reset the selection after event was vetoed if there is no old selection
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-24 21:00:07 +00:00
Vadim Zeitlin
e32bcef6e7 added tests for setting the cursor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-24 20:26:59 +00:00
Michael Wetherell
73dd8b2deb Implement wxIsPlatform64Bit().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-24 20:24:08 +00:00
Michael Wetherell
38a097f588 Missing exports.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-24 19:35:46 +00:00