]>
git.saurik.com Git - wxWidgets.git/log
Vadim Zeitlin [Fri, 12 Feb 2010 22:47:25 +0000 (22:47 +0000)]
Fix compilation of wx/scopeguard.h with g++ -fno-exceptions.
Don't use try/catch in public headers if exceptions support is disabled with a
compiler switch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63474
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 12 Feb 2010 22:47:21 +0000 (22:47 +0000)]
Remove wxHAS_NAMESPACES and gcc 2.95 checks.
We use namespaces elsewhere without any checks now so it doesn't make sense to
keep checking for them here.
We also don't support g++ 2.95 since ages so no need to check for it neither.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63473
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 12 Feb 2010 11:22:43 +0000 (11:22 +0000)]
Ukrainian translations update from Yuri Chornoivan.
Also changed charset from KOI8-U to UTF-8for ease of maintenance.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63471
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 11 Feb 2010 12:48:29 +0000 (12:48 +0000)]
Make it possible to subclass wxMenuBar in XRC (patch #11679).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63467
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 11 Feb 2010 12:36:16 +0000 (12:36 +0000)]
Fixed possible buffer overflow in wxXmlResource::GetXRCID() (patch #11715).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63464
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Wed, 10 Feb 2010 16:45:39 +0000 (16:45 +0000)]
Removed most of the propgrid '#ifndef SWIG' pre-compiler conditions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63458
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Wed, 10 Feb 2010 13:31:58 +0000 (13:31 +0000)]
Fixed wxGauge's best size to conform to Windows HIG.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63457
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 10 Feb 2010 11:38:41 +0000 (11:38 +0000)]
Move wxPosixPermissions definition from wx/file.h to wx/filefn.h.
This fixes compilation with wxUSE_FILE=0 as wxFileName::Mkdir() still uses
these constants but their definitions were not available in this case.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63456
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 9 Feb 2010 09:35:22 +0000 (09:35 +0000)]
support fullscreen display (translucent status) in all 4 orientations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63437
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Tue, 9 Feb 2010 01:34:11 +0000 (01:34 +0000)]
Test m_nowpeer pointer before using it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63434
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Tue, 9 Feb 2010 01:33:44 +0000 (01:33 +0000)]
Set Id and EventObject for wxSetCursorEvent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63433
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Tue, 9 Feb 2010 01:32:21 +0000 (01:32 +0000)]
Ignore the time portion of the datetime object when setting the date.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63432
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Tue, 9 Feb 2010 01:24:22 +0000 (01:24 +0000)]
Remove functions duplicated in dnd_osx.cpp.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63431
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Mon, 8 Feb 2010 20:06:04 +0000 (20:06 +0000)]
Allow more than one timer with the same ID. Closes #11699.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63422
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 8 Feb 2010 19:52:00 +0000 (19:52 +0000)]
Add support for showing "elevation" icon in wxMSW buttons.
Add, document and test in the widgets sample wxButton::SetAuthNeeded().
Closes #11705.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63421
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 8 Feb 2010 07:20:39 +0000 (07:20 +0000)]
adding carbon event missing in 10.4 headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63419
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Sun, 7 Feb 2010 02:43:28 +0000 (02:43 +0000)]
Implement EVT_MAXIMIZE support for OS X Cocoa.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63417
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Sat, 6 Feb 2010 18:19:43 +0000 (18:19 +0000)]
Fix handling of the *.* extension case, before this fix it was being passed as a "*" filter to the Cocoa dialog which, not being a valid extension, meant that no files were selectable.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63416
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Sat, 6 Feb 2010 17:00:38 +0000 (17:00 +0000)]
Get wxSearchCtrl text events working, and share the text event handler code among all the various wxTextCtrl-based classes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63415
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Sat, 6 Feb 2010 16:42:44 +0000 (16:42 +0000)]
Forgot about the drag source delegate, which is the perfect place to put GiveFeedback related handling.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63414
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Sat, 6 Feb 2010 01:45:58 +0000 (01:45 +0000)]
Add an accessor to get the current drop source from window.mm so that we can implement GiveFeedback support, and also move a couple functions that check the current drop source into common DND OS X code as a result.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63412
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Thu, 4 Feb 2010 07:26:55 +0000 (07:26 +0000)]
undefine not working FSWATCHER from OpenVMS compile setup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63384
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 4 Feb 2010 01:33:32 +0000 (01:33 +0000)]
Extract wxSTOCK_WITHOUT_ELLIPSIS from wxSTOCK_FOR_BUTTON.
Make it possible to use this flag on its own, without wxSTOCK_WITH_MNEMONIC
which is also part of wxSTOCK_FOR_BUTTON. This can be useful for e.g. toolbar
buttons.
Closes #11681, #11682.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63383
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 4 Feb 2010 01:20:02 +0000 (01:20 +0000)]
Fix selection event sending for Ctrl-click in generic wxDataViewCtrl.
Ctrl-clicking on the only currently selected item in wxDataViewCtrl crashed
because we dereferenced first element of the empty m_selection array when
generating the selection change event.
Instead, send the event for the current item, this should be more consistent
with the native versions behaviour and at the very least doesn't crash.
Closes #11684.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63382
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 4 Feb 2010 01:02:43 +0000 (01:02 +0000)]
Make wxDataObjectComposite::GetObject() public.
Allow retrieving individual wxDataObjects from wxDataObjectComposite and add
an example showing how can this be done to the documentation.
Closes #11692.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63381
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 3 Feb 2010 21:07:46 +0000 (21:07 +0000)]
Test wxTE_PROCESS_ENTER style in the widgets sample.
Add a checkbox for toggling wxTE_PROCESS_ENTER to the text page and use this
style by default. This makes it easier to check that this style works as
intended, including that it generates the correct events.
See #11691.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63379
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 3 Feb 2010 21:07:42 +0000 (21:07 +0000)]
Correct the bounding box calculation in wxGTK wxDC::DrawBitmap().
Take into account the axis direction when calculating the bounding box.
This is consistent with not reversing the bitmap even when the axis are
reversed which is probably the expected behaviour.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63378
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 3 Feb 2010 21:07:38 +0000 (21:07 +0000)]
Fix bug in wxMSW wxMessageDialog when the text was empty.
Don't crash in ReplaceStaticWithEdit() dereferencing an invalid end()-1
iterator in this case, use the always valid rbegin() instead.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63377
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 3 Feb 2010 21:07:32 +0000 (21:07 +0000)]
Correct bounding box calculation in wxGTK wxDC::DrawText().
Physical coordinates were incorrectly used to update the bounding box instead
of the logical ones.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63376
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Wed, 3 Feb 2010 11:43:08 +0000 (11:43 +0000)]
Don't select all if there is nothing to select.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63374
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Wed, 3 Feb 2010 09:51:53 +0000 (09:51 +0000)]
Don't delete previous character when pressing Del at end of buffer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63372
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 3 Feb 2010 08:32:42 +0000 (08:32 +0000)]
safe degradation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63370
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Wed, 3 Feb 2010 06:08:31 +0000 (06:08 +0000)]
Rebake after DND changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63366
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Wed, 3 Feb 2010 05:31:31 +0000 (05:31 +0000)]
Refactor DND code into Carbon and Cocoa parts, and provide a basic OS X Cocoa implementation for wxDropSource::DoDragDrop.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63365
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Wed, 3 Feb 2010 05:22:13 +0000 (05:22 +0000)]
Add sanity check on the item number.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63364
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Tue, 2 Feb 2010 22:19:33 +0000 (22:19 +0000)]
Fixes for incorrect selection, extra newline insertion when undoing deletion of selection,
incorrect SetScrollbar optimization, insufficient refresh for operations on last line,
HasCharacter/ParagraphAttributes bug.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63357
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Tue, 2 Feb 2010 15:19:41 +0000 (15:19 +0000)]
Do not clear property selection when adding new properties, but instead correct positions of any open editor controls.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63356
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Tue, 2 Feb 2010 11:23:31 +0000 (11:23 +0000)]
Don't crash if there's no top window.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63355
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Mon, 1 Feb 2010 10:45:51 +0000 (10:45 +0000)]
Simplify SetSelectionRange and make consistent with SetSelection.
Fix a bug that returns true for character and paragraph style tests if no characters or paragraphs were found.
Fix SetSelection to position caret at end.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63344
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 1 Feb 2010 08:23:59 +0000 (08:23 +0000)]
adapting to new API variant
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63343
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Mon, 1 Feb 2010 01:20:15 +0000 (01:20 +0000)]
nschars is never used for the wxEVT_CHAR case, so don't assign it a different value for this case.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63340
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Mon, 1 Feb 2010 00:48:23 +0000 (00:48 +0000)]
Use the correct type to fix Tiger compilation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63339
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 31 Jan 2010 18:15:17 +0000 (18:15 +0000)]
Added nominal wxPG_PROP_READONLY support for editor controls other than wxTextCtrl-based ones
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63337
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 31 Jan 2010 18:14:24 +0000 (18:14 +0000)]
Added command to set wxPG_PROP_READONLY in the propgrid sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63336
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 31 Jan 2010 18:13:13 +0000 (18:13 +0000)]
Fixed value column rendering for properties which do not create editor control when selected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63335
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 31 Jan 2010 14:42:51 +0000 (14:42 +0000)]
avoiding catching incorrect shortcuts, see #11676
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63333
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 31 Jan 2010 11:01:53 +0000 (11:01 +0000)]
supporting clipboard command shortcuts on osx_cocoa as well, simplifying code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63332
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 29 Jan 2010 13:07:26 +0000 (13:07 +0000)]
Disable wxUSE_FSWATCHER under Unix if neither inotify nor kqueue is available.
Don't define wxUSE_FSWATCHER as 1 in configure if we can't implement it.
Also add a check to wx/unix/chkconf.h to verify that we didn't end up with an
inconsistent configuration somehow.
Closes #11670.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63306
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Michael Wetherell [Thu, 28 Jan 2010 21:46:18 +0000 (21:46 +0000)]
Fix for file length fixup.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63303
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 28 Jan 2010 13:49:16 +0000 (13:49 +0000)]
storing modal returncode correctly for carbon
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63299
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 28 Jan 2010 13:48:35 +0000 (13:48 +0000)]
make sure modality is reflected correctly when rerouted from window-modal to app-modal
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63298
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 28 Jan 2010 12:07:16 +0000 (12:07 +0000)]
Disable wxUSE_OWNER_DRAWN for wxUniv to fix the build.
wxMenuItem in wxUniv doesn't even use wxOwnerDrawn but linking in
ownerdrwcmn.cpp is enough to break the DLL build of wxUniv at least under MSW
as it references symbols normally defined in msw/ownerdrw.cpp which is not
part of wxUniv.
Fix this by simply disabling wxUSE_OWNER_DRAWN under wxUniv for now as it's
unused anyhow.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63296
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 28 Jan 2010 09:54:51 +0000 (09:54 +0000)]
adding window-modal message box sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63294
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 28 Jan 2010 08:28:52 +0000 (08:28 +0000)]
setting correct alertType
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63292
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Thu, 28 Jan 2010 04:06:23 +0000 (04:06 +0000)]
Get ShowWindowModal behavior working under OS X Cocoa for file, dir and message dialogs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63291
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 26 Jan 2010 23:04:26 +0000 (23:04 +0000)]
Never block in wxSocket::Peek().
Peek() is not expected to block so ensure that it doesn't, independently of
the currently used socket flags, by using wxSOCKET_NOWAIT.
See #11528.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63282
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Tue, 26 Jan 2010 21:09:41 +0000 (21:09 +0000)]
wxPGProperty::GetHintText() function body was missing 'inline' keyword
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63281
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Tue, 26 Jan 2010 17:44:51 +0000 (17:44 +0000)]
Fixed wxPGGlobalVars export declaration
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63280
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 26 Jan 2010 14:36:39 +0000 (14:36 +0000)]
optimizing creation of glcontexts, less flicker
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63279
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Tue, 26 Jan 2010 14:24:06 +0000 (14:24 +0000)]
Fixes for compilation on OpenVMS platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63278
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 26 Jan 2010 12:43:39 +0000 (12:43 +0000)]
Add wxTreeCtrl::SelectChildren() method.
Add MSW and generic implementation, documentation and change to the sample
showing it.
Closes #11620.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63277
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 26 Jan 2010 12:39:41 +0000 (12:39 +0000)]
Try to prevent users from forgetting to include wx.rc from their resources.
Document that some of the standard cursors are defined in this file.
Also add a (hopefully) helpful assert if loading one of such cursors failed.
Closes #11424.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63276
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 26 Jan 2010 12:33:34 +0000 (12:33 +0000)]
Don't pass logs at unknown levels to wxLog::DoLogRecord() from wxLogGui.
This results in an assert in DoLogText() which is not implemented in the base
class but ends up being called as DoLogTextAtLevel() doesn't know how to
handle non-standard log levels otherwise. This assert happened if you simply
called wxLogMessage(wxLOG_User, ...) in the program.
Just ignore messages at unknown log levels instead in wxLogGui, by definition
it can't handle them anyhow.
See also r63167.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63275
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 26 Jan 2010 12:33:01 +0000 (12:33 +0000)]
Another compilation fix for wxMSW without PCH.
Need to include <commctrl.h> as we use HIMAGELIST and related functions now.
See #11595.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63274
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 26 Jan 2010 12:16:44 +0000 (12:16 +0000)]
Implement RequestUserAttention() for wxOSX/Cocoa.
Simply use NSApplication:requestUserAttention to do it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63273
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 26 Jan 2010 09:01:13 +0000 (09:01 +0000)]
Compilation fixes for PCH-less build after ownerdraw-refactor branch merge.
Forward declare more classes, in particular use tagRECT which can be forward
declared, instead of RECT typedef in public headers.
Also include more header in #ifndef WX_PRECOMP case.
See #11595.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63272
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 26 Jan 2010 09:01:08 +0000 (09:01 +0000)]
Avoid g++ warning about unhandled wxFONTFAMILY_XXX value in a switch.
Add wxFONTFAMILY_UNKNOWN case to the switch as it will allow us to be warned
if we add a new family in the future and forget to update this code to take it
into account.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63271
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 26 Jan 2010 09:01:02 +0000 (09:01 +0000)]
No real changes, just don't initialize extern variable to avoid g++ warning.
g++ warns about initialized extern variables so separate the declaration from
the initialization to avoid this warning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63270
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 26 Jan 2010 09:00:55 +0000 (09:00 +0000)]
Make wxWindow::MSWGetThemeColour() const.
There doesn't seem to be any reason for this method to not be const.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63269
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 26 Jan 2010 09:00:48 +0000 (09:00 +0000)]
Compilation fix for wxUniv.
We need explicit casts to wxWindow in wxWindowMSW code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63268
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 25 Jan 2010 22:27:42 +0000 (22:27 +0000)]
simplifying code, removing outdated API
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63266
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 25 Jan 2010 22:24:49 +0000 (22:24 +0000)]
adding note for correct wheel params
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63265
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Mon, 25 Jan 2010 18:48:21 +0000 (18:48 +0000)]
Added EVT_WIZARD_PAGE_SHOWN event for wxWizard, to give apps
a chance to initiate processing after a page is presented.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63263
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 25 Jan 2010 17:12:53 +0000 (17:12 +0000)]
better wheel support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63261
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 25 Jan 2010 17:12:07 +0000 (17:12 +0000)]
make sure we can override GetModality
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63260
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 25 Jan 2010 13:27:59 +0000 (13:27 +0000)]
adding wxWindow::Show in order to make the sheet showing its children as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63259
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 25 Jan 2010 13:26:36 +0000 (13:26 +0000)]
fixing building on iphone
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63258
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Mon, 25 Jan 2010 11:32:19 +0000 (11:32 +0000)]
Update compile support for OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63257
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Sun, 24 Jan 2010 23:28:32 +0000 (23:28 +0000)]
Fix mistake, though this assert is unfortunate since now FindString("whatever") will always assert under OS X Cocoa, even when it would find and return the position correctly.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63254
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 24 Jan 2010 19:09:20 +0000 (19:09 +0000)]
supporting auto-rotate for translucent statusbar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63253
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Jan 2010 14:15:12 +0000 (14:15 +0000)]
Compilation fix after ownerdraw-refactor branch merge.
Don't use HDC in public headers, it may not be declared there. Use WXHDC
instead even if this means having ugly casts.
This fixed mingw32 compilation (see #11595).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63252
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sun, 24 Jan 2010 11:51:09 +0000 (11:51 +0000)]
Fixed dialog units <-> pixels conversion.
The computation is now identical to Windows native one. To achieve this,
MSDN-recommended GetTextExtent() call is used instead of GetCharWidth().
wxMulDivInt32() is used instead of integer arithmetics to achieve
correct rounding.
Use toplevel parent's font instead of window's own. This makes more
sense, as dialog units are defined for TLWs, not individual subcontrols.
Also fixed wxMSW's wxButton::GetDefaultSize() to compute dialog units
correctly.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63251
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sun, 24 Jan 2010 11:51:00 +0000 (11:51 +0000)]
Determine wxButton size correctly in wxMSW.
Instead of using default size for default GUI font, use the default font
for this dialog's current font.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63250
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Jan 2010 11:33:24 +0000 (11:33 +0000)]
Fix bug in wxStringOutputStream unit test.
We wrote an extra NUL byte to the stream and, unsurprisingly, contents of its
buffer didn't match the original string resulting in the test failure.
Also get rid of a #if wxUSE_UNICODE.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63249
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Jan 2010 11:33:17 +0000 (11:33 +0000)]
Override IsSeekable() in wxString{Input,Output}Stream to return true.
These streams are seekable but somehow IsSeekable() was never overridden for
them resulting in test failures in Input_SeekI().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63248
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Jan 2010 11:33:11 +0000 (11:33 +0000)]
Document that wxComboBox::Dismiss() and Popup() generate events.
Currently these functions generate events in both of the existing
implementations (GTK and MSW) so it is simpler to let them to continue to do
it but this must at least be documented as this is probably unexpected by
users.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63247
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Jan 2010 10:13:45 +0000 (10:13 +0000)]
Correct UTF-32BE BOM detection in wxConvAuto.
On the fly detection of the BOM was wrongly implemented for UTF-32BE in
r63064 and returned BOM_None for it if we tried to read exactly 2 bytes.
Fix this by returning BOM_Unknown if the first 2 bytes are NUL.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63246
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Jan 2010 10:13:40 +0000 (10:13 +0000)]
Correct bug with returning 0 for non-empty input from wxConvAuto::ToWChar().
Since the changes of r63064 we could return 0 when asked to convert a
non-empty buffer containing only a BOM. This confused the logic in
wxTextInputStream::NextChar() and was generally unexpected so now return
wxCONV_FAILED in this case.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63245
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Jan 2010 10:13:33 +0000 (10:13 +0000)]
Check the result of ToWChar() call in wxTextInputStream::NextChar() better.
The logic in this function depends on ToWChar() working correctly so check
that it doesn't return obviously wrong results, e.g. 0 output length for
non-empty input. This was mostly done to detect the problem in wxConvAuto
currently but it could also be useful with user-defined conversions and
shouldn't have a big performance effect on wxTextInputStream so leave these
checks in to facilitate debugging in the future.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63244
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Jan 2010 09:13:40 +0000 (09:13 +0000)]
Replace wxLogWarning()s in wxOSX wxComboBox code with asserts.
This incidentally fixes compilation when not using PCH as wx/log.h was not
included but is also more correct as the messages meant for the programmer,
and not the user, should be given using asserts and not wxLog.
Also correct some asserts messages. In particular, don't mention the function
name in the message itself as it's already shown by the assert and using it in
the string itself isn't useful and simply introduces the risk of forgetting to
update it after refactoring, as happened here in r63105.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63243
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Jan 2010 01:00:45 +0000 (01:00 +0000)]
Add wxComboBox::Popup() and Dismiss() to manually show or hide its popup.
Add implementations for wxMSW and wxGTK.
Closes #11506.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63242
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Jan 2010 01:00:33 +0000 (01:00 +0000)]
No changes, just remove the strange "#if 1".
This was apparently unintentionally added in r15050 to all files of the
widgets sample and somehow survived in this one only until now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63241
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Jan 2010 01:00:27 +0000 (01:00 +0000)]
Fix sending of wxEVT_COMMAND_LIST_COL_DRAGGING events in wxMSW wxListCtrl.
We were not getting HDN_TRACK from the system because apparently it is not
sent for header controls with HDS_FULLDRAG style which is used by default by
the native list control. A possible solution would be to forcefully unset this
style but this would make the UI look old fashioned and less intuitive so
instead send these DRAGGING events from HDN_ITEMCHANGING.
Closes #9471,
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63240
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Jan 2010 01:00:20 +0000 (01:00 +0000)]
Move wx/evtloop.h from GUI_CMN_HDR to BASE_CMN_HDR in files.bkl.
And rebake.
Now that wxEventLoop can be used in wxBase as well, we need this file to be
installed as part of wxBase too.
Closes #11617.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63239
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Jan 2010 01:00:03 +0000 (01:00 +0000)]
Fix wxHTTPStream::Eof() to return true for empty HTTP resources.
Eof() never returned true when attempting to read an empty resource before.
Closes #11596.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63238
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Jan 2010 00:59:56 +0000 (00:59 +0000)]
Use a helper wxNEEDS_DECL_BEFORE_TEMPLATE symbol in wxStrcoll() workaround.
The condition for which this workaround is needed has already changed once
(see #11605) and may change again in the future as we test with more compilers
so use a symbolic name for it.
No real changes otherwise.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63237
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Jan 2010 00:59:49 +0000 (00:59 +0000)]
Apply workaround for wxStrcoll() template for g++ to 3.4 too.
At least mingw32 version of g++ 3.4.5 needs the same workaround to be able to
compile wx.
Closes #11605.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63236
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Sat, 23 Jan 2010 22:45:24 +0000 (22:45 +0000)]
Fix for generic implementation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63235
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Sat, 23 Jan 2010 21:17:19 +0000 (21:17 +0000)]
Fix for non-Mac builds.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63234
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Sat, 23 Jan 2010 20:10:17 +0000 (20:10 +0000)]
Remove assert that was used during testing while changing style flags.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63233
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775