Commit Graph

53084 Commits

Author SHA1 Message Date
Stefan Csomor
2bc4cc1ead speeding up rectangle drawing by using specific methods, needs 40% less time
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-06 23:15:27 +00:00
Stefan Csomor
a3c222122d 10.4 compatibility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-06 21:13:33 +00:00
Stefan Csomor
592a3c6eb9 reverting to idle handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-06 21:12:14 +00:00
Stefan Csomor
7e3d8eabcf turning off unconditional usage of filter-delegate, using native capabilities under 10.6, proper handling of empty default directories for dialogs by passing in nil to native calls,
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-06 19:19:42 +00:00
Stefan Csomor
0aff141c51 supporting nested window disablers on the same window
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-06 16:32:41 +00:00
Stefan Csomor
d4a4ef9074 supporting native background color on wxWindow descendants that are not themselves native controls, like eg wxPanel , see #13032
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-06 02:28:56 +00:00
Stefan Csomor
776036d671 supporting native background on nonownedwindow, see #13032
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-05 16:08:12 +00:00
Stefan Csomor
203ec4242b adding another assert for tracking modalSession problems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-05 15:32:50 +00:00
Julian Smart
45791d3c21 Removed erroneous second reference to status bar height
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-03 17:18:35 +00:00
Stefan Csomor
d1fc95780b allowing more system keys in fullscreen mode, properly taking framestyle into account
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-03 09:15:15 +00:00
Stefan Csomor
65e3da1909 first implementation for state on custom renderer, see #12890
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-02 09:25:11 +00:00
Stefan Csomor
cc71017142 fixes #12867
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-02 08:36:57 +00:00
Stefan Csomor
8a07956565 reactivate commented out method
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-02 08:19:16 +00:00
Stefan Csomor
94156c296f cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-02 08:18:11 +00:00
Vadim Zeitlin
7cc84a7322 No changes, just avoid unused parameters warnings.
Wrap parameters of the stub implementation of the newly added StartEditor() in
WXUNUSED().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-01 22:58:05 +00:00
Stefan Csomor
07edda049f first stab at supporting custom renderers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-01 20:05:03 +00:00
Robin Dunn
eeea3b039e Virtualize StartEditor and add implementations for the ports that can do it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-31 19:36:47 +00:00
Robin Dunn
9f2b6b31b7 Build fixes for using Cairo on MSW.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-31 19:16:55 +00:00
Paul Cornett
769c3372a2 fix memory leak in wxScreenDC, fixes #13249
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-31 17:16:53 +00:00
Stefan Csomor
40a35c1f87 making sure
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-31 08:09:18 +00:00
Vadim Zeitlin
1ee1662007 Free calloc()'d pointer correctly in wxFSWatchEntryMSW.
OVERLAPPED struct was allocated using calloc() but deleted later. Fix this by
deallocating it with free() instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-28 19:35:13 +00:00
Dimitri Schoolwerth
ff5bf31cb1 Fixed saving GIFs on big-endian architectures.
Word (16 bits) values were written in the wrong order resulting in invalid GIF files on for example PowerPC machines.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-27 12:25:25 +00:00
Vadim Zeitlin
2f5dec2e52 Use #ifdef, not #if, to check for __WXGTK26__ symbol.
This fixes gcc warning given if __WXGTK26__ is not defined (which almost never
happens nowadays but still).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-27 09:46:27 +00:00
Stefan Csomor
2077a6ad23 using systemui for full screen to allow modal dialogs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-25 11:26:47 +00:00
Vadim Zeitlin
6dfd1add4a Correct the picker button best size computation.
Fix the typo in the changes of r67763.

See #13232.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-24 21:19:35 +00:00
Stefan Csomor
0f27b6637a guard against NULL textctrl, fixes #13247
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-24 17:38:03 +00:00
Vadim Zeitlin
01456a3fa3 Correct type MSVCProjectBuilder in the build script.
This prevented MSVC version detection from environment variables from working.

Closes #13243.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-23 23:20:18 +00:00
Vadim Zeitlin
218697e27b Don't use native MSW wxHyperlinkCtrl implementation in wxUniv.
Move src/msw/hyperlink.cpp and include/wx/msw/hyperlink.h to
ADVANCED_MSW_NATIVE_SRC/HDR from ADVANCED_MSW_SRC/HDR respectively to ensure
that these files are not used in wxUniv build that uses its own, generic,
versions.

This should fix wxUniv/MSW build as the native files didn't even compile with
wxUniv.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-23 15:26:42 +00:00
Vadim Zeitlin
2e103d05f1 Rebake after the addition of more richtext headers.
The project files haven't been updated after the last files.bkl modification,
do it now.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-23 15:26:38 +00:00
Vadim Zeitlin
bf0f3b269f Add a trivial benchmark for wxDateTime::ParseDate().
Add a test to check the performance of this method.

See #13242.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-23 11:06:48 +00:00
Vadim Zeitlin
979fa8c2ad Italian translations update from Stefano <l.stickell@@yahoo.it>.
Minor updates to the translations themselves.

