wxWidgets.git
14 years agoDon't reuse the same event object for multiple events in wxGTK.
Vadim Zeitlin [Sun, 18 Jul 2010 11:53:04 +0000 (11:53 +0000)] 
Don't reuse the same event object for multiple events in wxGTK.

The old code simply called SetEventType() to change the type of the event and
called HandleWindowEvent() again with it. This was incorrect as the event was
modified after being processed the first time, notably its WasProcessed() flag
was set and so wxApp::FilterEvent() wasn't called when it was being processed
the second time. In practice this meant that FilterEvent() was never called
for wxEVT_CHAR events -- for which it's nevertheless very useful to have as it
allows to implement application-wide keyboard processing.

Also refactor the code to avoid duplication, exactly the same event sending
code was used in gtk_window_key_press_callback() and gtk_wxwindow_commit_cb().
Extract it now in a private SendCharHookAndCharEvents() function.

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

14 years agoDon't run printf("%n") tests when _FORTIFY_SOURCE >= 2.
Vadim Zeitlin [Sun, 18 Jul 2010 11:52:58 +0000 (11:52 +0000)] 
Don't run printf("%n") tests when _FORTIFY_SOURCE >= 2.

This prevents the test from aborting on Linux distributions which ship with
"fortified" version of gcc, such as recent Ubuntu, Fedora and Gentoo.

Closes #12240.

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

14 years agoorganizing code, adding offset correction for update region when non native control...
Stefan Csomor [Sun, 18 Jul 2010 06:16:26 +0000 (06:16 +0000)] 
organizing code, adding offset correction for update region when non native control borders are used, fixes #12229

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

14 years agoAdd a script for finding all files using native eol style in svn.
Vadim Zeitlin [Sat, 17 Jul 2010 16:18:48 +0000 (16:18 +0000)] 
Add a script for finding all files using native eol style in svn.

This is a companion script for build/tools/git-make-release but can also be
useful independently.

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

14 years agoAdd scripts to make releases from a git-svn repository.
Vadim Zeitlin [Sat, 17 Jul 2010 16:17:37 +0000 (16:17 +0000)] 
Add scripts to make releases from a git-svn repository.

This can't replace the official release script yet as not everybody uses git
but they are much more convenient to use than the old ones for me and also
faster so I'm adding them to svn in case they can be useful to others.

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

14 years agoReally set svn:eol-style property.
Vadim Zeitlin [Sat, 17 Jul 2010 14:55:45 +0000 (14:55 +0000)] 
Really set svn:eol-style property.

The last commit used incorrect property name, remove the erroneous property
and set the correct svn:eol-style one.

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

14 years agoSet EOL style property to "native" for more files.
Vadim Zeitlin [Sat, 17 Jul 2010 13:46:04 +0000 (13:46 +0000)] 
Set EOL style property to "native" for more files.

Some files were using CR LF even in Unix checkouts unnecessarily, fix this.

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

14 years agoDon't redefine wxNO_EXCEPTIONS in wx/except.h if it's already defined.
Vadim Zeitlin [Sat, 17 Jul 2010 11:55:10 +0000 (11:55 +0000)] 
Don't redefine wxNO_EXCEPTIONS in wx/except.h if it's already defined.

This symbol can be defined on compiler command line already, don't redefine it
in this case to avoid a warning.

Closes #12235.

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

14 years agoDocument methods indicating what kind of client data is associated with an item conta...
Robert Roebling [Sat, 17 Jul 2010 08:40:05 +0000 (08:40 +0000)] 
Document methods indicating what kind of client data is associated with an item container (HasClientData() etc.)

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

14 years agoremoving early init, fixes #12231
Stefan Csomor [Sat, 17 Jul 2010 06:08:13 +0000 (06:08 +0000)] 
removing early init, fixes #12231

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

14 years agoDon't pass NULL to wxDir, rather hop over when trying to find dir with translation
Robert Roebling [Fri, 16 Jul 2010 10:31:38 +0000 (10:31 +0000)] 
Don't pass NULL to wxDir, rather hop over when trying to find dir with translation

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

14 years agoRemove dllexport declaration from a nested struct.
Vadim Zeitlin [Wed, 14 Jul 2010 23:06:20 +0000 (23:06 +0000)] 
Remove dllexport declaration from a nested struct.

Try a blind fix for VC6 linking problems in DLL build related to
wxFileTypeInfo ctor. This is unlikely to fix it but DLL-exporting a nested
struct which, moreover, has only inline methods, seems unnecessary and it just
might help too.

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

14 years agoDon't compile platform-specific methods when using wxUniversal.
Vadim Zeitlin [Wed, 14 Jul 2010 22:43:19 +0000 (22:43 +0000)] 
Don't compile platform-specific methods when using wxUniversal.

