Commit Graph

41513 Commits

Author SHA1 Message Date
Julian Smart
c9f62632e9 Applied #10828 (Hourglass in wxDocManager::OnPreview)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 13:54:46 +00:00
Julian Smart
c6fb1da330 Applied #10799: using CallTipUseStyle() doesn't enable wxSTC_STYLE_CALLTIP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 13:16:56 +00:00
Julian Smart
de089d8a1c Applying patch #10784: eliminate gauge flicker
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 10:18:25 +00:00
Julian Smart
b2f96cafca Applied patch #9510: wxIAccessible access freed memory
by Cyball


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 10:15:06 +00:00
Julian Smart
ee18a103b3 Applied patch #11078 - DEVMODE creation in wxWindowsPrintNativeData::TransferFrom plus SetQuality to dpi
by Martin Perktold


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 09:52:26 +00:00
Julian Smart
b105aac221 Applied #10659 (year change in copyright)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 07:42:09 +00:00
Julian Smart
a0b4f26342 Applied #10639 (Not all previewed fonts are displayed with the correct nameface)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 07:36:00 +00:00
Julian Smart
8932702b0c Added wxRICHTEXT_HANDLER_USE_CSS flag for HTML handler to use CSS
where possible.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-23 11:06:30 +00:00
Julian Smart
06666889ff Fixed #10702 (encoding not used in HTML handler)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-23 07:53:08 +00:00
Julian Smart
a3e04e576b Compile fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-23 07:45:14 +00:00
Julian Smart
279df2ce99 Fix for wrong line placement when centering or right-aligning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-23 07:38:57 +00:00
Julian Smart
66b33d22fa Fix for #4696: added SetDefaultStyleToCursorStyle() to SetInsertionPoint() so style is taken from context, not the style at a previous location.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-22 16:36:42 +00:00
Julian Smart
6c0f734302 Returning WVR_REDRAW triggers Windows bug that moves child windows, so don't use it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-22 15:20:42 +00:00
Julian Smart
c48ada3df4 Fixed #9996 (incorrect XML output in Ansi build for non-ASCII character)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-22 13:06:10 +00:00
Julian Smart
6ac5d9ebd0 Don't use deprecated background style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-22 10:03:45 +00:00
Vadim Zeitlin
f15c021bb6 Fix possible deadlock in wxEvtHandler::ProcessPendingEvents().
Delete the event we just processed before re-locking the critical section as
this may result in deadlocks if the (user-defined) event dtor does something
non-trivial.

