]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
14 years agoFixed property Hide command
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

14 years agoInitialize wxhInstance in console MSW applications too.
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

14 years agoUse wxGetInstance() instead of wxhInstance in wxMSW code.
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

14 years agoInclude wx/defs.h from all our public headers, including wx/imaglist.h.
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

14 years agoFix harmless g++ 4.3 warning about suggested parentheses.
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

14 years agoFix multiple bugs in non-ownerdrawn wxListBox after recent merge.
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

14 years agoDocument the use of --disable-gui for building wxBase.
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

14 years agoAlways use UTF-8 for GTK+ strings.
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

14 years agoCompilation fixes in wxHTML for wxUSE_CONFIG==0.
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

14 years agoDocument more wxDC drawing functions overloads.
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

14 years agoFixed typo in wxDataViewIconTextRenderer docs.
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

14 years agoproper app shutdown support for iphone
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

14 years agoSet up default property grid unspecified value colour
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

14 years agoWhen drawing wxPropertyGrid check box editor, be consistent with the other editors...
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

14 years agoRename property pending for deletion so it won't be in the way of the user code
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

14 years agoProperty removal and deletion done from wxPropertyGrid event handler is now postponed...
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

14 years agoCocoa text fields and views have their own context menus, so we should use those...
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

14 years agoSince wxDialog::Show(false) only calls wxWindow::Show, we must explicitly hide the...
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

14 years agoTypo fix.
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

14 years agoDisable sending of events by OS X Combobox during programmatic changes.
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

14 years agoFixed auto-resizing behavior when double-clicking a splitter; Added wxPropertyGrid...
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

14 years agoAdded wxPropertyGridInterface::GetColumnProportion()
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

14 years agoAdded missing words in event documentation
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

14 years agoDocument wxEVT_PG_CHANGED
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

14 years agoAdd user for buildbot notifications.
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

14 years agoApply new patch fixing problem of IsRunning always returning True. See #11699
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

14 years agoImplement case-insensitive find and read only support for Cocoa combobox.
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

14 years agoFix wxHtmlWindow to correctly decide whether to show scrollbars.
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

14 years agoAdded note about removed member function wxPropertyGrid::CanClose()
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

14 years agoAdded wxPropertyGridInterface::SetColumnProportion(); wxPG_SPLITTER_AUTO_CENTER windo...
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

14 years agoBasic support for tooltips under OS X Cocoa.
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

14 years agoFix compilation of wx/scopeguard.h with g++ -fno-exceptions.
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

14 years agoRemove wxHAS_NAMESPACES and gcc 2.95 checks.
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

14 years agoUkrainian translations update from Yuri Chornoivan.
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