Various wxTextEntry::GetEditXXX() methods shouldn't be used in wxUniv build.

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

14 years agoDon't use wxRendererNative::DrawFocusRect() under Mac.
Vadim Zeitlin [Wed, 14 Jul 2010 14:52:28 +0000 (14:52 +0000)] 
Don't use wxRendererNative::DrawFocusRect() under Mac.

This function doesn't do the right thing there, it draws the focus border as
it's drawn around controls such as buttons. This border overflows the item
rectangle and results in garbage remaining on screen when selection changes.

See #12229.

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

14 years agoUse correct format specifiers in wxOSX/Carbon font caching code.
Vadim Zeitlin [Wed, 14 Jul 2010 14:52:23 +0000 (14:52 +0000)] 
Use correct format specifiers in wxOSX/Carbon font caching code.

The specifiers used didn't match the actual argument types resulting in the
asserts from the new wxPrintf() code. Correct them to match the real types.

Closes #12186.

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

14 years agoSuppress warnings about double to int truncation in wxHTML code.
Vadim Zeitlin [Wed, 14 Jul 2010 11:20:36 +0000 (11:20 +0000)] 
Suppress warnings about double to int truncation in wxHTML code.

Actually it's not totally clear if truncation or rounding was intended here
but when in doubt preserve the old code semantics.

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

14 years agoGenerate key events in generic wxDataViewCtrl implementation.
Vadim Zeitlin [Wed, 14 Jul 2010 11:12:03 +0000 (11:12 +0000)] 
Generate key events in generic wxDataViewCtrl implementation.

Forward wxEVT_CHAR events from wxDataViewMainWindow to the parent window so
that they could be processed at wxDataViewCtrl level.

Call DisableKeyboardScrolling() to ensure that cursor movement keys are not
always eaten by the parent window but can be used for the navigation in the
control if they're not processed by user.

Add a test keyboard handler to the dataview sample to check that handling keys
in wxDataViewCtrl does work.

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

14 years agoNo changes, just use better names in wxDataViewCtrl sample.
Vadim Zeitlin [Wed, 14 Jul 2010 11:11:58 +0000 (11:11 +0000)] 
No changes, just use better names in wxDataViewCtrl sample.

ID_DELETE_MUSIC button deleted selected items so use ID_DELETE_SEL and
OnDeleteSelected() handler for it instead.

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

14 years agowxArrayStringProperty::m_delimiter default value was missing. Also cleaned up relevan...
Jaakko Salli [Tue, 13 Jul 2010 15:54:45 +0000 (15:54 +0000)] 
wxArrayStringProperty::m_delimiter default value was missing. Also cleaned up relevant string formatting.

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

14 years agoReally fix interactive output test compilation in ANSI build.
Vadim Zeitlin [Tue, 13 Jul 2010 14:13:12 +0000 (14:13 +0000)] 
Really fix interactive output test compilation in ANSI build.

Use a temporary wxString to make sure the code compiles in both ANSI and STL
versions too.

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

14 years agoCompilation fix for wxUSE_FONTENUM==0 case.
Vadim Zeitlin [Tue, 13 Jul 2010 14:13:07 +0000 (14:13 +0000)] 
Compilation fix for wxUSE_FONTENUM==0 case.

Fix another error in minimal wxGTK buildbot build.

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

14 years agoFix file paths in the header comments.
Vadim Zeitlin [Tue, 13 Jul 2010 13:29:58 +0000 (13:29 +0000)] 
Fix file paths in the header comments.

Consistently use only "wx/foo.h" instead of "include/wx/foo.h" ("include" is
always implicit anyhow).

Also use "src/osx" instead of "src/mac" for the files in this directory.

See #12165.

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

14 years agoFix a few minor typos in comments.
Vadim Zeitlin [Tue, 13 Jul 2010 13:29:44 +0000 (13:29 +0000)] 
Fix a few minor typos in comments.

See #12165.

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

14 years agoGlobally rename all occurrences of "XCode" to "Xcode".
Vadim Zeitlin [Tue, 13 Jul 2010 13:29:38 +0000 (13:29 +0000)] 
Globally rename all occurrences of "XCode" to "Xcode".

The official spelling of the Apple IDE doesn't capitalize "C" so neither
should we.

See #12165.

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

14 years agoGlobally use "wxWindows licence" consistently.
Vadim Zeitlin [Tue, 13 Jul 2010 13:29:13 +0000 (13:29 +0000)] 
Globally use "wxWindows licence" consistently.

Use "wxWindows licence" and not "wxWidgets licence" (the latter doesn't
exist) and consistently spell "licence" using British spelling.

