Commit Graph

40921 Commits

Author SHA1 Message Date
Vadim Zeitlin
46915bd68a get wxSYS_COLOUR_MENU from a menu bar and not from a button (patch 1887197)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-09 23:35:16 +00:00
Vadim Zeitlin
4e825bab21 use generic file picker in wxFLP_SAVE case as the native one doesn't allow to select non-existent files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-09 23:30:47 +00:00
Vadim Zeitlin
1988baa62b added alpha support to wxImage::Paste() (patch 1883497, bug 1831612)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-09 15:32:04 +00:00
Vadim Zeitlin
d05d5c1687 don't lose the contents of the combobox if it was set to a value not in a list and a popup has been opened and closed (patch 1883474)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-09 15:22:15 +00:00
Vadim Zeitlin
be0d2b4b11 don't hardcode grey/white colours for non-MSW/Mac in InitColours(), use wxSystemSettings for all ports (even if some of them, such as wxGTK, still hardcode white for wxSYS_COLOUR_3DHILIGHT) (replaces patch 1883386)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-09 15:10:13 +00:00
Benjamin Williams
326ed6e95e maximize bug fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-08 13:55:30 +00:00
David Elliott
caea5ecdc0 Fix tracking rectangles in 64-bit build by remembering the tag as the 64-bit integer that it is in that mode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-08 09:12:04 +00:00
Vadim Zeitlin
30b001e3af don't redeclare wxYield() if it had been already declared to fix g++ warnings with -Wredundant-decls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-08 08:17:41 +00:00
David Elliott
1be61dfe2d Reword the comment again. I forgot to save before committing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-08 08:06:26 +00:00
David Elliott
7f6224c05e Change the __NEXT_RUNTIME__ test to __OBJC_GC__ which is what I really meant
but I had to look up which preprocessor define was emitted by -fobjc-gc.
Also improve the comments a bit.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-08 08:04:46 +00:00
David Elliott
ff544956a5 Avoid warnings in the Objective-C uniquifying code when running in GC mode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-08 04:24:35 +00:00
David Elliott
08433260e8 Add wxGCSafeRetain/wxGCSafeRelease to the vast majority of wxCocoa code.
Copyright 2008 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-08 00:35:39 +00:00
David Elliott
f42fc2c1a7 Instead of using wxCFRetain/wxCFRelease directly for Objective-C objects add
new wxGCSafeRetain/wxGCSafeRelease functions which are specific to Objective-C
objects and can be compile-time switched to standard retain/release without
breaking wxCFRetain/wxCFRelease for CF objects.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-07 23:37:30 +00:00
David Elliott
0b2ad6e81a Regenerate configure.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-07 21:29:23 +00:00
David Elliott
519dd9111f Add in some support for separate CXXFLAGS and OBJCXXFLAGS.
Add -DWX_PRECOMP to CXXFLAGS instead of CPPFLAGS.
Combined with very slight Bakefile changes to use OBJCXXFLAGS, this greatly improves the wxCocoa build.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-07 20:59:50 +00:00
Julian Smart
b7fd84915d Show 3D border on XP Classic theme
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-07 16:42:22 +00:00
Julian Smart
d646b8d6c7 Avoid scrolling parts of the screen that don't belong to us
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-07 14:15:45 +00:00
David Elliott
78b65191d6 Fix most of the Objective-C GC problems by using the stronger CFRetain/CFRelease in wxObjcAutoRef.
Actually use wxObjcAutoRef for the wxNSViewNotificationObserver singleton to keep it from being finalized.

