Commit Graph

50824 Commits

Author SHA1 Message Date
Stefan Csomor
cffdfa8f73 simpler code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-22 06:23:57 +00:00
Stefan Csomor
2680ddc678 shutdown sequence routing to EndSession calls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-22 06:18:15 +00:00
Stefan Csomor
7934e44732 overriding the cfrunloop accessor, during booting cocoa has to create a NSRunLoop earlier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-22 06:16:34 +00:00
Václav Slavík
ebeac822d9 msgIdCharset is only needed in ANSI build.
In Unicode build, there's no need to create wxCSConv object for every
loaded catalog when it won't be used for anything.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-21 16:46:05 +00:00
Vadim Zeitlin
b5415496c3 No real changes, just fix typos in the ownerdrw sample.
s/Cheked/Checked/g

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-21 14:40:42 +00:00
Vadim Zeitlin
c71238020c Remove the extra margins when checking owner drawn menu icons size.
The extra +4 in IsLessThanStdSize() functions resulted in assert failures
under Windows XP after the ownerdraw drawing changes so remove it as nobody
knew why was it there anyhow.

Also replace IsLessThanStdSize() with IsGreaterThanStdSize() to allow using it
directly instead of always testing for !IsLessThanStdSize().

See #11657.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-21 14:40:28 +00:00
Stefan Csomor
42a8164310 non precomp build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-21 04:13:56 +00:00
Stefan Csomor
8ec413ce46 avoiding full resize-invalidate and refresh
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-20 20:48:49 +00:00
Stefan Csomor
eb68a54a40 restoring special handling for carbon system menu items, fixes #11819
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-20 20:29:22 +00:00
Stefan Csomor
445e564f12 tracking open modal dialogs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-20 19:09:38 +00:00
Stefan Csomor
bd23338782 currently avoid problems when releasing the capture during drag on osx_cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-20 19:07:42 +00:00
Stefan Csomor
66506259a0 better layout for simple one param messages, closes #11810
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-20 16:02:32 +00:00
Stefan Csomor
075e355305 having common API for mapping between native and wx tlw type
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-20 14:55:42 +00:00
Stefan Csomor
447e2772a6 type of wrapped window can be any NSWindow, not only our own classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-20 14:55:10 +00:00
Stefan Csomor
e86d68934f TODO done
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-20 14:54:32 +00:00
Stefan Csomor
0e05b13c42 use new call
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-20 14:53:36 +00:00
Stefan Csomor
638b3cd7a8 wrap native TLWs so that they also appear in the tlw list
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-20 14:51:54 +00:00
Stefan Csomor
e17ac396d0 support for capturing, use categories instead of member vars for the implementation mapping, so that we can wrap native NSWindow instances as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-20 14:50:27 +00:00
Jaakko Salli
49efebe247 Fix VC6 compilation by changing the order of assignment operators in wxAny
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-20 12:55:34 +00:00
Vadim Zeitlin
b871bb951a Check for menu title being non-empty when appending it to the menu bar.
It doesn't make sense to add a menu with empty title to the menu bar so assert
that the title is not empty and fail to add the menu if it is.

See r64033 in wxQT branch.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-20 11:59:46 +00:00
Vadim Zeitlin
f994a8ac8d Add wxProgressDialog::Was{Cancelled,Skipped}() convenience methods.
Although the information about "Cancel" and "Skip" buttons presses is returned
from Update(), sometimes it may be more convenient to ask the dialog about
whether it was cancelled or skipped instead of storing it in the program
itself.

Add the methods which allow to check for this.

Closes #10903.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-20 11:10:33 +00:00
Jouk Jansen
ccb3689a19 correcting error in OpenVMS makefile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-20 07:28:33 +00:00
Stefan Csomor
4766d85b11 if we have wxBG_STYLE_PAINT, we must clear the background ourselves, since on OSX there might be transparent subpanels, fixes #11958
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-20 05:01:39 +00:00
Francesco Montorsi
7f01b1fe21 minor additions and clarifications
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-19 18:54:26 +00:00
Stefan Csomor
fde2aa3a95 re-adding script that is needed for xcode builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-19 14:44:24 +00:00
Jaakko Salli
2dcd173e27 or -> || (how did that compile on GCC anyway?)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-19 14:33:02 +00:00
Jaakko Salli
4403de7616 When deciding whether to convert wxAny to 'long' or 'longlong' wxVariant, use wxINT32_MAX instead of LONG_MAX (for more consistent results across builds)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-19 14:25:41 +00:00
Jaakko Salli
fdfd64994c Improve wxAny<->wxVariant conversion 64-bit integer tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-19 14:23:49 +00:00
Stefan Csomor
48159545de missing return value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-19 13:36:27 +00:00
Jouk Jansen
5e7b988183 update OpenVMS compile support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-19 12:39:45 +00:00
Vadim Zeitlin
b7cb8553f3 Use "monospace" face name for all Unix systems, hopefully it should work.
This fixes failures of several build bot slaves (all running Debian or
Ubuntu) which were due to using "Fixed" under these Linux distributions.