See #12165.

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

14 years agoRemove hard TABs from 3rd party files in src directory.
Vadim Zeitlin [Tue, 13 Jul 2010 13:27:19 +0000 (13:27 +0000)] 
Remove hard TABs from 3rd party files in src directory.

This is necessary to be able to commit upcoming changes to them.

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

14 years agoSend right and double click events in wxGrid when using native header.
Vadim Zeitlin [Tue, 13 Jul 2010 12:38:00 +0000 (12:38 +0000)] 
Send right and double click events in wxGrid when using native header.

Previously only simple left click event was sent in this case, now also
generate right and double click ones.

Closes #12156.

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

14 years agoFix wxMotif compilation with g++ 4.4.
Vadim Zeitlin [Tue, 13 Jul 2010 11:33:09 +0000 (11:33 +0000)] 
Fix wxMotif compilation with g++ 4.4.

wxMenu::CreateMenu() parameter called "index" was mistakenly wrapped in
WXUNUSED() making it invisible inside the function body and the (BSD string
function) index() was used instead. This somehow compiled before but not with
g++ 4.4. In any case, the code was wrong even when it did compile.

Remove WXUNUSED() from the parameter and also rename it to avoid clashes with
(semi-)standard function which can also be defined as macro on some systems.

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

14 years agoRevert the wxDataObjectComposite checks added by r58549.
Vadim Zeitlin [Tue, 13 Jul 2010 11:33:03 +0000 (11:33 +0000)] 
Revert the wxDataObjectComposite checks added by r58549.

The checks for data format duplication in wxDataObjectComposite::Add() added
by this revision were broken and didn't actually check anything. It also
doesn't seem clear why do we need them at all so simply remove them. See #10437
for more details.

This also closes #12113 as a side effect because the messages are not present
any more.

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

14 years agoRomanian translations update from Catalin.
Vadim Zeitlin [Tue, 13 Jul 2010 11:32:57 +0000 (11:32 +0000)] 
Romanian translations update from Catalin.

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

14 years agoOnly compile wxStd{Input,Output}Stream if wxUSE_STREAMS==1.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:51 +0000 (22:50 +0000)] 
Only compile wxStd{Input,Output}Stream if wxUSE_STREAMS==1.

This fixes compilation of minimal wxWidgets build.

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

14 years agoCompilation fix for wxAnyTestCase in ANSI-only build.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:47 +0000 (22:50 +0000)] 
Compilation fix for wxAnyTestCase in ANSI-only build.

Comparison of wxAny with wide strings is not available in this case.

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

14 years agoCompilation fix for "interactive" test in wxUSE_STL=1 build.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:41 +0000 (22:50 +0000)] 
Compilation fix for "interactive" test in wxUSE_STL=1 build.

wxString is not convertible (even explicitly) to char* in this case.

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

14 years agoBlind VC6 compilation fix for VarArgTestCase.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:37 +0000 (22:50 +0000)] 
Blind VC6 compilation fix for VarArgTestCase.

VC6 tries to use inaccessible copy ctor of the variable passed to
wxString::Format() for some reason.

Just disable the test for it, it's not worth trying to understand this
compiler, and our code gets tested with other ones anyhow.

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

14 years agoDisable test of format string with "%n" for MSVC 8+.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:32 +0000 (22:50 +0000)] 
Disable test of format string with "%n" for MSVC 8+.

MSVC 8 and later disables support for "%n" in printf() by default. And
although it provides a function to re-enable support for it, it doesn't seem
to work for the functions we use.

Just disable the test which results in CRT assert when using this compiler.

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

14 years agoDon't use dangling pointers in wxWindowMSW::HandleMenuChar().
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:28 +0000 (22:50 +0000)] 
Don't use dangling pointers in wxWindowMSW::HandleMenuChar().

We used a pointer into the result of wx_str() for a temporary string which was
clearly wrong. Store the string we're manipulating to ensure that this doesn't
happen.

This in particular fixes keyboard navigation in the menus with owner-drawn
items.

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

14 years agoRemove scroll units duplication in wxGrid to fix setting them.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:23 +0000 (22:50 +0000)] 
Remove scroll units duplication in wxGrid to fix setting them.

For some unknown reason wxGrid decided to store its scroll units in its own
m_scrollLine[XY] variables instead of just using the base wxScrollWindow class
m_[xy]ScrollPixelsPerLine ones. And, of course, the two could get out of sync
because wxGrid didn't update the base class version correctly.

Just don't duplicate these values at all and use the base class fields. This
makes the code simpler and also fixes changing the size of the scroll units.

Closes #12221.

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