Copyright 2008 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-06 20:10:07 +00:00
Vadim Zeitlin
3d4b579bd8 correction after the previous commit which introduced bug 1888014 [backport of r51574 from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-06 19:58:30 +00:00
Julian Smart
b850bbe616 Reset scroll position when clearing buffer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-06 19:18:25 +00:00
Vadim Zeitlin
006988d24f fix GetTLWParentIfNotBeingDeleted() to work correctly even if an intermediate non-TLW parent is being deleted, it should still return the TLW parent and not NULL in this case, otherwise we'd crash when a button child of a panel being deleted is current temporary default button [backport of r51570 from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-06 14:20:22 +00:00
Julian Smart
bc11931c4e Strip menu codes from page label for consistency with other platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-05 09:12:12 +00:00
Vadim Zeitlin
887f53ddf6 length passed to WideCharToMultiByte() was off by one in the last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-05 07:24:59 +00:00
Vadim Zeitlin
9b0956b277 set eol-style LF on even more Unix-only files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-04 17:05:54 +00:00
Vadim Zeitlin
f3282c3e51 set eol-style LF on more Unix-only files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-04 16:58:38 +00:00
Vadim Zeitlin
a129b6d15a use BSTR length to also deal with NULs inside BSTRs correctly in Unicode build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-04 08:08:57 +00:00
Vadim Zeitlin
6b5f2e44c1 use WideCharToMultiByte() instead of wcstombs() to deal with BSTRs containing NULs (modified patch 1886062)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-04 08:04:39 +00:00
Vadim Zeitlin
918a6614fa another correction to indices used in StringToLines()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 23:43:58 +00:00
Vadim Zeitlin
c0d550ed92 correct indices used in StringToLines() (modified patch 1882985)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 21:06:17 +00:00
Vadim Zeitlin
4e370c7f2a set svn:eol-style to LF [backport of r50845 from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 17:08:41 +00:00
Vadim Zeitlin
fcaa9a6e30 build fix for wxUSE_INTL==0 (patch 1878908)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 14:12:45 +00:00
Vadim Zeitlin
3aac5b45ea don't use negative sizes for row/column labels subwindows to avoid GTK warnings (patch 1878512)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 14:11:24 +00:00
Vadim Zeitlin
807eac818a make XPM data const to avoid warnings from mingw 4.0 (patch 1874995)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 13:48:11 +00:00
Václav Slavík
285900728d fixed wxTextCtrl to not process clipboard events twice if there's a custom wxEVT_COMMAND_TEXT_* handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-02 14:07:19 +00:00
Michael Wetherell
f8f925e0a9 Compile fix when 2.6 compatibility on and --without-zlib.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-01 16:44:56 +00:00
Julian Smart
8b2a6dfc24 Added a reset-buffer event to give an opportunity to set the default initial style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-01 14:13:51 +00:00
David Elliott
7e27b3c853 Allow wxTopLevelWindowCocoa::SetDefaultItem(NULL)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-31 19:17:42 +00:00
Vadim Zeitlin
2902ec6116 return the result of ProcessEvent() from ProcessCommand() instead of always returning true unconditionally
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-30 21:31:03 +00:00
Julian Smart
349556aba5 Added checks to encoding conversion to avoid crash
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-30 17:02:53 +00:00
Vadim Zeitlin
24ca0acd57 corrected comment: wxSingleInstance is not for Win32 only since about 10 years
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-29 23:11:55 +00:00
Julian Smart
ccaff46ee6 Corrected wxSetCursor documentation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-29 11:18:03 +00:00
Julian Smart
8012cfb11f Fixed global cursor setting on Mac, which fixes busy cursor and context help cursor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51437 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-29 11:01:27 +00:00
Julian Smart
fbd42050d5 Take basic style into account when applying style sheet
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-27 17:58:43 +00:00
Julian Smart
a5e384ca8d Take basic style into account when showing style under cursor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51413 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-27 17:34:36 +00:00
Václav Slavík
a36c664252 Fixed wxCURSOR_HAND to map to GDK_HAND2 and not GDK_HAND1, for consistency with other applications
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-27 15:26:44 +00:00
Vadim Zeitlin
da79097cbe only define wxEventPtr in wxBase, not wxCore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-27 12:57:04 +00:00
Vadim Zeitlin
38d05c1011 don't fail in wxTransferStreamToFile if file size is exact multiple of 4KB (bug 1835918)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-26 23:23:09 +00:00
Vadim Zeitlin
29f1f4864e delete the event object in ProcessPendingEvents() even if the handler throws an exception (bug 1836010)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-26 23:18:30 +00:00
Vadim Zeitlin
57f27af169 fix assert when using owner-drawn menu items with the newest (Vista) SDK [backport from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-26 01:38:06 +00:00
Julian Smart
1ca0f7a249 Corrected image saving to HTML
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-25 16:38:18 +00:00