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
Michael Wetherell
152442d40d
Revert change to add -t to buildbot test runs as some branches don't have it.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-17 08:50:35 +00:00
Michael Wetherell
5033c8a6df
Use -t on buildbot test runs.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-16 22:14:26 +00:00
Vadim Zeitlin
d15946384a
Don't define wxADJUST_MINSIZE if it had been already defined.
...
Defining wxADJUST_MINSIZE as 0 may be a simple way to make the old code to
compile and while it works without WXWIN_COMPATIBILITY_2_8 it paradoxically
doesn't work with it because this results in errors when wxADJUST_MINSIZE is
defined as 0 by wx itself.
Avoid this problem by only defining wxADJUST_MINSIZE ourselves if it hadn't
been defined yet.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-16 20:52:59 +00:00
Vadim Zeitlin
e79f02bdde
Add wxToolBar::GetToolByPos() method to access tools by their index.
...
This is a trivial accessor which somehow was never added before even though we
had GetToolsCount() and even DeleteToolByPos().
Closes #11120 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-16 20:52:53 +00:00
Václav Slavík
1be1262444
Fix build breakage caused by bConvertEncoding deprecation.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64003 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-16 20:09:00 +00:00
Jaakko Salli
5ceb034560
Try a blind fix for VC6 compilation issues (wxAny ctor has become too ambiguous now that it has a form that takes wxVariant reference)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64002 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-16 15:34:46 +00:00
Jaakko Salli
4e0bdd562d
Adapted wxPropertyGrid documentation, samples, tests, and wxVariantData-macros to the new wxAny<->wxVariant conversions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-16 14:36:32 +00:00
Jaakko Salli
0bf14ab8b1
wxVariant <-> wxAny conversion functionality. Includes implicit construction of wxAny from wxVariant, and vice versa. wxVariant->wxAny conversion is implemented by adding new virtual member function into wxVariantData. wxAny->wxVariant conversion is implemented by associating wxAnyValueTypes with functions that generate wxVariantData instances (using a hash map).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-16 14:33:52 +00:00
Vadim Zeitlin
75504144d2
Minor corrections to the documentations.
...
Use the correct "override" instead of "overload". Remove unnecessary "virtual"
keyword occurrences.
Closes #11949 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-16 12:47:31 +00:00