Commit Graph

54831 Commits

Author SHA1 Message Date
Vadim Zeitlin
3a1ec1d5dc Add wxEVT_AUI_PANE_ACTIVATED event.
This event is sent when an AUI pane becomes active.

Closes #14026.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 20:31:34 +00:00
Vadim Zeitlin
fc5a609912 No changes, just make wxAUI SetActivePane() a member function.
Make a global function a member one as it uses member variables and it's
easier to use them directly instead of passing the object pointer to it all
the time.

See #14026.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 20:31:29 +00:00
Stefan Csomor
87381108c8 we have to export every virtual method in this template class for clang, next attempt to get a vc++ compatible solution
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 09:42:51 +00:00
Vadim Zeitlin
865dab5da9 Revert the addition of WXDLLIMPEXP_CORE to all wxNavigationEnabled methods.
This reverts commit r70787 as it broke DLL build with MSVC.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:43:19 +00:00
Vadim Zeitlin
acfe040282 Turkish translations update from Kaya Zeren.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:31:36 +00:00
Vadim Zeitlin
d890beb9c8 Use standard IDC_CROSS cursor in wxMSW.
There doesn't seem to be any reason to prefer our own WXCURSOR_CROSS to it.

Closes #13035.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:29:58 +00:00
Vadim Zeitlin
1580a10d87 Always provide wxMenuItem bitmap-related methods in wxMSW.
Define these methods even when wxUSE_OWNER_DRAWN is turned off for some
reason. This allows to avoid ugly tests for !defined(__WXMSW__) ||
wxUSE_OWNER_DRAWN in the code that just wants to set a bitmap for a menu item.

