Commit Graph

50510 Commits

Author SHA1 Message Date
Vadim Zeitlin
1bab36277c Fix toggling the header in the generic wxListCtrl.
We need to update the lfags first before deciding whether we should create or
destroy the header.

Also add a test for toggling the header to the listctrl sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-06 00:31:00 +00:00
Vadim Zeitlin
98e956503d Don't stop dragging in the grid when the mouse leaves the window.
Unexpected/unaccounted for mouse leaving and entering events stopped the drag
operation currently in progress in wxGrid. And while it was resumed later,
this resulted in the mouse being captured only twice but released only once.

Fix this by ignoring the leaving and entering events and checking that we
don't capture the mouse again.

Closes #11662.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-05 23:56:47 +00:00
Vadim Zeitlin
2d6bba4118 Fix memory leak in wxDataViewListStore::DeleteItem().
The item data needs to be deleted in addition to simply removing it from the
internal storage.

Closes #11757.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-05 23:55:31 +00:00
Vadim Zeitlin
cbe0676038 Correct IsMaximized() in wxOSX for non-resizable windows.
NSWindow isZoomed always returns true in this case, so check the window
rectangle ourselves to determine whether it's maximized.

Closes #11734.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-05 23:55:27 +00:00
Vadim Zeitlin
f9199323a4 Make the code more clear in aui sample and avoid g++ 4 warning.
The code used bitwise XOR which was rather difficult to read and also resulted
in g++ 4 warnings about suggested parentheses.

Fix both issues by using bitwise AND and OR in two separate statements instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-05 23:55:23 +00:00
Vadim Zeitlin
175363f6b8 Implement wxBookCtrlBase::CalcSizeFromPage() in the base class.
The definition of this method was needlessly duplicated in all of
wx{Choice,List,Tool,Tree}book and in all of them except the first one it
didn't account correctly for the case when the size of the controller was
greater than the size of the page.

Avoid the duplication and fix the best size determination in such case by
providing a single, correct version of the function in the base class itself.

Closes #11793.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-05 23:55:19 +00:00
Vadim Zeitlin
76680db44a Avoid conflict between accelerators in the notebook sample.
Ctrl-5 was used both for the treebook in the "Type" menu and default
orientation choice in the "Orientation" menu.

Use Alt-[0..4] for the "Orientation" menu entries.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-05 23:55:14 +00:00
Vadim Zeitlin
1d2b7f06a3 No changes, just remove redundant GetControllerSize() definitions.
For some reasons wxBookCtrlBase::GetControllerSize() was redefined in several
derived classes even though it did exactly the same thing in all of them.

Leave only the base class version and remove the other ones.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-05 23:55:09 +00:00
Vadim Zeitlin
7019c4a5e6 Correct controller size determination in wxToolbook.
The old code used the current toolbar size instead of determining its best
size for some strange reason and this resulted in toolbar remaining of tiny (1
pixel) height at least under wxGTK.

Fix this by simply using the best size of the toolbar.

Closes #11606.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-05 23:55:04 +00:00
Vadim Zeitlin
db06bfb402 Use wxWindow::ReleaseMouse() instead of MSW ::ReleaseCapture() function.
As we capture the mouse using wxWindow::CaptureMouse(), we must release it
with ReleaseMouse() and not just ReleaseCapture().

Closes #11791.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-05 23:55:00 +00:00
Francesco Montorsi
694b7ca407 define TARGET_CPU (as a variable) also for formats using MSVS_PLATFORM; this allows a simpler logic in the following tests (and in the user bakefiles)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-05 20:51:42 +00:00
Jaakko Salli
2ac06991a7 Moved property unattachment code from wxPropertyGridInterface::RemoveProperty() to wxPropertyGridPageState::DoDelete() - fixes deferred removal issue
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-04 15:09:15 +00:00
Stefan Csomor
f7d32bb716 no existing on iphone
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-04 08:29:04 +00:00
Stefan Csomor
3c9413b7de fixing leak, fixes #11781
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-03 23:00:36 +00:00
Stefan Csomor
bcf5d9fb9f fixing leak, fixes #11782
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-03 21:52:46 +00:00
Stefan Csomor
4cc16dcb8b using native fullscreen support and ShowEvent triggers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-03 16:53:34 +00:00
Stefan Csomor
219665bbc6 fixing warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-03 16:51:15 +00:00
Stefan Csomor
878357d8f7 make sure ShowEvent doesn't get triggered to early during construction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-03 16:33:12 +00:00
Vadim Zeitlin
18a4c97b36 Allow using version-specific vc prefix in msvc/wx/setup.h.
We still use just "vc" by default for compatibility but allow the user to
predefine either wxMSVC_VERSION or wxMSVC_VERSION_AUTO to use the specified or
version-dependent prefix instead. This is very convenient when using multiple
MSVC versions.

