]>
git.saurik.com Git - wxWidgets.git/log
Jaakko Salli [Fri, 26 Feb 2010 15:45:30 +0000 (15:45 +0000)]
Must clear property selection in wxPGProperty::SetChoices() or risk a crash
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63562
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 26 Feb 2010 14:10:02 +0000 (14:10 +0000)]
Fix assert when using year or decade view in Windows 7 calendar control.
Windows 7 native calendar control is capable of showing more than 3 months
simultaneously in its year or decade view which is shown when the user zooms
out of the month view by double clicking the control header. This resulted in
an assert failure in the code, update it to simply not do anything in this
view.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63561
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 26 Feb 2010 14:09:58 +0000 (14:09 +0000)]
Fix assert on wxCalendarCtrl creation under Windows 7.
Unlike previous versions of Windows, 7 includes the time component in the
return value of MonthCal_GetCurSel() and because of it the comparison with
m_date (which doesn't have any time part) fails.
Fix this by comparing just the date parts of the two wxDateTime objects.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63560
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 26 Feb 2010 14:09:43 +0000 (14:09 +0000)]
Add pretty-printers for wxPoint, wxSize and wxRect.
Also replace an if checking for the supported types with an array-based
approach to make it easier to add pretty printers for more types in the
future.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63559
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Thu, 25 Feb 2010 15:05:09 +0000 (15:05 +0000)]
Added work around in wxPropertyGrid for a wxTextCtrl beep on enter press
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63557
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Thu, 25 Feb 2010 14:04:25 +0000 (14:04 +0000)]
Fixed property Hide command
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63556
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 25 Feb 2010 00:04:03 +0000 (00:04 +0000)]
Initialize wxhInstance in console MSW applications too.
Console applications still may need to create windows and for this a valid
HINSTANCE is needed. So set it ourselves during wx initialization.
Closes #11727.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63555
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 25 Feb 2010 00:03:59 +0000 (00:03 +0000)]
Use wxGetInstance() instead of wxhInstance in wxMSW code.
No real changes, just use an accessor function instead of directly accessing
the global variable.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63554
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 25 Feb 2010 00:03:53 +0000 (00:03 +0000)]
Include wx/defs.h from all our public headers, including wx/imaglist.h.
Without including wx/defs.h first, symbols such as __WXMSW__ are not defined
if this header is the first wxWidgets header to be included.
Closes #11718.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63553
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 25 Feb 2010 00:03:48 +0000 (00:03 +0000)]
Fix harmless g++ 4.3 warning about suggested parentheses.
Closes #11719.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63552
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 25 Feb 2010 00:03:44 +0000 (00:03 +0000)]
Fix multiple bugs in non-ownerdrawn wxListBox after recent merge.
Changes done in ownerdraw-refactor branch have broken non-ownerdrawn list
boxes as the code was now using m_aItems array even for them but it's not used
in this case.
Also remove unnecessarily overridden Delete() method which didn't add anything
to the base class implementation but just deleted the same m_aItems pointer
twice.
Also use HasFlag(wxLB_OWNERDRAW) everywhere consistently instead of testing
for it manually.
Closes #11729.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63551
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 25 Feb 2010 00:03:39 +0000 (00:03 +0000)]
Document the use of --disable-gui for building wxBase.
We don't have a special configure version for wxBase where GUI is off by
default and it doesn't seem to be worth the trouble to create one. Instead
just tell people to use --disable-gui themselves.
Closes #11733.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63550
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 25 Feb 2010 00:03:35 +0000 (00:03 +0000)]
Always use UTF-8 for GTK+ strings.
Strings returned and accepted by GTK+ functions always use UTF-8 independently
of the current locale and of the file name encoding we use. So use UTF-8
instead of wxConvFileName everywhere where we deal with GTK+ directly.
Closes #11743.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63549
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 25 Feb 2010 00:03:30 +0000 (00:03 +0000)]
Compilation fixes in wxHTML for wxUSE_CONFIG==0.
Surround uses of wxConfig with #of wxUSE_CONFIG in wxHTML code.
Closes #11750.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63548
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 25 Feb 2010 00:03:22 +0000 (00:03 +0000)]
Document more wxDC drawing functions overloads.
Document overloads taking wxPoint/wxSize/wxRect in addition to the versions
taking individual wxCoords.
Closes #11752.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63547
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Bryan Petty [Wed, 24 Feb 2010 22:09:52 +0000 (22:09 +0000)]
Fixed typo in wxDataViewIconTextRenderer docs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63546
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 23 Feb 2010 17:32:01 +0000 (17:32 +0000)]
proper app shutdown support for iphone
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63542
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Tue, 23 Feb 2010 15:29:10 +0000 (15:29 +0000)]
Set up default property grid unspecified value colour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63540
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Tue, 23 Feb 2010 15:24:50 +0000 (15:24 +0000)]
When drawing wxPropertyGrid check box editor, be consistent with the other editors and use dc.GetTextForeground() for obtaining check box colour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63539
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Mon, 22 Feb 2010 17:04:18 +0000 (17:04 +0000)]
Rename property pending for deletion so it won't be in the way of the user code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63535
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Mon, 22 Feb 2010 16:44:56 +0000 (16:44 +0000)]
Property removal and deletion done from wxPropertyGrid event handler is now postponed to idle event
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63534
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Mon, 22 Feb 2010 01:56:42 +0000 (01:56 +0000)]
Cocoa text fields and views have their own context menus, so we should use those instead.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63533
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Fri, 19 Feb 2010 07:01:33 +0000 (07:01 +0000)]
Since wxDialog::Show(false) only calls wxWindow::Show, we must explicitly hide the dialog ourselves.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63522
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Fri, 19 Feb 2010 07:00:49 +0000 (07:00 +0000)]
Typo fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63521
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Fri, 19 Feb 2010 03:00:07 +0000 (03:00 +0000)]
Disable sending of events by OS X Combobox during programmatic changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63519
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Tue, 16 Feb 2010 16:24:30 +0000 (16:24 +0000)]
Fixed auto-resizing behavior when double-clicking a splitter; Added wxPropertyGrid::ResetColumnSizes(); wxPropertyGrid::GetSplitterPosition() got splitterIndex argument
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63502
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Tue, 16 Feb 2010 15:38:12 +0000 (15:38 +0000)]
Added wxPropertyGridInterface::GetColumnProportion()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63501
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Tue, 16 Feb 2010 14:15:59 +0000 (14:15 +0000)]
Added missing words in event documentation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63499
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Tue, 16 Feb 2010 14:12:23 +0000 (14:12 +0000)]
Document wxEVT_PG_CHANGED
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63498
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Michael Wetherell [Tue, 16 Feb 2010 09:44:08 +0000 (09:44 +0000)]
Add user for buildbot notifications.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63497
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Mon, 15 Feb 2010 17:34:21 +0000 (17:34 +0000)]
Apply new patch fixing problem of IsRunning always returning True. See #11699
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63486
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Mon, 15 Feb 2010 04:23:49 +0000 (04:23 +0000)]
Implement case-insensitive find and read only support for Cocoa combobox.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63484
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sun, 14 Feb 2010 15:27:42 +0000 (15:27 +0000)]
Fix wxHtmlWindow to correctly decide whether to show scrollbars.
wxHtmlWindow::CreateLayout()'s algorithm was both naive (not properly
accounting for scrollbar visibility changes during layout) and broken
(incorrectly rounding when computing scroll steps and adding
GetCharHeight() value to the height in an attempt to mitigate the
harm).
This algorithm should properly for scrollbars in all situations.
Rounding is done in such way that the content is fully viewable, while
at the same time not showing scrollbars needlessly.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63483
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 14 Feb 2010 14:37:56 +0000 (14:37 +0000)]
Added note about removed member function wxPropertyGrid::CanClose()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63482
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 14 Feb 2010 14:09:06 +0000 (14:09 +0000)]
Added wxPropertyGridInterface::SetColumnProportion(); wxPG_SPLITTER_AUTO_CENTER window style now supports column counts higher than two.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63481
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Sat, 13 Feb 2010 06:30:06 +0000 (06:30 +0000)]
Basic support for tooltips under OS X Cocoa.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63477
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
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