Commit Graph

50456 Commits

Author SHA1 Message Date
Jaakko Salli
0fa9b2ed61 Sometimes change in varscrollable window's size can result in unused empty space after the last item. Fix it by decrementing first visible item position as long there is available space (fixes #11758).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-28 10:16:49 +00:00
Kevin Ollivier
78a1707501 Override CanFocus because the wxWindow level test will check if the NSTextView's parent scrollview can get keyboard focus, and will return no, meaning that wx won't set the focus to the text ctrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-27 02:51:45 +00:00
Jaakko Salli
26b22ae371 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
2010-02-26 15:45:30 +00:00
Vadim Zeitlin
9573840bcf 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
2010-02-26 14:10:02 +00:00
Vadim Zeitlin
6331afb053 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
2010-02-26 14:09:58 +00:00
Vadim Zeitlin
6df26ddbf7 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
2010-02-26 14:09:43 +00:00
Jaakko Salli
d2a82a6f7d 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
2010-02-25 15:05:09 +00:00
Jaakko Salli
7fe5c04d6a Fixed property Hide command
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-25 14:04:25 +00:00
Vadim Zeitlin
98a0eff633 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
2010-02-25 00:04:03 +00:00
Vadim Zeitlin
5431e4a684 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
2010-02-25 00:03:59 +00:00
Vadim Zeitlin
2856f57b37 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
2010-02-25 00:03:53 +00:00
Vadim Zeitlin
6d9941636d 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
2010-02-25 00:03:48 +00:00
Vadim Zeitlin
e10092956f 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
2010-02-25 00:03:44 +00:00
Vadim Zeitlin
3450f97f3e 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
2010-02-25 00:03:39 +00:00
Vadim Zeitlin
b74d7c8525 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
2010-02-25 00:03:35 +00:00
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