14 years agoMake it possible to subclass wxMenuBar in XRC (patch #11679).
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

14 years agoFixed possible buffer overflow in wxXmlResource::GetXRCID() (patch #11715).
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

14 years agoRemoved most of the propgrid '#ifndef SWIG' pre-compiler conditions
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

14 years agoFixed wxGauge's best size to conform to Windows HIG.
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

14 years agoMove wxPosixPermissions definition from wx/file.h to wx/filefn.h.
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

14 years agosupport fullscreen display (translucent status) in all 4 orientations
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

14 years agoTest m_nowpeer pointer before using it.
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

14 years agoSet Id and EventObject for wxSetCursorEvent
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

14 years agoIgnore the time portion of the datetime object when setting the date.
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

14 years agoRemove functions duplicated in dnd_osx.cpp.
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

14 years agoAllow more than one timer with the same ID. Closes #11699.
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

14 years agoAdd support for showing "elevation" icon in wxMSW buttons.
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

14 years agoadding carbon event missing in 10.4 headers
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

14 years agoImplement EVT_MAXIMIZE support for OS X Cocoa.
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

14 years agoFix handling of the *.* extension case, before this fix it was being passed as a...
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

14 years agoGet wxSearchCtrl text events working, and share the text event handler code among...
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

14 years agoForgot about the drag source delegate, which is the perfect place to put GiveFeedback...
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

14 years agoAdd an accessor to get the current drop source from window.mm so that we can implemen...
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

14 years agoundefine not working FSWATCHER from OpenVMS compile setup
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

14 years agoExtract wxSTOCK_WITHOUT_ELLIPSIS from wxSTOCK_FOR_BUTTON.
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

14 years agoFix selection event sending for Ctrl-click in generic wxDataViewCtrl.
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

14 years agoMake wxDataObjectComposite::GetObject() public.
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

14 years agoTest wxTE_PROCESS_ENTER style in the widgets sample.
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

14 years agoCorrect the bounding box calculation in wxGTK wxDC::DrawBitmap().
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

14 years agoFix bug in wxMSW wxMessageDialog when the text was empty.
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

14 years agoCorrect bounding box calculation in wxGTK wxDC::DrawText().
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

14 years agoDon't select all if there is nothing to select.
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

14 years agoDon't delete previous character when pressing Del at end of buffer.
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

14 years agosafe degradation
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

14 years agoRebake after DND changes.
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

14 years agoRefactor DND code into Carbon and Cocoa parts, and provide a basic OS X Cocoa impleme...
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

14 years agoAdd sanity check on the item number.
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

14 years agoFixes for incorrect selection, extra newline insertion when undoing deletion of selec...
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

14 years agoDo not clear property selection when adding new properties, but instead correct posit...
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

14 years agoDon't crash if there's no top window.
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

14 years agoSimplify SetSelectionRange and make consistent with SetSelection.
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

14 years agoadapting to new API variant
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

14 years agonschars is never used for the wxEVT_CHAR case, so don't assign it a different value...
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

14 years agoUse the correct type to fix Tiger compilation.
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

14 years agoAdded nominal wxPG_PROP_READONLY support for editor controls other than wxTextCtrl...
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

14 years agoAdded command to set wxPG_PROP_READONLY in the propgrid sample
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

14 years agoFixed value column rendering for properties which do not create editor control when...
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

14 years agoavoiding catching incorrect shortcuts, see #11676
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

14 years agosupporting clipboard command shortcuts on osx_cocoa as well, simplifying code
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

14 years agoDisable wxUSE_FSWATCHER under Unix if neither inotify nor kqueue is available.
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

14 years agoFix for file length fixup.
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

14 years agostoring modal returncode correctly for carbon
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

14 years agomake sure modality is reflected correctly when rerouted from window-modal to app...
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

14 years agoDisable wxUSE_OWNER_DRAWN for wxUniv to fix the build.
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

14 years agoadding window-modal message box sample
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

14 years agosetting correct alertType
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

14 years agoGet ShowWindowModal behavior working under OS X Cocoa for file, dir and message dialogs.
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

14 years agoNever block in wxSocket::Peek().
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

14 years agowxPGProperty::GetHintText() function body was missing 'inline' keyword
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

14 years agoFixed wxPGGlobalVars export declaration
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

14 years agooptimizing creation of glcontexts, less flicker
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

14 years agoFixes for compilation on OpenVMS platforms
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

14 years agoAdd wxTreeCtrl::SelectChildren() method.
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

14 years agoTry to prevent users from forgetting to include wx.rc from their resources.
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

14 years agoDon't pass logs at unknown levels to wxLog::DoLogRecord() from wxLogGui.
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

14 years agoAnother compilation fix for wxMSW without PCH.
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

14 years agoImplement RequestUserAttention() for wxOSX/Cocoa.
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

14 years agoCompilation fixes for PCH-less build after ownerdraw-refactor branch merge.
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

14 years agoAvoid g++ warning about unhandled wxFONTFAMILY_XXX value in a switch.
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

14 years agoNo real changes, just don't initialize extern variable to avoid g++ warning.
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

14 years agoMake wxWindow::MSWGetThemeColour() const.
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