Vadim Zeitlin [Sat, 12 Sep 2009 11:29:49 +0000 (11:29 +0000)]
Remove WX_DEBUG option from Unix wx presets, it's not needed any more.
It doesn't make sense to select debug or release build of wxWidgets any more
as they are now compatible under Unix. Under Windows the option is still
needed but it selects the build using debug (or not) version of the CRT rather
than the one built with __WXDEBUG__ defined.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61891
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 12 Sep 2009 11:29:42 +0000 (11:29 +0000)]
Add wxDEBUG_LEVEL to wx/setup.h and document it.
Under Unix wxDEBUG_LEVEL can be set using configure --enable-debug=max option
but under Windows it needs to be changed in wx/msw/setup.h so add it to this
file with a comment explaining its meaning.
Also document this symbol with the other preprocessor constants.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61890
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 12 Sep 2009 11:29:31 +0000 (11:29 +0000)]
Change Unix build system to not use debug build any more.
Remove "d" suffix from the libraries and the BUILD variable which is not used
any longer.
Also ignore (but still support, for compatibility) --debug option in wx-config.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61889
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 12 Sep 2009 11:29:23 +0000 (11:29 +0000)]
Use wxDEBUG_LEVEL instead of __WXDEBUG__ in wxInfoMessageBox().
Also disable sizer-drawing code unless wxDEBUG_LEVEL>=2 as we don't want it to
be available in production versions.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61888
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 12 Sep 2009 11:29:11 +0000 (11:29 +0000)]
Use "d" suffix according to DEBUG_RUNTIME_LIBS, not DEBUG_FLAG.
The "d" suffix is now only used under Windows and indicates that we link with
debug CRT version.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61887
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 12 Sep 2009 11:28:52 +0000 (11:28 +0000)]
Define wxDEBUG_LEVEL in both debug and release builds as 1.
By default include assertions and debug logging in both debug and release
builds but disable them in application release builds (when NDEBUG is
defined).
Also update (more accurately, replace) debugging overview.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61886
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 12 Sep 2009 10:59:43 +0000 (10:59 +0000)]
Restore correct setting of the background colour.
The background colour for the HDC used for drawing the native controls wasn't
set correctly any more after changes of r61859 but we do need to call it or
the text in edit and similar controls is drawn using the default background
even if we return the correct brush which is used for erasing the control.
Closes #11190.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61885
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 12 Sep 2009 10:42:04 +0000 (10:42 +0000)]
Document ctors creating a wxString from repeated characters.
Closes #11187.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61884
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 12 Sep 2009 10:41:55 +0000 (10:41 +0000)]
Document wxStandardPaths vendor-related changes.
The change in the values returned by wxStandardPaths functions is important as
it's incompatible with 2.8 if the application defines a vendor name so must be
mentioned in docs/changes.txt.
Also update the documentation of the class itself and mention UseAppInfo() in
the overview.
Closes #11189.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61883
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Fri, 11 Sep 2009 21:01:45 +0000 (21:01 +0000)]
adding Kevin's fix for wxTOOL_STYLE_SEPARATOR
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61882
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Fri, 11 Sep 2009 16:41:31 +0000 (16:41 +0000)]
Fixed constants of the new wxPG_EX styles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61881
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Fri, 11 Sep 2009 11:49:03 +0000 (11:49 +0000)]
wxPropertyGrid: added wxPG_NO_INTERNAL_BORDER, wxPG_EX_NO_TOOLBAR_DIVIDER
and wxPG_EX_TOOLBAR_SEPARATOR styles for finer control over borders.
Borders around property grid are now native for consistency.
Some strange VC6 compiler errors fixed, plus size assertion in
sample.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61880
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Fri, 11 Sep 2009 11:42:05 +0000 (11:42 +0000)]
Documented a couple of combo control fixes on Mac.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61879
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Fri, 11 Sep 2009 09:30:51 +0000 (09:30 +0000)]
Fixed a bug on Mac whereby popup window disappeared as soon as the button was clicked (text control getting focus)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61878
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Fri, 11 Sep 2009 08:55:59 +0000 (08:55 +0000)]
Fix on Mac to prevent scrollbars always being shown
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61877
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Thu, 10 Sep 2009 14:15:32 +0000 (14:15 +0000)]
Notify if the grid is being destroyed in an event generated by it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61875
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 10 Sep 2009 12:49:06 +0000 (12:49 +0000)]
Mention wxOSX/Cocoa in the old wxCocoa docs.
The old wxCocoa port isn't what most people are looking for so point them to
wxOSX/Cocoa if they look under docs/cocoa.
Closes #11182.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61874
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Wed, 9 Sep 2009 17:26:46 +0000 (17:26 +0000)]
Adapted wxPGComboBox margins setup to changes in wxComboCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61868
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Wed, 9 Sep 2009 16:41:23 +0000 (16:41 +0000)]
Various improvements to wxComboCtrl's text ctrl left margin setup: less #defines, better margin when SetCustomPaintWidth() has been called, fixed SetFont() behavior on wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61867
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Tue, 8 Sep 2009 14:03:30 +0000 (14:03 +0000)]
Fixed a warning generated by GCC 4.4.0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61862
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Tue, 8 Sep 2009 13:57:38 +0000 (13:57 +0000)]
Use real id for wxPGCanvas
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61861
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 8 Sep 2009 12:23:28 +0000 (12:23 +0000)]
Set correct foreground default in wxControl::DoMSWControlColor().
Instead of hard-coding GetSysColor(COLOR_WINDOWTEXT), use
GetForegroundColour() which will call GetDefaultAttributes() to retrieve the
default foreground appropriate for this control.
This also allows to make the code simpler by calling SetTextColor() only once.
See #1691.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61860
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 8 Sep 2009 12:23:17 +0000 (12:23 +0000)]
Don't always override the default background colours.
The wxColour argument taken by wxControl::DoMSWControlColor() allows to
override the default colour, it shouldn't be used in MSWControlColor() as this
resulted in always using custom colours for the controls, even when the user
hadn't changed them. Fix this by not passing any valid colour to it in this
case and allowing it to deduce the correct colour to use on its own.
See #1691.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61859
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 8 Sep 2009 12:23:06 +0000 (12:23 +0000)]
Use correct visual attributes for wxSpinCtrl.
The default colours for this control are wxTextCtrl-like and not wxButton-like
(which is the default). Override GetDefaultAttributes() to indicate this and
to avoid returning a wrong background from wxControl::DoMSWControlColor() when
just a foreground is set.
See #1691.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61858
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 8 Sep 2009 11:21:45 +0000 (11:21 +0000)]
Fix wxLog compilation with wxUSE_THREADS==0.
Define WX_DEFINE_GLOBAL_VAR macro when wxUSE_THREADS==0 too, it is used for
components level hash map in any case.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61857
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 7 Sep 2009 23:00:29 +0000 (23:00 +0000)]
Always use 32bpp image lists.
Using 32bpp image lists (ILC_COLOR32) is required as we need to be able to put
32bpp bitmaps in them and results in better (albeit still broken, see #9050)
display when the display depth is < 32.
This change was tested under Windows 2000, 2003 and Vista in 8 (Win2k-only),
16 and 32bpp display depth modes.
Closes #11031.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61853
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 7 Sep 2009 23:00:21 +0000 (23:00 +0000)]
Show the order in which different event handlers are called.
Update the event sample to define (as) many (as possible) event handlers for a
test button and log messages in all of the handlers to leave a trace of the
order in which they were executed.
Add a pointer to this feature of the event sample to the events overview.
Closes #11156.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61852
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 7 Sep 2009 23:00:05 +0000 (23:00 +0000)]
Fix bug with parsing concatenated switches in wxCmdLineParser.
The constructs such as "-abcd" were not parsed correctly, i.e. the same as "-a
-b -c -d" because the code tried to parse a non-existent option "abcd" even if
it was supposed to not do this -- fix this.
Closes #11180.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61851
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Mon, 7 Sep 2009 13:50:04 +0000 (13:50 +0000)]
removed superfluous ;
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61850
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Mon, 7 Sep 2009 12:14:21 +0000 (12:14 +0000)]
fixed typo : wxDEPRECTED -> wxDEPRECATED
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61849
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 6 Sep 2009 14:31:25 +0000 (14:31 +0000)]
Recognize the buddy text control as part of wxSpinCtrl.
This allows the code in wxWindowMSW::HandleCtlColor() to find the correct
control when handling the messages from the buddy control and hence setting
the colours for wxSpinCtrl works after this change.
Closes #1691.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61845
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 6 Sep 2009 14:31:17 +0000 (14:31 +0000)]
Compilation fix after wxTextEntry::SetMargins() changes.
We need to include wx/gdicmn.h to define wxPoint which is now used in
wx/textentry.h, it is not necessarily already included and in fact compilation
was broken in PCH-less build.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61844
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 6 Sep 2009 14:31:10 +0000 (14:31 +0000)]
Use SYSTEMTIME instead of DOS time when converting to/from VARIANTS.
SYSTEMTIME has a much larger range than DOS time and a much better precision
(1ms instead of 2s) as well.
Closes #11177.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61843
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 6 Sep 2009 14:31:01 +0000 (14:31 +0000)]
Take time into account in wxDateTime <-> SYSTEMTIME conversion.
wxDateTime::SetFromMSWSysTime() and GetAsMSWSysTime() worked with the date
part of SYSTEMTIME only, do use time part as well now.
Closes #11176.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61842
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 6 Sep 2009 08:35:05 +0000 (08:35 +0000)]
Do not allow multiple selection when dragging in the 'value' column
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61840
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 6 Sep 2009 07:53:53 +0000 (07:53 +0000)]
Fixed property iterator crash when iterating through 'non-interesting' properties at the edges of the grid.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61839
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 6 Sep 2009 07:51:35 +0000 (07:51 +0000)]
Added check to allow multiple selection by dragging only if property under mouse was adjacent to a property already in the selection.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61838
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 5 Sep 2009 14:24:58 +0000 (14:24 +0000)]
Perform Apple SDK tests for Mac ports only.
Fix after changes of r61832: SDK checks should be done for Mac ports only as
they are useless under the other systems and break configure because sw_vers
is Mac-only and unsurprisingly using it results in errors under the other
systems:
/usr/local/src/wx/HEAD/configure: line 18215: sw_vers: command not found
checking if C compiler works with SDK/version options... configure: error: no.
Try a different SDK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61837
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sat, 5 Sep 2009 13:23:03 +0000 (13:23 +0000)]
Fixed GtkBorder allocation (hopefully)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61836
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sat, 5 Sep 2009 12:39:12 +0000 (12:39 +0000)]
wxTextEntry::SetMargins(), GetMargins() - implemented on wxMSW and wxGTK (GTK+ 2.10+); also added similar functions into wxComboCtrl, deprecated old indent-functions; wxPropertyGrid modified to use the new functionality
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61834
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 5 Sep 2009 12:29:32 +0000 (12:29 +0000)]
Clarify the separator native look remark.
Closes #11174.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61833
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Sat, 5 Sep 2009 00:12:39 +0000 (00:12 +0000)]
If gcc-4.2+ is specified for compiling OS X Carbon or 10.4 compatilbility is specified, switch to gcc-4.0 to avoid configuration conflicts. Also, do not default to 10.4 compatibility when building OS X Cocoa so that we can get 64-bit builds on Snow Leopard by default.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61832
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 4 Sep 2009 16:21:05 +0000 (16:21 +0000)]
Enable debug information in release builds for msvc makefiles too.
Debug information was enabled for release builds for MSVC project files but
not the makefiles which was inconsistent, correct this.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61829
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 4 Sep 2009 16:20:57 +0000 (16:20 +0000)]
Implement wxSTAY_ON_TOP for wxMessageDialog in wxGTK.
Call gtk_window_set_keep_above() to force the message dialog to be above the
other windows (some WMs do this by default anyhow but not all).
Closes #11163.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61828
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 4 Sep 2009 16:20:49 +0000 (16:20 +0000)]
Document wxFileName::SetPath().
Closes #11162.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61827
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 4 Sep 2009 00:27:51 +0000 (00:27 +0000)]
Fix regression with logging messages during wxApp initialization.
Changes in r61450 broke logging of the messages for errors occurring during
wxApp initialization, such as the message about the failure to establish
connection to the X server. Instead of being shown on stderr, wxLogGui was
used resulting in a crash. Creating wxLogOutputBest in wxLog code before
wxTheApp creation was not enough as this error occurred after wxTheApp
creation -- but before it became usable.
Fix this by explicitly asking wxLog to instantiate a safe log target in
DoCommonPreInit() if the user hadn't set up his own yet and using it until the
GUI is fully initialized.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61825
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 3 Sep 2009 11:38:31 +0000 (11:38 +0000)]
Tweak the default wxApp::GetAppDisplayName() logic.
Don't capitalize the app name if it had been explicitly set with SetAppName()
as this can result in unexpectedly wrong value. Do capitalize the program name
which is used as app name by default and don't store the program name in
m_appName to be able to distinguish between the two cases.
Closes #11165.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61821
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 3 Sep 2009 00:24:21 +0000 (00:24 +0000)]
React to errors on socket correctly when using epoll().
Even though the socket is not registered for wxFDIO_EXCEPTION events,
wxEpollDispatcher will currently generate them anyhow so we shouldn't assert
if wxSocketImplUnix::OnExceptionWaiting() is called.
Instead, notify the socket about the connection loss if this happens.
Closes #11085.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61813
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 3 Sep 2009 00:24:14 +0000 (00:24 +0000)]
Clarify the priority rules for static and dynamic handlers.
See #11156.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61812
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Tue, 1 Sep 2009 14:44:39 +0000 (14:44 +0000)]
Normalize property label editor margins on wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61804
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Tue, 1 Sep 2009 14:11:01 +0000 (14:11 +0000)]
Only respect property's wxPG_PROP_READONLY flag for the 'value' column
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61803
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Tue, 1 Sep 2009 13:54:41 +0000 (13:54 +0000)]
Added 'bool editable' argument to wxPropertyGrid::MakeColumnEditable()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61802
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Tue, 1 Sep 2009 13:20:21 +0000 (13:20 +0000)]
Removed some old code that generated warnings on some compilers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61799
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Tue, 1 Sep 2009 13:13:58 +0000 (13:13 +0000)]
Fixed a severe crash bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61798
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 31 Aug 2009 21:28:25 +0000 (21:28 +0000)]
Correctly determine best wxPropertyGrid width.
Improve wxPropertyGrid::DoGetBestSize() to correctly determine the window
width by using the sum of columns widths.
Also correct wxPropertyGridPageState::GetColumnFitWidth() to account for the
bitmaps.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61796
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 31 Aug 2009 00:05:29 +0000 (00:05 +0000)]
Avoid spurious uninitialized variable warning.
Last change introduced a new warning in optimized g++ build, fix it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61793
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Aug 2009 21:43:11 +0000 (21:43 +0000)]
Correct wxImage::Size() again; add unit tests for it.
wxImage::Size() didn't handle the paste position correctly.
Closes #7874.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61792
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Aug 2009 21:11:37 +0000 (21:11 +0000)]
Add support for bilinear resize algorithm to wxImage.
Add wxIMAGE_QUALITY_BILINEAR in addition to the existing wxIMAGE_QUALITY_BICUBIC,
it is supposed to be much faster yet yield almost the same results.
Closes #11034.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61791
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Aug 2009 20:42:46 +0000 (20:42 +0000)]
Use correct font instead of DEFAULT_GUI_FONT.
DEFAULT_GUI_FONT is a misnomer, not only is it not a default (and never was)
but it shouldn't be used at all. Instead use lfMessageFont from the
NONCLIENTMETRICS structure as it seems to correspond to the font used by
the native controls under 2000, XP and Vista and respects Vista global DPI
setting unlike DEFAULT_GUI_FONT.
Closes #11008.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61790
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Aug 2009 17:25:42 +0000 (17:25 +0000)]
Fix buffer overflow in wxURLDataObject.
The code in CFSTR_SHELLURLDataObject::GetDataHere() was confused by
ANSI/Unicode and ended up overwriting output buffer because of it. Moreover,
this function was actually completely unnecessary as the base class version
did work correctly.
Closes #11102 (thanks to Tim Kosse).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61788
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Aug 2009 17:25:28 +0000 (17:25 +0000)]
Fix off by one errors in wxURLDataObject.
wxTextDataObject::SetData() adds the terminating NUL automatically so there is
no need to add it to the length when calling it from wxURLDataObject::SetURL().
This change is necessary to fix the unit test in the upcoming fix for #11102.
See #11102.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61787
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Aug 2009 17:25:19 +0000 (17:25 +0000)]
Output the extracted number from wxString::ToXXX() even if it returns false.
After the changes in r50710 wxString numeric conversion functions didn't
update their output parameter any more if the conversion failed because not
entire string was converted. This was incompatible with the old behaviour
which some existing code did rely on, so restore it and now always return the
number which was extracted from the beginning of the string if we found
anything at all, even if the function returns false.
Add unit test for the correct behaviour and updated the documentation.
Closes #11126.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61786
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Aug 2009 17:25:02 +0000 (17:25 +0000)]
Use GetBestSize() rather than DoGetBestSize().
Call GetBestSize() from wxWindowMSW::DoSetSize() so that it works correctly
for the classes which only override DoGetBestClientSize() and not
DoGetBestSize() itself, such as wxStaticText.
Closes #11096.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61785
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Aug 2009 17:24:53 +0000 (17:24 +0000)]
Fix selection events generation in multi-select wxTreeCtrl.
Only deselect the items when the mouse is released if really necessary: add a
flag indicating when it is instead of trying to deduce it in the mouse up
handler.
Closes #11099 (thanks to Jonathan Liu).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61784
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Aug 2009 17:24:45 +0000 (17:24 +0000)]
Don't generate duplicated events for clicks on tree +/- buttons.
In multiple selection mode we process mouse events manually in wxTreeCtrl
itself and already take care of mouse clicks on the buttons there so don't
pass them on to the base class which would generate another event.
Closes #11098 (thanks to Jonathan Liu).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61783
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sat, 29 Aug 2009 08:09:45 +0000 (08:09 +0000)]
Disabled top-level parent tracking by default (crashes with AUI), must now use wxPG_EX_ENABLE_TLP_TRACKING style to enable old behavior.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61779
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 28 Aug 2009 10:44:25 +0000 (10:44 +0000)]
Compilation fix for wxUSE_PROTOCOL && !wxUSE_URL.
IMPLEMENT_CLASS(wxProtoInfo) wasn't compiled in in this build configuration
because it was in url.cpp instead of protocol.cpp and so was guarded by
wxUSE_URL and not wxUSE_PROTOCOL as it should have been.
Closes #11151.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61774
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 28 Aug 2009 10:44:12 +0000 (10:44 +0000)]
Compilation fixes for wxUSE_FONTMAP==0.
Closes #11150.
Closes #11152.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61773
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 28 Aug 2009 10:43:51 +0000 (10:43 +0000)]
No real changes, just slightly simplify code.
No need to check whether the pointer is NULL before deleting it nor to assign
NULL to it if it's going to be immediately reassigned on the next line.
Closes #11149.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61772
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Thu, 27 Aug 2009 07:08:12 +0000 (07:08 +0000)]
small fix to last commit, only disable updating decor size if necessary
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61770
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Thu, 27 Aug 2009 05:11:01 +0000 (05:11 +0000)]
avoid deferred show with Fluxbox, its support for _NET_REQUEST_FRAME_EXTENTS is broken
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61769
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Michael Wetherell [Wed, 26 Aug 2009 23:12:36 +0000 (23:12 +0000)]
Split 32-bit GTK builds between the the two linux machines, read to add more builds.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61768
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 26 Aug 2009 22:17:57 +0000 (22:17 +0000)]
Fix wxDocManager::GetLastDirectory() when there is no history.
The most recently opened file should be used only if we have MRU list.
Closes #11145.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61766
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 26 Aug 2009 20:44:09 +0000 (20:44 +0000)]
Use correct array size for weekday names.
DAYS_PER_400_YEARS was erroneously used instead of DAYS_PER_WEEK which
resulted in creation of much larger object file than needed as the array is
initialized.
Closes #11143.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61765
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 26 Aug 2009 20:44:01 +0000 (20:44 +0000)]
Use #pragma message and not #pragma warning for MSVC.
This fixes MSVC compilation with wxUSE_APPLE_IEEE==0.
Closes #11141.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61764
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 26 Aug 2009 20:43:53 +0000 (20:43 +0000)]
Compilation fix for wxUSE_INTL==0 in wxMSW MDI code.
Using wxGetTranslation().wx_str() doesn't work when wxUSE_INTL==0.
Closes #11142.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61763
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Mon, 24 Aug 2009 22:49:27 +0000 (22:49 +0000)]
Restore pattern creation, and do sanity checks before destroying the pattern or the surface. Closes #11140.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61760
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 24 Aug 2009 21:42:27 +0000 (21:42 +0000)]
Don't append text following CDATA section to its node itself.
Reset wxXmlParsingContext::lastAsText flag when CDATA section ends to avoid
appending the text following it to its node. Instead new text nodes should be
created for it.
Also update the unit test to not work around the bug any more.
Closes #10552.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61759
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 24 Aug 2009 21:42:21 +0000 (21:42 +0000)]
No changes, just fix unused variables and parameters warnings.
Fix warnings in wxGTK wxUSE_GRAPHICS_CONTEXT==1 build.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61758
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 24 Aug 2009 21:42:11 +0000 (21:42 +0000)]
Add A0 and A1 formats to wxPaperSize enumeration.
Closes #11083.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61757
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Mon, 24 Aug 2009 07:31:37 +0000 (07:31 +0000)]
Update OpenVMS compile support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61756
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 23 Aug 2009 22:48:35 +0000 (22:48 +0000)]
Allow entering minus sign in wxMSW wxSpinCtrl if needed.
Only restrict input to wxMSW wxSpinCtrl to digits only if it doesn't support
negative values, otherwise the user can't enter any negative numbers. As there
is no built in support for entering digits and minus sign only, simply allow
all characters to be used if the negative numbers must indeed be possible to
enter.
Closes #11082.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61754
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 23 Aug 2009 22:25:12 +0000 (22:25 +0000)]
Never overflow the output buffer in wxBase64Decode().
Don't write extra NUL bytes obtained by decoding the padding at the end of
input into the output buffer as there may be not enough place in it for them.
And in any case the buffer is not (always) NUL-terminated as no NUL bytes are
obtained in absence of padding, so it's better to never terminate it for
consistency.
Closes #11101.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61753
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 23 Aug 2009 22:25:00 +0000 (22:25 +0000)]
Correct the order of coordinates in CGPoint initializer.
The order was reversed.
Closes #11020.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61752
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 23 Aug 2009 22:24:54 +0000 (22:24 +0000)]
Show the current range of valid dates in the calendar sample.
See #11081 (point C).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61751
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 23 Aug 2009 22:24:48 +0000 (22:24 +0000)]
Added wxGridSize::GetEffective{Cols,Rows}Count().
These functions return the number of columns or rows being currently used and
not 0, unlike the existing Get{Cols,Rows}(), if the corresponding number is
determined dynamically.
Closes #10254.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61750
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 23 Aug 2009 21:39:42 +0000 (21:39 +0000)]
No changes, just clarify a comment for WXK_XXX values.
Part of patch in #10268.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61749
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 23 Aug 2009 21:39:32 +0000 (21:39 +0000)]
Make WXK_NUMPAD_TAB member of WXK_CATEGORY_TAB.
See #10268.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61748
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 23 Aug 2009 21:31:14 +0000 (21:31 +0000)]
Extract event handlers chain documentation in a separate section.
The explanation of event handlers chaining was too big and distracted from the
main point of the event processing section which was to explain in which order
different handlers are looked up.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61746
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 23 Aug 2009 18:38:13 +0000 (18:38 +0000)]
Made wxPropertyGridHitTestResult a real class (works better that way with SWIG)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61745
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 23 Aug 2009 15:34:25 +0000 (15:34 +0000)]
Removed obsolete conditional compile option wxPG_CREATE_CONTROLS_HIDDEN
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61744
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 23 Aug 2009 15:31:03 +0000 (15:31 +0000)]
Added label editing capability into wxPropertyGrid
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61743
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 23 Aug 2009 00:32:17 +0000 (00:32 +0000)]
Added wxKeyEvent::IsKeyInCategory() method.
This allows to test whether a given key belongs to the category of e.g. arrow
keys or navigation keys in a more concise and more readable manner.
Closes #10268.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61736
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 22 Aug 2009 13:59:14 +0000 (13:59 +0000)]
Document wxGraphicsPath::AddArc() better.
The angles passed to it are measured clockwise from the horizontal axis,
contrary to the usual mathematical convention so take care to mention this in
the documentation.
Closes #11112.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61732
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 21 Aug 2009 18:46:39 +0000 (18:46 +0000)]
Only use wxLocale functions if wxUSE_INTL == 1.
Don't use locale-dependent formats in wxDateTime::ParseFormat() when locale
support is disabled.
Closes #11121.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61731
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 21 Aug 2009 18:46:32 +0000 (18:46 +0000)]
Fix typo in wxNewEventFunctor() comment.
Closes #11117.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61730
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Fri, 21 Aug 2009 18:22:28 +0000 (18:22 +0000)]
supporting earlier xcode version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61729
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 21 Aug 2009 15:25:09 +0000 (15:25 +0000)]
Do wait for connection in the server socket.
The code returned immediately from wxSocketBase::DoWait() if it wasn't
connected but it only made sense for the client sockets, not server ones which
could be calling this function precisely in order to wait until a connection
is made.
Also added a test for this bug in the sockets/server sample.
Closes #11107.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61726
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 21 Aug 2009 10:54:53 +0000 (10:54 +0000)]
Allow creating initially hidden controls in wxOSX/Cocoa.
If wxWindow is hidden before being really created, we must create the native
control hidden too. Not only this allows to create the controls initially
hidden, as intended, but it also avoids the wx and native visibility flags
from getting out of sync which results in many other problems.
Closes #11131.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61725
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 21 Aug 2009 10:41:26 +0000 (10:41 +0000)]
No changes, just removed hard tabs and trailing white space.
This commit is huge but there are no non-white-space changes in it.
Some files containing third-party sources (src/msw/wince/time.cpp,
src/x11/pango*.cpp) were left unchanged.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61724
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775