14 years agoMake Home and End keys work as expected in wxGrid.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:18 +0000 (22:50 +0000)] 
Make Home and End keys work as expected in wxGrid.

Go to the first/last cell of the current row when they're pressed instead of
starting the editor.

Closes #12222.

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

14 years agoFix text updated event generation in wxGTK wxComboBox.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:14 +0000 (22:50 +0000)] 
Fix text updated event generation in wxGTK wxComboBox.

The changes (cosmetic renaming, no less) in r64436 broke unit tests checking
for wxComboBox event generation because the extra text updated events were not
suppressed correctly any longer because wrong {Enable,Disable}Events() were
called instead of the correct GTK{Enable,Disable}Events().

Fix and slightly improve the code by disabling the events in overridden
EnableTextChangedEvents() itself and reuse its code from GTK-specific event
enabling functions.

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

14 years agoFix wxToggleButtonXmlHandler compilation with wxUniv.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:09 +0000 (22:50 +0000)] 
Fix wxToggleButtonXmlHandler compilation with wxUniv.

Remove nonsensical code involving operator ?: with wxString and wxBitmap
operands. No idea what was the intention behind it but it failed to even
compile in wxX11 build so the new version (which does compile) can't be worse.

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

14 years agoRemove 2.9.0 build slaves, they're not needed any more.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:05 +0000 (22:50 +0000)] 
Remove 2.9.0 build slaves, they're not needed any more.

We should restore them the next time we create a release branch but for now
these builds are not needed and just clutter the build bot UI.

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

14 years agoReplace remaining references to 2.9.0 with 2.9.1.
Vadim Zeitlin [Mon, 12 Jul 2010 22:49:59 +0000 (22:49 +0000)] 
Replace remaining references to 2.9.0 with 2.9.1.

Also update the tech note listing the places that need to be changed when a
new version is released and the script which updates them automatically.

Finally update a couple of copyright years.

Closes #12185.

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

14 years agoFix non-PCH builds (closes #12217)
Jaakko Salli [Sun, 11 Jul 2010 20:00:44 +0000 (20:00 +0000)] 
Fix non-PCH builds (closes #12217)

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

14 years agoAdded 'Delimiter' attribute for wxArrayStringProperty. Moved static ArrayStringToStri...
Jaakko Salli [Sun, 11 Jul 2010 17:04:23 +0000 (17:04 +0000)] 
Added 'Delimiter' attribute for wxArrayStringProperty. Moved static ArrayStringToString() to wxArrayStringProperty.

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

14 years agoHave the new incarnation of wxPGArrayEditorDialog support the old-style 'custom butto...
Jaakko Salli [Sun, 11 Jul 2010 16:06:03 +0000 (16:06 +0000)] 
Have the new incarnation of wxPGArrayEditorDialog support the old-style 'custom button' event as something that happens when the wxEditableListBox's 'New Item' button is pressed

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

14 years agoNo real changes, just fix unused parameter warning.
Vadim Zeitlin [Sun, 11 Jul 2010 10:44:27 +0000 (10:44 +0000)] 
No real changes, just fix unused parameter warning.

Wrap dc parameter of wxRichTextCtrl::PaintAboveContent() in a WXUNUSED().

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

14 years agoOptionally set the window name in wxPersistentRegisterAndRestore().
Vadim Zeitlin [Sun, 11 Jul 2010 10:44:23 +0000 (10:44 +0000)] 
Optionally set the window name in wxPersistentRegisterAndRestore().

In practice names are not often used so typically whenever you want to make a
window settings persistent you also need to set its name and the it's
convenient to let a single function do both tasks, so add an overload taking
the name string (this is a separate function instead of optional parameter to
avoid compilation errors if this is ever used with non-wxWindow-derived
objects which don't have SetName() method).

Also expand the documentation slightly and add @since tags.

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

14 years agoSet the string to search for in wxSearchCtrl events.
Vadim Zeitlin [Sun, 11 Jul 2010 10:44:18 +0000 (10:44 +0000)] 
Set the string to search for in wxSearchCtrl events.

It's more convenient to have the string to search for directly in the event
object than to retrieve it from wxSearchCtrl itself as it had to be done
before.

Closes #4665.

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

14 years agoDon't use uninitialized variables in wxGrid::AutoSize().
Vadim Zeitlin [Sun, 11 Jul 2010 10:44:12 +0000 (10:44 +0000)] 
Don't use uninitialized variables in wxGrid::AutoSize().

The code in wxGrid::AutoSizeColOrRow() was using uninitialized col/row
variable if the grid had no rows/columns, resulting in assertion failures when
trying to automatically size the columns of an empty grid.

Do initialize them now and also remove duplicate assignments to the variables
which never change inside the loop.

Closes #12206.

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

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