Commit Graph

51300 Commits

Author SHA1 Message Date
Vadim Zeitlin
85a0778e6a Suppress bogus g++ warnings about uninitialized variables.
The variables are always initialized but for some reason (at least the Apple
version of) g++ gives warnings for them.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-21 12:19:04 +00:00
Stefan Csomor
697dce56f1 adding fix for non-precomp header build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-21 11:50:53 +00:00
Stefan Csomor
0b6f851f4a storing current event for dnd support, adding default data-drag image, fixes #12065
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-21 10:14:57 +00:00
Stefan Csomor
4275201ba3 text updated events were not always sent out correctly, fixes #11462
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-21 07:50:12 +00:00
Vadim Zeitlin
412d690e49 Remove references to not existing any more griddemo.rc file.
The file was removed in a recent commit but the bakefile was not updated.

Do it now and rebake the makefiles.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 18:18:41 +00:00
Vadim Zeitlin
cc31b3c6a5 Correct the name of the XPM file containing the icon in xrc sample.
This fixes a compilation error introduced during de-mondrianization of the
samples.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 18:18:36 +00:00
Vadim Zeitlin
2ec2e91e99 Gracefully disconnect clients in wxDDEServer dtor.
Remove the SetConnected(false) call which prevented the connection from
notifying the client about its destruction.

Closes #12164.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 18:18:32 +00:00
Vadim Zeitlin
5276b0a53c Use wxDELETE() and wxDELETEA() when possible.
Use wxDELETE[A]() functions which automatically NULL out their arguments after
deleting them instead of doing it manually.

Closes #9685.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 18:18:23 +00:00
Vadim Zeitlin
9ac34ac915 Quote file names with spaces in wxFileType::ExpandCommand().
Add double quotes around the file name inserted into the command to open the
file by wxFileType::ExpandCommand() if the file name contains any spaces and
if it's not already quoted by the command line itself.

While this doesn't completely fix the problem, it does help with opening the
files with spaces in their names under Windows and shouldn't do any harm under
Unix.

Closes #4607.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 17:43:35 +00:00
Vadim Zeitlin
6218600646 Fix activation handling in generic wxDataViewCtrl renderers.
Handling of activation in the generic implementation of standard renderers was
broken since r62589 which stopped calling their Activate() method. Restore it
by introducing a special WXOnActivate() replacing it (but clearly marked as
private and implementation-only) and calling it instead.

