]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
14 years agoAccount for largest item in wxGenericListCtrl::GetBestSize().
Vadim Zeitlin [Sun, 11 Jul 2010 10:44:08 +0000 (10:44 +0000)] 
Account for largest item in wxGenericListCtrl::GetBestSize().

Don't just return a hard-coded value but at least return something big
enough to show the largest item in the control in non-report mode.

This fixes the appearance of wxListbook which simply truncated its items
before if they didn't fit in 80 pixels horizontally.

Also switch to implementing DoGetBestClientSize() instead of DoGetBestSize()
as this method doesn't account for the control borders (it does account for
the scrollbars however).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd wxSize::IncBy() and DecBy() overloads taking wxPoint.
Vadim Zeitlin [Sun, 11 Jul 2010 10:44:03 +0000 (10:44 +0000)] 
Add wxSize::IncBy() and DecBy() overloads taking wxPoint.

It seems to make at least as much sense to extend a wxSize by wxPoint than by
another wxSize (which doesn't make much size to me...) so add Inc/DecBy()
overloads doing this.

We might also add operator+=() overloads taking wxPoint for consistency but
for now don't add more operator overloads unnecessarily, let's wait if anybody
asks about this first.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoEnsure that wxGenericListCtrl always has wx[HV]SCROLL styles.
Vadim Zeitlin [Sun, 11 Jul 2010 10:43:57 +0000 (10:43 +0000)] 
Ensure that wxGenericListCtrl always has wx[HV]SCROLL styles.

Although these styles are unconditionally added when creating the window they
could be reset by calling SetWindowStyleFlag() later and this in fact happened
when changing control mode from wxListbook.

As it doesn't make sense to have wxListCtrl without these styles, also add
them unconditionally in overridden SetWindowStyleFlag() as well.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDon't set negative size when using constraints for layout.
Vadim Zeitlin [Sun, 11 Jul 2010 10:43:53 +0000 (10:43 +0000)] 
Don't set negative size when using constraints for layout.

Passing negative size to GTK+ results in error messages and in the future
wxWindow::SetSize() itself might assert if passed negative size so just avoid
setting it in the first place even if there is not enough space for
everything.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoImplement wxWindow::DoGetBorderSize() for all ports.
Vadim Zeitlin [Sun, 11 Jul 2010 10:43:49 +0000 (10:43 +0000)] 
Implement wxWindow::DoGetBorderSize() for all ports.

Implement DoGetBorderSize() properly for wxGTK and use the difference between
the full window size and the client size for all the ports not implementing
this method. The latter is incorrect in the presence of the scrollbars but is
the best we can do in general.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix item selection/focus drawing in generic wxListCtrl.
Vadim Zeitlin [Sun, 11 Jul 2010 10:43:43 +0000 (10:43 +0000)] 
Fix item selection/focus drawing in generic wxListCtrl.

Item focus rectangle was not drawn at all under wxGTK as the code doing it was
disabled with a comment saying that it was drawn elsewhere -- but this wasn't
the case.

So remove #ifdefs for wxGTK/Mac from generic wxListCtrl code and do use
wxRendererNative methods for all platforms. This fixes the appearance of the
control under GTK and if it introduces any problems under Mac, they should be
fixed in its wxRendererNative implementation and not by adding #ifdefs here.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDon't use tree style to draw focus in DrawItemSelectionRect() in wxGTK.
Vadim Zeitlin [Sun, 11 Jul 2010 10:43:39 +0000 (10:43 +0000)] 
Don't use tree style to draw focus in DrawItemSelectionRect() in wxGTK.

Using gtk_paint_focus() with a tree widget style did a clearly wrong thing
with Clearlooks theme: instead of drawing a focus rectangle it drew a
background with a shadow overflowing the specified rectangle. This resulted in
junk being left when the selection was changing in wx{List,Tree}Ctrl.

Just use the widgets own style instead as this seems to work just fine. After
this change the code for focus drawing in DrawItemSelectionRect() became
identical to the code of DrawFocusRect() so just call the latter from the
former instead of duplicating its code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAllow user code to override key events in generic wxListCtrl.
Vadim Zeitlin [Sun, 11 Jul 2010 10:43:35 +0000 (10:43 +0000)] 
Allow user code to override key events in generic wxListCtrl.

The changes of r58323 ("Restore keyboard navi") fixed the handling of cursor
keys in the generic wxListCtrl implementation but at the price of not sending
keyboard events for the cursor keys to wxListCtrl itself any more. This made
it impossible to override their handling in user code, something that used to
work in previous wx versions and still works in wxMSW.

Revert the changes of this revision now and fix the original code by simply
disabling the handling of the cursor keys in wxScrollHelperBase using a newly
added DisableKeyboardScrolling() method. This ensures that the keyboard events
for cursor keys are not used to scroll the window when they are forwarded to
wxListCtrl from wxListMainWindow.

The fix is conceptually ugly as it would be better to avoid the need for such
ad hoc functions as DisableKeyboardScrolling() but it is very simple and there
just doesn't seem to be any sane way to do it otherwise with wxScrollHelperBase.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix setting wxStaticText alignment under wxGTK.
Vadim Zeitlin [Sun, 11 Jul 2010 10:43:28 +0000 (10:43 +0000)] 
Fix setting wxStaticText alignment under wxGTK.

The alignment was ignored unless a wxST_ELLIPSIZE_XXX style was already used.
Apparently calling gtk_label_set_ellipsize(PANGO_ELLIPSIZE_NONE) resets the
alignment, so set the alignment after setting the ellipsization style, not
before.

Another possible solution would be to avoid calling gtk_label_set_ellipsize()
completely if no ellipsization styles are given but maybe the original code
didn't do this for some (unknown and undocumented) reason so keep it this way.

Closes #10716.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoSwap client data pointers in wxRearrangeList too.
Vadim Zeitlin [Sun, 11 Jul 2010 10:43:23 +0000 (10:43 +0000)] 
Swap client data pointers in wxRearrangeList too.

If the list box uses client data, we need to swap the data pointers too when
exchanging items in it.

Closes #12201.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCorrect the size of bitmap returned by wxRegion::ConvertToBitmap().
Vadim Zeitlin [Sun, 11 Jul 2010 10:43:18 +0000 (10:43 +0000)] 
Correct the size of bitmap returned by wxRegion::ConvertToBitmap().

The bitmap was 1 pixel smaller than needed due to the unwarranted use of
wxRect::GetRight() and GetBottom() instead of GetWidth() and GetHeight().

Closes #12213.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoSyntax error fix
Julian Smart [Sat, 10 Jul 2010 20:39:17 +0000 (20:39 +0000)] 
Syntax error fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUpdated configure for small, probably futile iPhone-related changes
Julian Smart [Sat, 10 Jul 2010 16:19:55 +0000 (16:19 +0000)] 
Updated configure for small, probably futile iPhone-related changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd CFNetwork framework
Julian Smart [Sat, 10 Jul 2010 16:12:10 +0000 (16:12 +0000)] 
Add CFNetwork framework

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDo not run focus detection when handling events from editor control (mostly because...
Jaakko Salli [Sat, 10 Jul 2010 15:40:33 +0000 (15:40 +0000)] 
Do not run focus detection when handling events from editor control (mostly because they may be showing a dialog)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agowxArrayEditorDialog now uses wxEditableListBox. It has also been renamed to wxPGArray...
Jaakko Salli [Sat, 10 Jul 2010 15:30:35 +0000 (15:30 +0000)] 
wxArrayEditorDialog now uses wxEditableListBox. It has also been renamed to wxPGArrayEditorDialog.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse -miphoneos-version-min if compiling for iPhone and --with-macosx-version-min...
Julian Smart [Sat, 10 Jul 2010 14:22:34 +0000 (14:22 +0000)] 
Use -miphoneos-version-min if compiling for iPhone and --with-macosx-version-min was specified.
Otherwise .mm files may not compile correctly with some iPhone SDKs.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFixed frameworks for iPhone build
Julian Smart [Sat, 10 Jul 2010 08:45:42 +0000 (08:45 +0000)] 
Fixed frameworks for iPhone build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix undefined symbols
Julian Smart [Fri, 9 Jul 2010 17:26:27 +0000 (17:26 +0000)] 
Fix undefined symbols

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoInclude scopeguard.h for wxON_BLOCK_EXIT_SET()
Jaakko Salli [Fri, 9 Jul 2010 15:17:21 +0000 (15:17 +0000)] 
Include scopeguard.h for wxON_BLOCK_EXIT_SET()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoiPhone SDK 2.2 compilation
Julian Smart [Thu, 8 Jul 2010 17:35:45 +0000 (17:35 +0000)] 
iPhone SDK 2.2 compilation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRespect wxUSE_MENUS in toolbar base classes
Julian Smart [Thu, 8 Jul 2010 17:35:04 +0000 (17:35 +0000)] 
Respect wxUSE_MENUS in toolbar base classes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAvoid warning
Julian Smart [Thu, 8 Jul 2010 13:32:34 +0000 (13:32 +0000)] 
Avoid warning

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agomention wxPostEvent() and wxQueueEvent() and related wxEvtHandler functions.
Francesco Montorsi [Wed, 7 Jul 2010 10:12:38 +0000 (10:12 +0000)] 
mention wxPostEvent() and wxQueueEvent() and related wxEvtHandler functions.
use wx prefix for event table macros.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoonly hide tool windows on deactivate, fixes #11924
Stefan Csomor [Wed, 7 Jul 2010 08:32:17 +0000 (08:32 +0000)] 
only hide tool windows on deactivate, fixes  #11924

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agosupporting disabled tools, fixes #11457
Stefan Csomor [Wed, 7 Jul 2010 08:26:00 +0000 (08:26 +0000)] 
supporting disabled tools, fixes #11457

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd std::[w]string support to wxVariant.
Václav Slavík [Mon, 5 Jul 2010 14:23:21 +0000 (14:23 +0000)] 
Add std::[w]string support to wxVariant.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agofixing doc for OSX
Stefan Csomor [Mon, 5 Jul 2010 06:39:56 +0000 (06:39 +0000)] 
fixing doc for OSX

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agousing backwards compatible implementation
Stefan Csomor [Mon, 5 Jul 2010 06:36:21 +0000 (06:36 +0000)] 
using backwards compatible implementation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoMake m_inDoPropertyChanged and m_inCommitChangesFromEditor bools; Manage m_inDoProper...
Jaakko Salli [Sun, 4 Jul 2010 11:21:27 +0000 (11:21 +0000)] 
Make m_inDoPropertyChanged and m_inCommitChangesFromEditor bools; Manage m_inDoPropertyChanged using wxON_BLOCK_EXIT_SET()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoMention why wxPG_EX_UNFOCUS_ON_ENTER was removed
Jaakko Salli [Sun, 4 Jul 2010 10:39:10 +0000 (10:39 +0000)] 
Mention why wxPG_EX_UNFOCUS_ON_ENTER was removed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agom_inDoSelectProperty: make it bool and use wxON_BLOCK_EXIT_SET() on it.
Jaakko Salli [Sun, 4 Jul 2010 10:30:13 +0000 (10:30 +0000)] 
m_inDoSelectProperty: make it bool and use wxON_BLOCK_EXIT_SET() on it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRedundant wxPropertyGrid validation failure message boxes should no longer be shown
Jaakko Salli [Sun, 4 Jul 2010 09:46:43 +0000 (09:46 +0000)] 
Redundant wxPropertyGrid validation failure message boxes should no longer be shown

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoChanged wxPropertyGrid default property validation failure behavior to more user...
Jaakko Salli [Sun, 4 Jul 2010 08:53:07 +0000 (08:53 +0000)] 
Changed wxPropertyGrid default property validation failure behavior to more user-friendly wxPG_VFB_MARK_CELL | wxPG_VFB_SHOW_MESSAGEBOX

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoTranslate text 'Property Error'
Jaakko Salli [Sun, 4 Jul 2010 08:33:16 +0000 (08:33 +0000)] 
Translate text 'Property Error'

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix assert in dataview sample, fixes #12194: wxDataViewCtrl sample asserts in wxArgNo...
Robert Roebling [Sun, 4 Jul 2010 08:25:28 +0000 (08:25 +0000)] 
Fix assert in dataview sample, fixes #12194: wxDataViewCtrl sample asserts in wxArgNormalizer

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdded new wxPropertyGrid property validation failure flags wxPG_VFB_SHOW_MESSAGEBOX...
Jaakko Salli [Sun, 4 Jul 2010 08:22:52 +0000 (08:22 +0000)] 
Added new wxPropertyGrid property validation failure flags wxPG_VFB_SHOW_MESSAGEBOX and wxPG_VFB_SHOW_MESSAGE_ON_STATUSBAR, which allow defining the default message display behavior more accurately

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoLet wxChoice determine its size for wxDataViewChoiceRenderer itself, fixes #12193...
Robert Roebling [Sun, 4 Jul 2010 08:22:06 +0000 (08:22 +0000)] 
Let wxChoice determine its size for wxDataViewChoiceRenderer itself, fixes #12193: wxDataViewChoiceRenderer size

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFixed XML parser error text formatting.
Václav Slavík [Sat, 3 Jul 2010 14:24:31 +0000 (14:24 +0000)] 
Fixed XML parser error text formatting.

XML_GetCurrentLineNumber() returns int in some versions of Expat and
unsigned long (or even uint64_t) in other versions. Just cast the value
to int so that it works correctly with all versions.

Fixes #12196.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix strings formatting in wxrc.
Václav Slavík [Sat, 3 Jul 2010 14:24:27 +0000 (14:24 +0000)] 
Fix strings formatting in wxrc.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix format strings parsing to understand C99 %zu etc.
Václav Slavík [Sat, 3 Jul 2010 14:24:23 +0000 (14:24 +0000)] 
Fix format strings parsing to understand C99 %zu etc.

The parser used to understand only 'Z' specifier for size_t/ptrdiff_t,
which is non-standard libc5 extension. C99 defines 'z' for this purpose,
so use that. Compatibility with 'Z' is preserved.

Also support Visual C++'s non-standard 'I' modifier with the same
meaning.

Fixes #12192.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agowxFileOffsetFmtSpec isn't translatable.
Václav Slavík [Sat, 3 Jul 2010 14:24:17 +0000 (14:24 +0000)] 
wxFileOffsetFmtSpec isn't translatable.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix vararg type checking to accept ints for %c.
Václav Slavík [Sat, 3 Jul 2010 14:24:12 +0000 (14:24 +0000)] 
Fix vararg type checking to accept ints for %c.

It's perfectly legitimate to format int values as %c, so don't assert in
this case.

Fixes #12192.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoSimply varargs type checking by adding subtypes to check mask.
Václav Slavík [Sat, 3 Jul 2010 14:24:06 +0000 (14:24 +0000)] 
Simply varargs type checking by adding subtypes to check mask.

Instead of always declaraing that a C++ type corresponds to either
Arg_String or Arg_Pointer, make Arg_String superset of Arg_Pointer.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoEliminated lingering validation failure message on the status bar. Added wxPropertyGr...
Jaakko Salli [Sat, 3 Jul 2010 12:22:58 +0000 (12:22 +0000)] 
Eliminated lingering validation failure message on the status bar. Added wxPropertyGrid virtual member functions DoHidePropertyError() and GetStatusBar().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agowxPropertyGrid validation failure was not (always) reset when a valid value was enter...
Jaakko Salli [Sat, 3 Jul 2010 11:43:49 +0000 (11:43 +0000)] 
wxPropertyGrid validation failure was not (always) reset when a valid value was entered after an invalid one.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFixed and improved wxIntProperty's min/max validation failure message
Jaakko Salli [Fri, 2 Jul 2010 14:24:45 +0000 (14:24 +0000)] 
Fixed and improved wxIntProperty's min/max validation failure message

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix printf arguments validation code for ANSI build.
Václav Slavík [Thu, 1 Jul 2010 15:28:35 +0000 (15:28 +0000)] 
Fix printf arguments validation code for ANSI build.

char arguments weren't recognized as allowed variadic types. Unlike in
Unicode build, where chars are treated specially, they are primitive
types in ANSI build.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse wxScopedCharBuffer in To8BitData() in ANSI build too.
Václav Slavík [Thu, 1 Jul 2010 15:28:30 +0000 (15:28 +0000)] 
Use wxScopedCharBuffer in To8BitData() in ANSI build too.

This allows one to write code compatible with both Unicode and ANSI
builds.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDon't assume size_t is either int- or long-sized.
Václav Slavík [Thu, 1 Jul 2010 14:30:29 +0000 (14:30 +0000)] 
Don't assume size_t is either int- or long-sized.

On 64bit Windows systems, sizeof(int)==sizeof(long)=4, but size_t is 8
bytes large.

Fixes #12179.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoallow USE_UNICODE=1 for wxMOTIF on OpenVMS
Jouk Jansen [Thu, 1 Jul 2010 12:03:36 +0000 (12:03 +0000)] 
allow USE_UNICODE=1 for wxMOTIF on OpenVMS

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdded missing wxTEXT_ATTR_PAGE_BREAK from wxTEXT_ATTR_PARAGRAPH
Julian Smart [Mon, 28 Jun 2010 21:21:22 +0000 (21:21 +0000)] 
Added missing wxTEXT_ATTR_PAGE_BREAK from wxTEXT_ATTR_PARAGRAPH

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agodelete docs after building
Chris Elliott [Mon, 28 Jun 2010 08:58:28 +0000 (08:58 +0000)] 
delete docs after building

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUpdate Makefile for OpenVMS
Jouk Jansen [Mon, 28 Jun 2010 08:41:57 +0000 (08:41 +0000)] 
Update Makefile for OpenVMS

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agofix error (more arguments for wxString::Format than specifiers) occurring because...
Francesco Montorsi [Sat, 26 Jun 2010 11:44:05 +0000 (11:44 +0000)] 
fix error (more arguments for wxString::Format than specifiers) occurring because of a misplaced bracket

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agofix couple of typos
Francesco Montorsi [Sat, 26 Jun 2010 11:43:13 +0000 (11:43 +0000)] 
fix couple of typos

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDocumentation change for new wxRTC function
Julian Smart [Sat, 26 Jun 2010 09:15:03 +0000 (09:15 +0000)] 
Documentation change for new wxRTC function

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDocument that wxRearrange* controls exist since 2.9.0.
Václav Slavík [Sat, 26 Jun 2010 08:01:14 +0000 (08:01 +0000)] 
Document that wxRearrange* controls exist since 2.9.0.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoMove build tools into the main part of the repository tree
Robin Dunn [Fri, 25 Jun 2010 20:53:39 +0000 (20:53 +0000)] 
Move build tools into the main part of the repository tree

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRemove svn:external property for build/tools as per wx-dev discussion
Robin Dunn [Fri, 25 Jun 2010 20:50:41 +0000 (20:50 +0000)] 
Remove svn:external property for build/tools as per wx-dev discussion

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdded PaintAboveContent function for drawing on top of text (#12176)
Julian Smart [Fri, 25 Jun 2010 14:05:07 +0000 (14:05 +0000)] 
Added PaintAboveContent function for drawing on top of text (#12176)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix posting of binary data using wxHTTP.
Vadim Zeitlin [Fri, 25 Jun 2010 09:42:21 +0000 (09:42 +0000)] 
Fix posting of binary data using wxHTTP.

Don't use mbc_str() which can fail to convert contents of the string created
using wxString::From8BitData(). Use To8BitData() instead.

This fixes posting of binary data via HTTP using binary content transfer
encoding.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agosynchronize setup.h_vms with setup.h.in
Jouk Jansen [Fri, 25 Jun 2010 08:47:42 +0000 (08:47 +0000)] 
synchronize setup.h_vms with setup.h.in

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRemove duplicate sample.xpm inclusion from stc sample.
Vadim Zeitlin [Fri, 25 Jun 2010 08:47:17 +0000 (08:47 +0000)] 
Remove duplicate sample.xpm inclusion from stc sample.

This sample already included sample.xpm even before the recent changes
replacing mondrian.xpm (which it also included) inclusion with sample.xpm so
now it included it twice.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoinvalidate border area when showing or hiding a pizza widget, fixes #12174
Paul Cornett [Fri, 25 Jun 2010 04:31:45 +0000 (04:31 +0000)] 
invalidate border area when showing or hiding a pizza widget, fixes #12174

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix another bad format string in the testsuite.
Václav Slavík [Thu, 24 Jun 2010 11:25:54 +0000 (11:25 +0000)] 
Fix another bad format string in the testsuite.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCompilation fix for compilers that don't have native wchar_t.
Václav Slavík [Thu, 24 Jun 2010 11:25:49 +0000 (11:25 +0000)] 
Compilation fix for compilers that don't have native wchar_t.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd tests for printf arguments validation code.
Václav Slavík [Thu, 24 Jun 2010 10:34:36 +0000 (10:34 +0000)] 
Add tests for printf arguments validation code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCheck if there aren't too many variadic arguments.
Václav Slavík [Thu, 24 Jun 2010 10:34:31 +0000 (10:34 +0000)] 
Check if there aren't too many variadic arguments.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64712 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFormat strings fixes in test suite.
Václav Slavík [Thu, 24 Jun 2010 10:34:23 +0000 (10:34 +0000)] 
Format strings fixes in test suite.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCheck wxPrintf etc. arguments types.
Václav Slavík [Thu, 24 Jun 2010 10:34:18 +0000 (10:34 +0000)] 
Check wxPrintf etc. arguments types.

Implements checks similar to gcc's compile-time checks: verify that the
arguments are of correct types. This works partially at compile time
(e.g. passing an object as argument fails to compile) and partially at
runtime (assert if the specifier doesn't match the type).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd correct wxArgNormalizer code for signed char.
Václav Slavík [Thu, 24 Jun 2010 10:34:11 +0000 (10:34 +0000)] 
Add correct wxArgNormalizer code for signed char.

Signed char is distict type (see 3.9.1 [basic.fundamental] part of the
standard), covering just char and unsigned char is not enough.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAlways NUL-terminate wxPrintfConvSpec::m_szFlags.
Václav Slavík [Thu, 24 Jun 2010 10:34:06 +0000 (10:34 +0000)] 
Always NUL-terminate wxPrintfConvSpec::m_szFlags.

The array was initialized and terminating NUL was only added in some
cases. In combination with strchr() calls, this would result it
incorrect calculations or even crashes.

Fixed by initializing the array to zeros. This is less error-prone than
fixing the few places where explicitly adding the terminating NUL was
missing.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCheck that wxSIZE_T_IS_* macros are always defined.
Václav Slavík [Thu, 24 Jun 2010 10:34:01 +0000 (10:34 +0000)] 
Check that wxSIZE_T_IS_* macros are always defined.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix thread ID formatting in log messages.
Václav Slavík [Thu, 24 Jun 2010 10:33:57 +0000 (10:33 +0000)] 
Fix thread ID formatting in log messages.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCorrected formatting of archiver command in the tests.
Václav Slavík [Thu, 24 Jun 2010 10:33:36 +0000 (10:33 +0000)] 
Corrected formatting of archiver command in the tests.

wxString::Format() was used even when the first argument didn't contain
any %s, yet a string argument was always passed to it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agopaint events cannot be constructed outside a native redraw in OSX
Stefan Csomor [Tue, 22 Jun 2010 13:48:17 +0000 (13:48 +0000)] 
paint events cannot be constructed outside a native redraw in OSX

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agopaint events cannot be constructed outside a native redraw in OSX
Stefan Csomor [Tue, 22 Jun 2010 12:46:20 +0000 (12:46 +0000)] 
paint events cannot be constructed outside a native redraw in OSX

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agotrying to get it building at least
Stefan Csomor [Tue, 22 Jun 2010 11:49:09 +0000 (11:49 +0000)] 
trying to get it building at least

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd an explicit t_str() to fix wxMSW compilation with wxUSE_STL=1.
Vadim Zeitlin [Tue, 22 Jun 2010 09:55:11 +0000 (09:55 +0000)] 
Add an explicit t_str() to fix wxMSW compilation with wxUSE_STL=1.

wxString is not implicitly convertible to TCHAR* in this case and we need to
use t_str() explicitly.

Closes #12169.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUndo/replace the workaround for Doxygen crash from r64630.
Vadim Zeitlin [Tue, 22 Jun 2010 09:50:40 +0000 (09:50 +0000)] 
Undo/replace the workaround for Doxygen crash from r64630.

According to

http://sourceforge.net/mailarchive/forum.php?thread_name=5040710F-9134-4C21-9B08-EA985136F53C%40gmail.com&forum_name=doxygen-users

simply adding an empty line after @since should be enough to fix the problem
and this does seem to work in practice so restore @since removed by r64630.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUpdate OpenVMS compile support
Jouk Jansen [Tue, 22 Jun 2010 08:08:11 +0000 (08:08 +0000)] 
Update OpenVMS compile support

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoblind buildbot fix
Francesco Montorsi [Mon, 21 Jun 2010 23:32:34 +0000 (23:32 +0000)] 
blind buildbot fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agosmall warning+PCH fixes
Francesco Montorsi [Mon, 21 Jun 2010 21:46:29 +0000 (21:46 +0000)] 
small warning+PCH fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agomove console sample's interactive tests to two different CppUnit testsuites: Interact...
Francesco Montorsi [Mon, 21 Jun 2010 21:03:47 +0000 (21:03 +0000)] 
move console sample's interactive tests to two different CppUnit testsuites: InteractiveInputTestCase which requires user input and InteractiveOutputTestCase which outputs stuff to be checked from the user.
Leave in the console sample only a barebone console application (i.e. a real example).

Closes #11960

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agobetter DirTestCase::DirExists test;
Francesco Montorsi [Mon, 21 Jun 2010 19:47:14 +0000 (19:47 +0000)] 
better DirTestCase::DirExists test;
fix test cases /usr//bin and /usr///bin: they succeed because wxDir::Exists does not care about redundant path separator (and this holds also for non-Unix platforms);
add some more test case

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agominor change: use a "positive" logic: use shouldSucceed instead of shouldFail and...
Francesco Montorsi [Mon, 21 Jun 2010 19:44:27 +0000 (19:44 +0000)] 
minor change: use a "positive" logic: use shouldSucceed instead of shouldFail and use more descriptive names for non-existing folders; add a few test cases

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoadding mimetype patch, closes #12072
Stefan Csomor [Mon, 21 Jun 2010 16:36:45 +0000 (16:36 +0000)] 
adding mimetype patch, closes #12072

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoadding HitTest to osx_cocoa implementation of listbox, refactoring code, fixes #11972
Stefan Csomor [Mon, 21 Jun 2010 15:30:07 +0000 (15:30 +0000)] 
adding HitTest to osx_cocoa implementation of listbox, refactoring code, fixes #11972

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agofixing year display, see #11444
Stefan Csomor [Mon, 21 Jun 2010 14:01:59 +0000 (14:01 +0000)] 
fixing year display, see #11444

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoadding bestsize for osx_cocoa combobox
Stefan Csomor [Mon, 21 Jun 2010 14:00:59 +0000 (14:00 +0000)] 
adding bestsize for osx_cocoa combobox

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCorrect the expected result of directory existence check.
Vadim Zeitlin [Mon, 21 Jun 2010 12:19:14 +0000 (12:19 +0000)] 
Correct the expected result of directory existence check.

As /.. is the same as /, a directory with any number of ".." in it will always
exist.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRemove references to joytest.rc that was recently removed.
Vadim Zeitlin [Mon, 21 Jun 2010 12:19:10 +0000 (12:19 +0000)] 
Remove references to joytest.rc that was recently removed.

Another fix to samples compilation after recent changes removing unneeded
icons and resource files.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoSuppress bogus g++ warnings about uninitialized variables.
Vadim Zeitlin [Mon, 21 Jun 2010 12:19:04 +0000 (12:19 +0000)] 
Suppress bogus g++ warnings about uninitialized variables.

The variables are always initialized but for some reason (at least the Apple
version of) g++ gives warnings for them.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoadding fix for non-precomp header build
Stefan Csomor [Mon, 21 Jun 2010 11:50:53 +0000 (11:50 +0000)] 
adding fix for non-precomp header build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agostoring current event for dnd support, adding default data-drag image, fixes #12065
Stefan Csomor [Mon, 21 Jun 2010 10:14:57 +0000 (10:14 +0000)] 
storing current event for dnd support, adding default data-drag image, fixes #12065

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agotext updated events were not always sent out correctly, fixes #11462
Stefan Csomor [Mon, 21 Jun 2010 07:50:12 +0000 (07:50 +0000)] 
text updated events were not always sent out correctly, fixes #11462

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRemove references to not existing any more griddemo.rc file.
Vadim Zeitlin [Sun, 20 Jun 2010 18:18:41 +0000 (18:18 +0000)] 
Remove references to not existing any more griddemo.rc file.

The file was removed in a recent commit but the bakefile was not updated.

Do it now and rebake the makefiles.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCorrect the name of the XPM file containing the icon in xrc sample.
Vadim Zeitlin [Sun, 20 Jun 2010 18:18:36 +0000 (18:18 +0000)] 
Correct the name of the XPM file containing the icon in xrc sample.

This fixes a compilation error introduced during de-mondrianization of the
samples.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoGracefully disconnect clients in wxDDEServer dtor.
Vadim Zeitlin [Sun, 20 Jun 2010 18:18:32 +0000 (18:18 +0000)] 
Gracefully disconnect clients in wxDDEServer dtor.

Remove the SetConnected(false) call which prevented the connection from
notifying the client about its destruction.

Closes #12164.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775