Closes #10790.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-20 21:48:50 +00:00
Julian Smart
c78e95f633 Avoid duplicate character event for VK_DECIMAL on numeric keypad
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-20 10:57:20 +00:00
Vadim Zeitlin
122fc27e3e Check for self-assignment in wxFileName::operator=().
This is a backport of r56794 from trunk but adds the check for self-assignment
to the Assign() implementation which is in a .cpp file and so is compiled into
the library and not operator=() itself which is inlined to avoid any problems
with mixing different version of this inline function when updating to next
2.8 version without recompiling.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-16 11:37:46 +00:00
Julian Smart
ce2a0101bf wxRTC's own caret is more reliable than the generic one, so use it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-14 15:52:26 +00:00
Stefan Neis
76738ae8b7 Be more paranoid about parent window possibly being NULL (partly fixes #11195).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-13 15:47:25 +00:00
Julian Smart
9a2e7481ba Fix on Mac to prevent scrollbars always being shown
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-11 08:55:34 +00:00
Vadim Zeitlin
cdf7bf04aa Predefine wxNEEDS_T to fix wxrc compilation with Sun CC.
After the recent changes _T() is not defined any longer when using Sun CC but
this file does need it to be defined and seems to compile fine when it is, so
define wxNEEDS_T before including any wx headers.

See #10660.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-09 22:37:14 +00:00
Vadim Zeitlin
6dfeacd66f Don't use _T() in public headers used under Unix.
Avoid conflict with the Sun CC standard headers (see #10660).

Also update the change log to mention _T() changes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-09 22:37:05 +00:00
Vadim Zeitlin
9ff9127930 Undef _T before including standard headers and redefine it later.
This change fixes the build of wxWidgets itself by undefining _T() before
including any standard headers and redefining it after including them.

See #10660.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-09 22:29:51 +00:00
Vadim Zeitlin
7620326bdb Don't define _T() when using Sun compiler if possible.
Avoid defining _T() if possible as it conflicts with the use of this
identifier in standard headers. Do still define it when building wx itself or
when the special symbol wxNEEDS__T is explicitly predefined.

See #10660.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-09 22:29:43 +00:00
Vadim Zeitlin
b03aba8244 Define WXBUILDING when building wxWidgets itself.
This is needed by the upcoming _T-related patches (see #10660).

Notice that only Makefile.in was regenerated using the old 0.2.5 bakefile
version to keep changes to the minimum. The other makefiles will have more
changes when they are regenerated with bakefile 0.2.6 after we update to it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-09 22:29:35 +00:00
Vadim Zeitlin
080a52bc8e Use VariantTimeToSystemTime() in wxConvertOleToVariant().
Fix the problem with variants containing only time (but not date) information.

Also check in the symmetric changes to wxConvertVariantToOle() but disable
them for now as they were not tested.

Closes #11177.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-06 15:59:49 +00:00
Vadim Zeitlin
01943fa2ea Really fix compilation of wxURLDataObject.
Conversion from char* to wxString doesn't exist in 2.8, need to do it
explicitly.

Closes #11102.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-05 12:39:26 +00:00
Vadim Zeitlin
77756ff0f2 Fix bug in wxTreeCtrl::ItemHasChildren() for virtual root item.
Backport of r58177 from trunk, see #11169.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-04 19:10:46 +00:00
Vadim Zeitlin
4a7adb8fcc Another compilation fix after r61814.
wxDECLARE_NO_COPY_CLASS() doesn't exist in 2.8, only DECLARE_NO_COPY_CLASS()
does.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-04 00:29:52 +00:00
Vadim Zeitlin
581b7a97be Compilation fix after r61814.
Trunk change was not completely merged and broke the build, fix it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-03 11:03:36 +00:00
Vadim Zeitlin
1a0b69436c Fix off by one errors and buffer overflows in wxURLDataObject.
Backport of r61787 and r61788 from trunk.

Closes #11102.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-03 00:32:09 +00:00
Vadim Zeitlin
0ce4ea896d Fix SetToolTip(NULL) in newer GTK versions.
Backport of r61549 from HEAD.

Closes #11158.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-03 00:16:50 +00:00
Julian Smart
da7eb4871d Documented font dialog fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-01 13:39:07 +00:00
Julian Smart
e3dca87def Backported fix from 2.9.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-01 13:36:08 +00:00
Vadim Zeitlin
05e99449f5 Unload GDI+ DLL during wxWidgets shutdown.
This was done during static objects cleanup time previously resulting in
deadlocks when wxWidgets was used as a DLL as DLLs can't be unloaded when
wxWidgets DLL itself is being finalized because of the global loader lock.

This is a back port of r48778 and r54233 from trunk.

Closes #11127.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-23 21:36:09 +00:00
Vadim Zeitlin
e5c9621fd1 Fix extraction of standard command line arguments in wxX11.
The original number of arguments should be used when checking the argument
index for validity. Additionally, memmove() wasn't moving the correct number
of bytes because of forgotten sizeof().

See #11124.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-20 00:01:55 +00:00
Julian Smart
8b9009904d Fix numpad Del not working in wxRTC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-18 17:33:02 +00:00
Vadim Zeitlin
31f6f21ddf Corrected fix for #11014 in r61506.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-13 17:32:24 +00:00
Julian Smart
a6635eb987 If zero spacing after paragraph is explicitly specified, suppress spacing after paragraph.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-11 09:27:25 +00:00
Julian Smart
e391f598c0 Mark a couple of labels for translation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-09 15:55:56 +00:00
Václav Slavík
cb14e362f3 compilation fix: only one wxInitialize form may have default argument values
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-30 10:14:36 +00:00
Václav Slavík
08d173ca31 compilation fix: only one wxInitialize form may have default argument values
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-30 10:14:03 +00:00
Václav Slavík
a3bc27e40a added wxInitialize() overload taking char**, to make use from main() easier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-30 07:42:54 +00:00
Václav Slavík
f90c861996 fixed typo in comment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-30 07:36:39 +00:00
Václav Slavík
113abce509 Use wxInitializer in wxEntryReal() instead of directly calling wxEntryStart() without refcounting. This makes it possible to write hybrid CLI/GUI wx applications.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-30 07:10:38 +00:00
Vadim Zeitlin
100d32a6a3 Fix crash when copying Unicode URLs to the clipboard.
Closes #11014.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 15:01:32 +00:00
Vadim Zeitlin
a30d58b54d position the popup on the correct screen (see #10462) [backport of r58592 and r58598 from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-19 16:45:08 +00:00
Paul Cornett
3756f0ee8f fix crash with repeated split horizontal/vertical and replace window, #11002
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-18 22:46:26 +00:00
Vadim Zeitlin
8a6a7954c5 remove the event handler being deleted from pending events list (closes #10997)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-17 14:30:05 +00:00