Commit Graph

50404 Commits

Author SHA1 Message Date
Vadim Zeitlin
f2d7fdf7b0 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
2010-02-08 19:52:00 +00:00
Stefan Csomor
126254a8d0 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
2010-02-08 07:20:39 +00:00
Kevin Ollivier
1232607d6d 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
2010-02-07 02:43:28 +00:00
Kevin Ollivier
05c218ee24 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
2010-02-06 18:19:43 +00:00
Kevin Ollivier
75a2c6a1ee 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
2010-02-06 17:00:38 +00:00
Kevin Ollivier
f9022ad209 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
2010-02-06 16:42:44 +00:00
Kevin Ollivier
808cbd174a 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
2010-02-06 01:45:58 +00:00
Jouk Jansen
1111fe434b 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
2010-02-04 07:26:55 +00:00
Vadim Zeitlin
95ad763a77 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
2010-02-04 01:33:32 +00:00
Vadim Zeitlin
9439bc6955 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
2010-02-04 01:20:02 +00:00
Vadim Zeitlin
1d4b9c37cb 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
2010-02-04 01:02:43 +00:00
Vadim Zeitlin
2d1e63c0a5 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
2010-02-03 21:07:46 +00:00
Vadim Zeitlin
15b8500726 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
2010-02-03 21:07:42 +00:00
Vadim Zeitlin
d3019e4d0a 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
2010-02-03 21:07:38 +00:00
Vadim Zeitlin
2dcf60dab4 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
2010-02-03 21:07:32 +00:00
Julian Smart
b30661fdd0 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
2010-02-03 11:43:08 +00:00
Julian Smart
fc6d9d0d45 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
2010-02-03 09:51:53 +00:00
Stefan Csomor
a533f0504f safe degradation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-03 08:32:42 +00:00
Kevin Ollivier
20559592cb Rebake after DND changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-03 06:08:31 +00:00
Kevin Ollivier
7dab9892b3 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
2010-02-03 05:31:31 +00:00
Kevin Ollivier
803e2857b3 Add sanity check on the item number.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-03 05:22:13 +00:00
Julian Smart
205a1ad98f 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
2010-02-02 22:19:33 +00:00
Jaakko Salli
7261371b17 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
2010-02-02 15:19:41 +00:00
Julian Smart
8c0f078408 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
2010-02-02 11:23:31 +00:00
Julian Smart
76d7fc2904 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
2010-02-01 10:45:51 +00:00
Stefan Csomor
44f97e649a adapting to new API variant
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-01 08:23:59 +00:00
Kevin Ollivier
2fea6972c7 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
2010-02-01 01:20:15 +00:00
Kevin Ollivier
98182acce8 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
2010-02-01 00:48:23 +00:00
Jaakko Salli
c05fe84146 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
2010-01-31 18:15:17 +00:00
Jaakko Salli
8669431add 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
2010-01-31 18:14:24 +00:00
Jaakko Salli
34c921fc4d 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
2010-01-31 18:13:13 +00:00
Stefan Csomor
f0a9f45635 avoiding catching incorrect shortcuts, see #11676
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-31 14:42:51 +00:00
Stefan Csomor
5aa6ea933f 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
2010-01-31 11:01:53 +00:00
Vadim Zeitlin
96e790a567 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
2010-01-29 13:07:26 +00:00
Michael Wetherell
1682f86006 Fix for file length fixup.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-28 21:46:18 +00:00
Stefan Csomor
f135deaa90 storing modal returncode correctly for carbon
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-28 13:49:16 +00:00
Stefan Csomor
3039af96f6 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
2010-01-28 13:48:35 +00:00
Vadim Zeitlin
aedb388157 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
2010-01-28 12:07:16 +00:00
Stefan Csomor
86c3808c28 adding window-modal message box sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-28 09:54:51 +00:00
Stefan Csomor
0aeac464d1 setting correct alertType
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-28 08:28:52 +00:00
Kevin Ollivier
bfa92264c0 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
2010-01-28 04:06:23 +00:00
Vadim Zeitlin
896576e31e 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
2010-01-26 23:04:26 +00:00
Jaakko Salli
fb9521b8f5 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
2010-01-26 21:09:41 +00:00
Jaakko Salli
13bb4e59af Fixed wxPGGlobalVars export declaration
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 17:44:51 +00:00
Stefan Csomor
d5f46cddf1 optimizing creation of glcontexts, less flicker
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 14:36:39 +00:00
Jouk Jansen
06b4070d7c Fixes for compilation on OpenVMS platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 14:24:06 +00:00
Vadim Zeitlin
5cb3a695e0 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
2010-01-26 12:43:39 +00:00
Vadim Zeitlin
6b2f55531a 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
2010-01-26 12:39:41 +00:00
Vadim Zeitlin
6900a89752 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
2010-01-26 12:33:34 +00:00
Vadim Zeitlin
c9980eb871 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
2010-01-26 12:33:01 +00:00