Closes #11460.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 17:43:30 +00:00
Vadim Zeitlin
ed0a9eca57 Extract tags from private headers under wxMSW too.
Added include/wx/msw/private/*.h to the list of files passed to ctags.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 17:43:26 +00:00
Vadim Zeitlin
4d1ea475c8 Add a system option to exit immediately on assert failure.
This option will allow to test for absence of asserts in wxWidgets samples in
the future.

Closes #10697.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 17:43:21 +00:00
Vadim Zeitlin
aa0af8ce54 Document and improve system options definition in the environment.
Document that system options can be defined in the environment.

Replace another character (dash) invalid in environment variable names but
present in some standard system option names with underscore.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 17:43:15 +00:00
Vadim Zeitlin
e95f081682 Add a test for selecting the last item in the tree control sample.
This allows to test whether an item is brought into view by selecting it,
see #11154.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 17:43:11 +00:00
Vadim Zeitlin
e90c93b605 Use wxFont::Bold() in wxGenericTreeCtrl instead of wrongly duplicating it.
Creating a new wxFont from the components of the existing one doesn't always
work because we may not have a valid value for the old font family so attempt
to use it as a family of the new font results in an assert.

Just use wxFont::Bold() instead to avoid the problem. It's much shorter and
obviously correct and doesn't result in asserts.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 17:43:06 +00:00
Vadim Zeitlin
aaaa607018 Use PBM_SETMARQUEE to implement indeterminate mode in wxMSW wxGauge.
The old code which simply used PBM_SETPOS after setting PBS_MARQUEE style
often worked but sometimes apparently didn't, so switch to the officially
sanctioned PBM_SETMARQUEE to implement this.

Also make wxGauge::SetDeterminateMode() and SetIndeterminateMode() methods
private as they are not part of the public class API.

Closes #11357.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 17:43:02 +00:00
Vadim Zeitlin
f074df3446 Don't enable scrollbar if it can't do anything in wxMSW.
Only reenable scrollbar in wxWindow::SetScrollbar() in wxMSW if its range is
large enough to allow scrolling it.

Closes #11373.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 17:42:56 +00:00
Vadim Zeitlin
0033b1dfba Use wxTE_RICH2 for in-place wxGrid text editor control.
This works around a bug with the plain text edit control under MSW which seems
to totally lose its caret when we hide it and show it again for another cell.

This is not a proper fix for the problem, of course, but at least it does
allow to edit wxGrid cells in the meanwhile.

Closes #11681.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 17:42:52 +00:00
Vadim Zeitlin
3cb332c155 Remove unnecessary mondrian.{ico,xpm} files from samples directory.
Standardize on using sample.rc and sample icon in all the samples, it was
confusing that some of them used it and other didn't, without any apparent
logic.

Remove the now unnecessary icon files, including the dialogs sample icon which
seemed to be corrupted (this closes #11146).

Also replace multiple OS/2 resource files with a single one in the sample
directory. The OS/2 projects/makefiles would need to be updated to use them.

Remove dialogs sample icon.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 17:42:33 +00:00
Vadim Zeitlin
2613d67b9f No real changes, just convert a Mac-specific file to UTF-8.
This is needed in order to be able to commit the next change, updating it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 17:41:14 +00:00
Stefan Csomor
6eb1e122cb using proper dylib for darwin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 15:24:01 +00:00
Stefan Csomor
885d927e36 no trailing slash for OSX_CARBON
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 14:53:34 +00:00
Stefan Csomor
8478eff5b4 no trailing slash for OSX_CARBON
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 14:49:40 +00:00
Stefan Csomor
088a36424c no trailing slash for OSX_CARBON
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 14:46:44 +00:00
Vadim Zeitlin
02f35bffeb Ensure that wxFileName::GetTempDir() doesn't return trailing slashes.
Sanitize the value returned by GetTempDir() to ensure that it doesn't have any
trailing path separators. This happened at least under OS X where standard
TMPDIR has a trailing slash and was inconsistent with the behaviour under the
other platforms.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 11:46:49 +00:00
Jaakko Salli
7c2257892c VC6 Fix: Use wxANY_AS() instead of wxAny::As<>()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 07:08:13 +00:00
Francesco Montorsi
8193a0bd2c group all interactive tests together to make it easier to understand what's going on when running the sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-19 12:48:46 +00:00
Francesco Montorsi
e7747eb2e0 Move dir tests from the console sample to DirTestCase
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-19 12:32:57 +00:00
Francesco Montorsi
774ef7e3b7 fix for non-PCH builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-19 12:28:38 +00:00
Francesco Montorsi
d38315df30 Remove identic implementations of wxDir::Exists from platform-specific files and put it in dircmn.cpp (they all used wxDirExists).
Add wxDir::Make() and wxDir::Remove() for coherency with wxDir::Exists() and document them as simple aliases to wxFileName functions, just a bit more readable.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-19 11:07:16 +00:00
Jaakko Salli
8561534085 Added (sanity) checks for the inplace allocation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-19 11:01:22 +00:00
Vadim Zeitlin
d82b0abce2 Work around Doxygen crash due to using @since inside event table.
All versions of doxygen seem to crash when encountering @since inside an event
table description, so don't use it there.

Also fixed a typo and improved wording of wxFileCtrl description slightly.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-19 09:22:39 +00:00
Jaakko Salli
79c60a3ef9 Made wxAny::IsNull() doc string a bit clearer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-18 13:32:12 +00:00
Jaakko Salli
f1156cbb0d Added wxAny::HasSameType()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-18 13:30:47 +00:00
Jaakko Salli
94cd7b004d Use placement new when storing value in wxAnyValueBuffer. This should allow using any data type, regardless whether it is Plain Old Data or copyable or not.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-18 13:18:22 +00:00
Vadim Zeitlin
8544926238 Install headers in ribbon subdirectory.
Add RICHTEXT_HDR to ALL_GUI_HDR variable in files.bkl to ensure that they're
installed as part of "make install".

Closes #12158.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-18 09:05:26 +00:00
Vadim Zeitlin
9655ec028f Allow specifying non default port for wxFTP connections.
Add a wxFTP::Connect() overload taking a port number.

Also specify the default port (21) explicitly if resolving "ftp" service name
failed.

Closes #12145.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-17 22:30:31 +00:00
Vadim Zeitlin
4164cd68d4 Backport fix from bakefile svn for autoconf 2.65.
Use AC_REQUIRE() instead of directly using a macro, the latter doesn't work
with autoconf 2.65.

This is a backport of r1337 from bakefile svn to allow people to use autoconf
2.65 immediately and will become unnecessary when we update to the next
bakefile version.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-17 22:30:27 +00:00
Vadim Zeitlin
ee4f5418ff Don't use excessive quoting with AC_DEFINE_UNQUOTED in WX_CHECK_FUNCS.
This provokes warnings from autoconf 2.65 and seems to be unnecessary even
with the previous versions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-17 22:30:22 +00:00
Václav Slavík
5a969d511f Document that wxTextEntry was added in 2.9.0.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-17 14:39:27 +00:00
Václav Slavík
4c83615f07 Compilation fix for GetAvailableTranslations().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-17 13:04:25 +00:00
Václav Slavík
2ab514cad4 Make the wxArrayString(int) ctor explicit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-17 13:04:21 +00:00
Václav Slavík
5e30622919 Add wxTranslations::GetAvailableTranslations().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-16 14:09:32 +00:00
Jaakko Salli
6589f1a49a Fix compilation when wxAny was disabled (fixes #12148)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-15 13:34:01 +00:00
Jaakko Salli
109e2ca434 Added wxIsPod<>. Use it in wxAny instead of wxIsMovable<>.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-14 15:12:37 +00:00
Michael Wetherell
97b8472b54 Corrections to the previous commmit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-14 08:58:23 +00:00
Michael Wetherell
e7644ca782 Add --disable-gui and --disable-all-features builds to the ravnsgaard buildbot.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-14 06:00:06 +00:00
Francesco Montorsi
69fc85873d moved non-interactive tests for wxDynamicLibrary, wxGet/SetEnv, wxTempFile, wxCopyFile to appropriate CppUnit test suites;
removed wxFile and wxTextFile tests (complete testsuites already exist for them)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-13 14:30:55 +00:00
Jaakko Salli
16a97d7e9a Use wxComboCtrl::SetTextCtrlStyle() in the combo sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-13 10:00:14 +00:00
Jaakko Salli
1ac5cfc7c9 Added wxComboCtrl::SetTextCtrlStyle()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-13 09:59:32 +00:00