Also changed the charset to UTF-8 from Latin-1.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-22 10:53:10 +00:00
Dimitri Schoolwerth
dc8c61bef7 Fixed wxMessageBox with only an OK button returning wxCANCEL under MSW.
Since r67620 when wxMessageDialog::ShowModal uses a native task dialog and only has an OK button it actually uses a Cancel button, this resulted in the function's return value wrongly changing to wxID_CANCEL. Fix this by handling the special case with only an OK button and return wxID_OK instead of wxID_CANCEL (and thus wxMessageBox, which uses wxMessageDialog::ShowModal, returning wxOK instead of wxCANCEL).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-20 22:48:17 +00:00
Dimitri Schoolwerth
1667f96a85 Applied patch containing small corrections to German translations.
Patch by Blake Oleander (snowleopard2) with input from Robert Hoffmann. Closes #13212.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-20 22:44:53 +00:00
Vadim Zeitlin
9ed406c39d Avoid conversion from wxString to wxChar* and back in wxListBase::DoCopy().
Don't use temporary wxChar* variable to store the node string. This is not
only inefficient because we need to convert wxString to it only to convert it
back to wxString on the next line but also breaks compilation when
wxUSE_STD_STRING==1 and wxUSE_STD_CONTAINERS==0 as there is no implicit
conversion between wxString and wxChar* in this case.

Also modify the code for long keys in the same way just for consistency.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-20 14:29:07 +00:00
Jaakko Salli
1d8340b956 Allow wxPGProperty::IsChildSelected() to work recursively
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-20 14:26:17 +00:00
Vadim Zeitlin
df5f11feee Make picker control at least as high as the associated text and square.
Ensure that the height of the picker control is at least as big as the height
of the associated text control and that it's at least as wide as it is high as
it looks bad otherwise.

Closes #13232.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-19 14:14:58 +00:00
Stefan Csomor
73be128174 making sure clip (device coordinages) is applied before any transforms, fixes #13216
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-18 07:32:58 +00:00
Vadim Zeitlin
715efa4e25 Allow passing wxLongLong values directly to wx pseudo-vararg functions.
Allow passing wxLongLong objects when a "%lld" format specifier (or
equivalent) is used just as we already do for wxString objects when "%s" is
used. This is more convenient and makes wxLongLong closes to the native type.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-17 22:12:39 +00:00
Vadim Zeitlin
8ea26eedce Don't construct invalid wxDateTime in GTK calendar control callbacks.
GTK+ may momentarily return invalid date when switching the month in the
calendar control. Check for this and adjust the date ourselves to make it
valid if necessary in order to avoid the asserts from wxDateTime ctor.

Closes #13224.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-17 22:12:35 +00:00
Vadim Zeitlin
473d0f930e Fix client to screen translation in wxWindowMSW::PopupMenu().
Use wxWidgets ClientToScreen() function for computing the screen coordinates
of the popup menu instead of Windows ::ClientToScreen() as the latter doesn't
know about the toolbar which may be present in wxFrame and excluded from the
client area.

Closes #13223.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-17 13:35:04 +00:00
Vadim Zeitlin
352a7d6c46 Ensure that we never return negative client size.
wxMSW could return negative client size for tiny windows with borders, this
was unexpected and shouldn't happen so explicitly ensure it does not.

Also add a unit test to check that this problem doesn't exist in other ports.

Closes #13184.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-16 14:07:40 +00:00
Vadim Zeitlin
5f081e28fa No changes, just refactor the code in MSW wxGetOsDescription() slightly.
Construct the description string from several pieces: the OS name, its build
number and any extra information about it, instead of duplicating the code
appending the build number to the name in several places.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-16 10:01:12 +00:00
Vadim Zeitlin
7c7eed5656 Recognize Windows 7 and Server 2008 versions in wxGetOsDescription().
Use marketing names for these systems instead of just describing them as
"Window NT x.y".

Closes #13220.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-16 10:01:08 +00:00
Vadim Zeitlin
a699420104 Allow dragging floating AUI frames by the gripper.
Previously starting to drag a pane by its gripper worked but once it undocked
it was impossible to drag it by the gripper any more which was annoying for
the user and unexpected.

Fix this by ensuring that we move the correct top level window and not the
child window when dragging floating panes.

Closes #13177.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-15 16:16:11 +00:00
Vadim Zeitlin
efd516c29b Fix small error in floating AUI frames client size under wxMSW.
The client size of the floating frames ended up being wrong because we changed
the wxRESIZE_BORDER flag after setting it and this changed it (at least under
MSW).

Reset wxRESIZE_BORDER first now and set the client size correctly afterwards.

Closes #13043.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-14 14:18:20 +00:00
Vadim Zeitlin
55908cf096 Fix restoring of wxAuiManager::m_has_maximized when restoring perspective.
If the perspective being loaded contains a maximized pane, set the
m_has_maximized flag to true. Otherwise the flag and the effective pane state
was out of sync resulting in several problems in the UI behaviour.

Closes #12527.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-14 14:18:17 +00:00
Vadim Zeitlin
026c6eff70 Correct the drawing of check tools with a drop down button in wxAuiToolBar.
This combination was simply not covered by the existing code, add the missing
DrawDropDownButton() call.

Closes #11139.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-14 14:18:14 +00:00
Vadim Zeitlin
587151f730 Reset the checked state of the first radio item in wxAuiToolBar too.
Fix the condition of the loop in wxAuiToolBar::ToggleTool() to also uncheck
the item with index 0 that was always excluded before because of "i > 0" check
in the loop.

Also exclude the item being turned on itself from the loops, it's useless to
reset its checked state only to turn it on again below.

Closes #11110.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-14 14:18:09 +00:00
Vadim Zeitlin
a4e5e0b90c Check for NULL pane window in wxAuiManager.
Check that the AUI pane has a non-NULL associated frame before checking
whether it's shown.

This should fix a crash which could happen when docking an undocked toolbar.

Closes #10926.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-14 14:18:05 +00:00
Vadim Zeitlin
fdc5bc9f67 Improve checking for the landing point when docking windows in wxAUI.
This is especially important for multiple monitor setups in which the old code
could result in false positives and suggest docking a window on a wrong
display.

Closes #10612.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-14 14:18:02 +00:00