See #11022.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-03 14:19:29 +00:00
Vadim Zeitlin
d48a4705ab Use correct directory names in msvc/wx/setup.h for 64 bit builds.
Use _amd64 and _ia64 suffixes if _M_X64 or _M_IA64 is defined.

Closes #11022.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-03 14:19:18 +00:00
Vadim Zeitlin
55ef931807 Added Arabic translation from Abdullah Abouzekry.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-03 14:19:13 +00:00
Vadim Zeitlin
d98c269bb4 Fix wxCommandProcessor compilation with wxUSE_ACCEL==0.
Leave the accelerator strings empty in this case.

Closes #11783.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-03 14:19:05 +00:00
Robin Dunn
f0bae4ba05 Layout the immediate parent of the info bar as described in the docs, not the top-level parent.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-03 07:17:18 +00:00
Vadim Zeitlin
b3f5fbf6ea Document that images in buttons and menus might not be shown under GTK.
Mention gtk-{button,menu}-images GTK+ settings.

See #11369.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-03 01:08:19 +00:00
Francesco Montorsi
617bcbe241 add 64bit support to those formats which I could test and which support 64bit build modes (msvc, msvs2005prj and msvs2008prj) by adding a TARGET_CPU option similar to what wxWidgets bakefiles do (note the absence of the WX_ prefix since it does not make sense to have a wx-specific architecture); this additional feature allows correct inclusion of the vc_[amd64|ia64]_[lib|dll] path when building a wx-based project on Windows.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-03 00:35:44 +00:00
Francesco Montorsi
56bcdffdc3 (minor change) update list of supported Windows versions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-02 23:21:54 +00:00
Vadim Zeitlin
0a4daf3980 Use user locale with Latin-1 as fallback for command line arguments.
Command line arguments can contain characters outside of 7 bit ASCII range.
Assume that they use the default user encoding but fall back to Latin-1 if
conversion failed.

Closes #11754.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-02 20:46:18 +00:00
Vadim Zeitlin
3cd3739570 Don't use m_macToolbar in wxOSX wxToolBar if it is NULL.
This fixes a crash when a native toolbar is not used by wxToolBar as it
happens when it's used by wxToolbook for example.

Closes #11775.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-02 18:16:11 +00:00
Vadim Zeitlin
e6b3b53c2c Enclose code using m_macToolbar in #if wxOSX_USE_NATIVE_TOOLBAR.
Don't use m_macToolbar which is only used when the toolbar is a native one
when we don't really use the native toolbar.

This should fix compilation in case wxOSX_USE_NATIVE_TOOLBAR is 0.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-02 18:16:02 +00:00
Robin Dunn
1404c3f382 Document GetBitmapMargins
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-02 00:23:31 +00:00
Vadim Zeitlin
439c7eae9b Fix crash when accessing clipboard before entering the main loop.
Check that we have an event loop running before yielding to it.

Notice that we really do need an event loop in wxClipboardSync as events must
be dispatched for the clipboard code to work so while not using the event loop
if it doesn't exist would have fixed a crash as well, it wouldn't allow to use
the clipboard in e.g. wxApp-derived class OnInit().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-01 23:45:22 +00:00
Robin Dunn
06bb8d923d Invalidate best size when the bitmap or bitmap position changes. Add GetBitmapMargins
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-01 23:20:35 +00:00
Robin Dunn
9f88f9fbf0 Use the correct event class for the window modal notification
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-01 22:54:15 +00:00
Jaakko Salli
e4e55c061f Have to implement wxPGProperty::DeleteChildren() differently so that it will work with deferred property deletion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-01 15:30:03 +00:00
Jaakko Salli
abf5c8a3b4 Have to check for wxPG_SPLITTER_AUTO_CENTER style before setting propgrid column proportion in the sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-01 15:26:07 +00:00
Stefan Csomor
e812e279ba translate 0.5 offset into user space before applying translation, see #11769, see #11771
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-28 17:29:47 +00:00
Stefan Csomor
8a484d9ef6 moving header for precomp builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-28 17:27:49 +00:00
Vadim Zeitlin
57a4b972cf Simplify and correct bugs in wxMSW wxScrollBar message handling.
For some reason we computed scroll increment from the native message and not
the new position directly which is actually simpler and probably would have
never resulted in a bug which exchanged the meanings of SB_TOP and SB_BOTTOM.