Unfortunately "Fixed" didn't work as Pango doesn't seem to recognize it as a
valid face name. "DejaVu Sans" should probably work on most current Linux
systems but "Monospace" should hopefully be available on other Unix systems as
well.

We could also just take whatever wxFontEnumerator returns which should
probably be even more fool-proof.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-18 22:15:53 +00:00
Stefan Csomor
21e02d56c2 render characters on OSX one by one as fractional widths leads to errors otherwise
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-18 18:49:21 +00:00
Stefan Csomor
362439b629 concatenation must use prepend mode on osx as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-18 18:38:49 +00:00
Michael Wetherell
9c0e333ce1 Try to provide backtraces on unix buildbots if the test program crashes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-18 17:19:06 +00:00
Jaakko Salli
dabf03b4fb Use const_cast<> to get 'wxAnyValueType*' from 'const wxAnyValueType*'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-18 16:18:46 +00:00
Stefan Csomor
58110007c7 fixing coordinate conversions for captured windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-18 13:29:06 +00:00
Stefan Csomor
9876e9005c using same API
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-18 13:18:27 +00:00
Stefan Csomor
2f30930a09 streamlining code for extra controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-18 13:17:16 +00:00
Stefan Csomor
d67e4ac4c2 painting background of splitter as well, fixes #11958
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-18 13:15:56 +00:00
Jaakko Salli
549d99f043 Fix STL build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-18 11:54:53 +00:00
Jaakko Salli
0aaed451fd Fix wxAny for VC6 by removing 'wxAny& operator=(const wxVariant &variant)' for it. This will break some cases of implicit wxVariant->wxAny conversion (for VC6).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-18 11:15:26 +00:00
Jaakko Salli
a286080b4f Correctly use wxANY_AS() instead of wxAny::As<>(), for VC6 compatibility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-18 10:19:35 +00:00
Stefan Csomor
fc4187f4d7 normal windows also have transparent corners, so don't ever set it to non transparent ...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-18 09:49:06 +00:00
Vadim Zeitlin
cdc48273b4 Fix bug with using uninitialized flags in GetParentForModalDialog().
GetParentForModalDialog() was called from the ctor initialized list before
m_windowStyle could be initialized by the base class ctor in several different
places, meaning that the check for wxDIALOG_NO_PARENT in this function was
using uninitialized variable.

Fix this by passing the style parameter explicitly to this function to allow
using it from derived class ctors. Still keep an overload which uses the
actual window parent and flags which is simpler to use for later calls to this
function.

Thanks valgrind for finding this one.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-18 00:05:37 +00:00
Vadim Zeitlin
852febd80e Don't return invalid size from wxDir::GetTotalSize() for empty dirs.
wxDirTraverserSumSize::GetTotalSize() may, and will, return 0 for empty
directories, this is not an error and so don't treat it as such.

Closes #11937.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-17 14:15:34 +00:00
Vadim Zeitlin
191d6608f4 No real changes, just some minor cleanup of wxDirTraverserSumSize.
Put the comment before the code it comments on, not after.

Return const reference from an accessor.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-17 14:15:27 +00:00
Robert Roebling
2a227e8c9f Added virtual destructor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-17 12:34:32 +00:00
Jaakko Salli
901abd5953 Removed two instances of 'template<>' - looks like VC6 did not need it after all, but was just really picky about the order of constructors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-17 12:03:18 +00:00
Jaakko Salli
5afecf600d Suppressed some harmless VC6 warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-17 09:00:28 +00:00
Jaakko Salli
ea412ac4eb Fixed VC6 compilation - wxAny(const wxVariant&) ctor required a specific 'template<>')
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-17 08:59:13 +00:00