Commit Graph

50441 Commits

Author SHA1 Message Date
Vadim Zeitlin
b42468496c 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
2010-02-25 00:03:30 +00:00
Vadim Zeitlin
83b4d26c14 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
2010-02-25 00:03:22 +00:00
Bryan Petty
4d68a949df Fixed typo in wxDataViewIconTextRenderer docs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-24 22:09:52 +00:00
Stefan Csomor
747dbaba91 proper app shutdown support for iphone
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-23 17:32:01 +00:00
Jaakko Salli
48567d2790 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
2010-02-23 15:29:10 +00:00
Jaakko Salli
fe63109fc4 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
2010-02-23 15:24:50 +00:00
Jaakko Salli
9493cc02ee 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
2010-02-22 17:04:18 +00:00
Jaakko Salli
f231df8aa8 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
2010-02-22 16:44:56 +00:00
Kevin Ollivier
e908dbcc92 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
2010-02-22 01:56:42 +00:00
Kevin Ollivier
779a4d41ef 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
2010-02-19 07:01:33 +00:00
Kevin Ollivier
7914542b1e Typo fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-19 07:00:49 +00:00
Kevin Ollivier
809020fc97 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
2010-02-19 03:00:07 +00:00
Jaakko Salli
76733d4cae 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
2010-02-16 16:24:30 +00:00
Jaakko Salli
4279fdb44a Added wxPropertyGridInterface::GetColumnProportion()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-16 15:38:12 +00:00
Jaakko Salli
008a4cb321 Added missing words in event documentation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-16 14:15:59 +00:00
Jaakko Salli
e72ad2d5e7 Document wxEVT_PG_CHANGED
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-16 14:12:23 +00:00
Michael Wetherell
8422e116f4 Add user for buildbot notifications.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-16 09:44:08 +00:00
Robin Dunn
b6ae7297d2 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
2010-02-15 17:34:21 +00:00
Kevin Ollivier
ec073e73d1 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
2010-02-15 04:23:49 +00:00
Václav Slavík
a7b2c092b7 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
2010-02-14 15:27:42 +00:00
Jaakko Salli
27c14b30bc 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
2010-02-14 14:37:56 +00:00
Jaakko Salli
fe01f16e53 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
2010-02-14 14:09:06 +00:00
Kevin Ollivier
a7b9865d30 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
2010-02-13 06:30:06 +00:00
Vadim Zeitlin
06b76f7e8b 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
2010-02-12 22:47:25 +00:00
Vadim Zeitlin
011ad05168 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
2010-02-12 22:47:21 +00:00
Vadim Zeitlin
295a34e95d 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
2010-02-12 11:22:43 +00:00
Václav Slavík
10ff14524b 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
2010-02-11 12:48:29 +00:00
Václav Slavík
e03951b772 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
2010-02-11 12:36:16 +00:00
Jaakko Salli
ec3cce5a29 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
2010-02-10 16:45:39 +00:00
Václav Slavík
a2837c3c43 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
2010-02-10 13:31:58 +00:00
Vadim Zeitlin
9508a23a1b 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
2010-02-10 11:38:41 +00:00
Stefan Csomor
76fe30bbad 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
2010-02-09 09:35:22 +00:00
Robin Dunn
d4d799e9ea Test m_nowpeer pointer before using it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-09 01:34:11 +00:00
Robin Dunn
564af280f0 Set Id and EventObject for wxSetCursorEvent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-09 01:33:44 +00:00
Robin Dunn
7313db77a7 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
2010-02-09 01:32:21 +00:00
Robin Dunn
aa48d3053d Remove functions duplicated in dnd_osx.cpp.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-09 01:24:22 +00:00
Robin Dunn
1ed7a2064a 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
2010-02-08 20:06:04 +00:00
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