Get rid of nScrollInc and just update the position variable directly.

Closes #11741.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-28 11:30:55 +00:00
Vadim Zeitlin
8ae8032cf9 No real changes, just cleanup wxMSW wxScrollBar a little.
Get rid of old, Win16-compatible, commented out code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-28 11:30:51 +00:00
Vadim Zeitlin
b96a56e60e Make it possible to use wxCharBuffer during program initialization.
wxCharBuffer might be used during static initialization, even if only
implicitly. E.g. it is used by wxString::Format() which can be used to
initialize a global string. But it uses the global s_untypedNullData variable
might not be initialized yet resulting in mysterious failures.

Fix this in the usual way by wrapping access to the variable via a function.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-28 11:09:26 +00:00
Vadim Zeitlin
321f760bc3 Only add -woff 3970 to C[XX]FLAGS when using SGI mipsPro 7.4.4 or later.
Previous mipsPro versions don't give this warning but do warn about "unknown
warning number 3970" if we use this -woff which is even more annoying than
original warning we tried to suppress.

This is a forward port of r45896 which somehow was only applied to 2.8 branch.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-28 11:09:21 +00:00
Vadim Zeitlin
d0204feee6 Compilation fixes for wide char functions under IRIX with mipsPro.
Use correct (XPG5, not XPG4) version of wcsftime().

Bring the wide char functions only declared in std namespace into global one
under IRIX.

Declare vswscanf() ourselves as we just don't seem to get its declaration from
C++ code (only from C99).

Add a cast to fix incorrect putws() signature.

All these fixes apply to IRIX 6.5.18 with mipsPro 7.4.2. It doesn't seem to
add configure checks for most of the above fixes as previous versions of both
the OS and the compiler should be completely extinct by now but we may need to
do it if anybody is still found to use them.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-28 11:09:15 +00:00
Vadim Zeitlin
3e026ad22e Fix for wxStringCheck compilation under IRIX using mipsPro.
IRIX mipsPro 7.4 refuses to instantiate a template with an inline function as
parameter. Work around this by using a function taking a function pointer
instead of using template wxStringCheck with inline wxIs{alpha,alnum,digit}.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-28 11:09:11 +00:00
Vadim Zeitlin
05d676f558 Always declare wxCStrData::As[W]Char() as being inline.
This fixes warnings with IRIX mipsPro and not only mingw32 and probably
doesn't do any harm with the other compilers.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-28 11:09:07 +00:00
Vadim Zeitlin
54d6106853 Rearrange functions order so that they are effectively inlined.
Define wxSizer::Insert(size_t, wxSizerItem *) before it is used so that it
could really be inlined.

This also fixes an IRIX mipsPro compiler warning.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-28 11:09:02 +00:00
Vadim Zeitlin
995d5aa24a Fix compilation with GTK+ 2.4.
Support for ellipsization in GtkTreeView and gtk_window_set_focus_on_map() are
new in 2.6, don't use them with 2.4.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-28 11:08:59 +00:00
Vadim Zeitlin
049c4f6caa Support IRIX version of OpenGL multi sampling constants.
Although OpenGL multi sampling extensions originated under IRIX, it doesn't
seem to use the standard names for the constants used and uses "SGI" suffix
for them instead of "ARB".

Add support for IRIX versions of GLX_SAMPLE_BUFFERS_ARB and GLX_SAMPLES_ARB
and also check if these constants are defined at all to avoid compilation
errors if they are not.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-28 11:08:54 +00:00
Vadim Zeitlin
713a0408bb Fix the STC sources generation script to work with ancient Python.
Don't use True, set and join method of string objects which didn't exist in
prehistoric Python versions (such as 1.5 bundled with IRIX) as we can easily
work around their lack by using 1, list and string module join method instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-28 11:08:50 +00:00
Vadim Zeitlin
a8d4e18d33 No real changes, just remove an unused variable.
This fixes a warning from IRIX mipsPro compiler.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-28 11:08:46 +00:00
Vadim Zeitlin
fec911b8c6 Remove unused NO_SORT constant.
This fixrs an IRIX mipsPro compiler warning.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-28 11:08:42 +00:00