Closes #12664.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:29:55 +00:00
Vadim Zeitlin
a02b2a9d31 Don't set value unnecessarily in wxSpinCtrl::Create() in wxMSW.
This is not only unnecessary but also results in an unexpected event (which
could be avoided by using ChangeValue() but why bother calling it at all if we
don't need to).

Closes #13589.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:29:51 +00:00
Vadim Zeitlin
bcdeea5a5b No changes, just add wxSpinCtrl::Init() to wxMSW.
Remove a "TODO" comment about adding it and initialize all member variables
there instead of doing it only in Create().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:29:48 +00:00
Vadim Zeitlin
76c6713102 Fix stretchable spaces in wxToolBar after tool removal in wxMSW.
The stretchable spaces need to be manually updated after removing a tool from
the toolbar.

Closes #13577.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:29:44 +00:00
Vadim Zeitlin
0c827c6eef Correct mouse event coordinates in wxMSW wxUIActionSimulator.
The rounding of the floating point division was not done quite correctly.

Closes #13383.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:29:37 +00:00
Vadim Zeitlin
d98a58c543 Use __WINDOWS__ for OS kind checks and reserve __WXMSW__ for GUI toolkit.
This change prepares the way for using wxGTK under Windows as this would
still define __WINDOWS__ but use __WXGTK__ instead of __WXMSW__.

Closes #14064.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:29:31 +00:00
Vadim Zeitlin
2e3407de5c Fix assert when editing an item in multi-selection wxTreeCtrl.
Don't use GetSelection() in wxTreeCtrl EVT_CHAR_HOOK handler as it can only be
used with single selection controls and results in an assert when used with
multi-selection ones. Simply use GetFocusedItem() instead.

Closes #14062.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:29:21 +00:00
Vadim Zeitlin
e18a74e240 Take disabled windows into account in wxFindWindowAtPoint() in wxMSW.
Use ChildWindowFromPointEx(CWP_SKIPINVISIBLE) to ensure that we find the
disabled children (by not using CWP_SKIPDISABLED).

Add a unit test to check for the correct behaviour in all cases and document
it.

Closes #2942.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:29:17 +00:00
Vadim Zeitlin
7cd60fb938 No changes, just cleanup TopLevelWindowTestCase unit test a little.
Remove the unnecessary overrides of setUp() and tearDown().

Also get rid of trailing whitespace.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:29:14 +00:00
Vadim Zeitlin
68a8473f93 Add documentation of wxFileSelectorEx() and wx{Load,Save}FileSelector().
Document all wxFileDialog-related functions and not just wxFileSelector().

See #14051.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:29:11 +00:00
Vadim Zeitlin
0b59366faa Better documentation for the default parameters values.
Use symbolic names for them and document them separately.

Closes #14051.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:29:07 +00:00
Vadim Zeitlin
3285e9a347 Fix showing MDI child from wxDocManager::ActivateDocument().
This fix has 2 components: first, call Raise() instead of simple SetFocus()
from ActivateDocument() as this corresponds better to what we want to do here.
And second, override Raise() to call Activate() in wxMDIChildFrame to ensure
that it works as expected as raising an MDI child doesn't work otherwise in
most ports (with the exceptions for wxOSX which, on the contrary, needs a
small fix to preserve the existing working Raise() behaviour).

Closes #13946.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:29:03 +00:00
Vadim Zeitlin
e709239889 Use wxHAS_IMAGES_IN_RESOURCES instead of explicit platform checks.
Add a special symbol which is defined only if the icons and other images (e.g.
cursor) are in the separate resource files and don't need to be embedded as
XPMs in the main program.

This makes the checks more clear and more customizable as it's enough to
change wxHAS_IMAGES_IN_RESOURCES definition instead of changing many platform
checks.

Closes #14050.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:28:58 +00:00
Vadim Zeitlin
b303fca714 Czech translations update from Zbynek Schwarz.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-03 20:23:46 +00:00
Stefan Csomor
778df99f55 we have to export every virtual method in this template class for clang
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-03 17:30:32 +00:00
Stefan Csomor
1788a5f954 just in case we have an erroneous character on the server as well at the end of this file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-03 13:09:54 +00:00
Stefan Csomor
843ac6c8dc testing another implementation for avoiding WakeUp Problems within tracking loops
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-03 10:36:03 +00:00
Vadim Zeitlin
d03a63e465 Add Tamil translations by DINAKAR T.D.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-02 22:26:24 +00:00
Robin Dunn
e73d7e569f fix missing and broken items in the datetime interface
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-02 21:51:21 +00:00
Julian Smart
c375936db8 Darker border for wxComboCtrl on Mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-02 12:43:39 +00:00
Julian Smart
b4e415df52 Use a non-native toolbar on Mac so small buttons aren't stretched horribly.
The style combo control also appears now that the toolbar is non-native.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-02 08:55:25 +00:00
Stefan Csomor
9f24a90e2b adding translation of NSDragOperationGeneric to wxDragCopy fixes #14059
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-02 07:17:45 +00:00
Julian Smart
990952304c Improved the appearance of the property grid checkbox on Mac and GTK+
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-01 18:52:38 +00:00
Paul Cornett
7cf17ea27b remove signal-blocking variable, instead just connect to signal when ready
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-01 16:44:31 +00:00
Paul Cornett
4c9bde5ec0 use m_ prefix for web_view member, and make it a WebKitWebView* to eliminate many casts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-01 16:36:58 +00:00
Paul Cornett
d3e592af7f remove extra g_object_ref() on web view widget
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-01 16:14:27 +00:00
Julian Smart
6062fe5c9e Added MacInternalOnSize() to allow windows to resize themselves independently of size events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-01 15:04:42 +00:00
Paul Cornett
f8497215c1 Fixes to allow running with 64-bit wxGTK
- use correct printf format specifiers
- don't perform operations requiring a window until the window has been created


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-01 07:09:43 +00:00
Stefan Csomor
0309327e97 applying Andrew's patch, closes #13440, fine now that we have raised the minimum deployment to 10.5
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-01 07:09:29 +00:00
Vadim Zeitlin
2a408a4bf2 Add wxGCDC benchmarks to graphics benchmark for comparison with wxDC.
Also benchmark rectangles and bitmaps in addition to lines drawing.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-01 01:05:28 +00:00
Vadim Zeitlin
2c8c1de1ee Correct wxCOMPILER_PREFIX definition when wxMSVC_VERSION is predefined.
Fix the wrong concatenation macro name that was used as using wxMSVC_VERSION
could not work as expected before (which also shows that nobody ever used it).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-01 01:05:25 +00:00
Vadim Zeitlin
7eb02e44ba Recognize MSVC 11 instead of warning about unknown MSVC version.
Define __VISUALC11__ for it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-29 22:40:24 +00:00
Paul Cornett
78f89f920d remove unnecessary gtk_widget_show(m_widget) calls, PostCreation() takes care of that
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-29 18:29:31 +00:00
Paul Cornett
85f622694c small includes cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-29 18:13:06 +00:00
Paul Cornett
0e4046e694 remove unnecessary gtk_widget_show() calls, PostCreation() takes care of that
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-29 18:05:03 +00:00
Julian Smart
6cabfc592b Always send wxEVT_COMMAND_RICHTEXT_DELETE event if delete or back key pressed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-29 15:06:49 +00:00
Vadim Zeitlin
dea43e6ee3 Ignore setting empty path in wxGTK wxFileDialog.
wxGenericFileButton calls wxFileDialog::SetPath() with empty path if no
initial path is explicitly specified and this clearly shouldn't do anything --
but it did, as it set the file dialog path to the initial directory (cwd by
default), and so opened it in the parent of that directory which was
completely unexpected and not useful at all.

Simply don't do anything when SetPath("") is called.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-29 14:45:29 +00:00
Vadim Zeitlin
b54eae5237 Remove redundant assignment in wxDialUpManagerMSW code.
No real changes, just remove a redundant assignment flagged by a static code
analysis tool.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-29 13:59:01 +00:00
Vadim Zeitlin
59859d3da1 Replace incorrect uses of wxString::empty() with the intended clear().
empty() doesn't empty the string but just checks for its emptiness, clear()
was supposed to be used here instead.

Thanks to PVS-Studio for finding these problems.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-29 13:58:58 +00:00
Vadim Zeitlin
14aed066ad Initialize m_isShown correctly in wxGenericDragImage::BeginDrag().
The code initialized m_isDirty twice which was clearly wrong. The original
intention was probably to set both m_isDirty and m_isShown to false.

Thanks to PVS-Studio for finding this bug.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-29 13:58:55 +00:00
Vadim Zeitlin
f90b69e028 Move checks for m_art != NULL before code using m_art in wxAuiToolBar.
It doesn't make sense to check whether a pointer is NULL after using it, so do
the checks first.

In fact the m_art pointer probably can never be NULL at all as other code uses
it without checking and so these checks could probably be removed completely,
but keep them for now as I'm not totally sure if having NULL art provider is
really impossible.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-29 13:58:52 +00:00
Vadim Zeitlin
b02dd12239 Use /bin/echo for creation of Mac OS X PkgInfo files.
The built-in of /bin/sh doesn't handle "-n" option that we use (at least not
under OS X 10.6), so we were getting "-n APPL????" in the generated files.
Fix this by using /bin/echo which does support this option.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-28 22:48:39 +00:00
Paul Cornett
d058098eb2 avoid deprecated gdk_net_wm_supports()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-28 18:23:39 +00:00
Paul Cornett
ab7049776d remove run-time check for now-required GTK 2.4
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-28 18:06:22 +00:00