Commit Graph

1433 Commits

Author SHA1 Message Date
Francesco Montorsi
ffc78010a9 fix couple of typos
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-26 11:43:13 +00:00
Julian Smart
826c4761df Documentation change for new wxRTC function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-26 09:15:03 +00:00
Václav Slavík
f2485d4fb5 Document that wxRearrange* controls exist since 2.9.0.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-26 08:01:14 +00:00
Vadim Zeitlin
4c9ccee713 Undo/replace the workaround for Doxygen crash from r64630.
According to

http://sourceforge.net/mailarchive/forum.php?thread_name=5040710F-9134-4C21-9B08-EA985136F53C%40gmail.com&forum_name=doxygen-users

simply adding an empty line after @since should be enough to fix the problem
and this does seem to work in practice so restore @since removed by r64630.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-22 09:50:40 +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
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
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
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
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
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
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
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
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
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
Jaakko Salli
863d1ce7c2 Documented pythonic iterators
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-13 08:46:30 +00:00
Jaakko Salli
8d2c70414c Added wxPropertyGrid::DedicateKey(), which prevents specific key presses from being eaten by editor controls. This is useful for customizing keyboard navigation. Also added utility function wxPGFindInVector<>(), which is used in the new code, and also in some other places.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-12 09:30:57 +00:00
Jaakko Salli
725c4ff62a wxAny CheckType() member functions are now const
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-09 20:35:26 +00:00
Francesco Montorsi
a5664fd6ef Increase interoperability between wxPoint and wxRealPoint introducing constructors which convert between the two classes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-09 18:03:27 +00:00
Francesco Montorsi
a0e9a5dfde Implement wx-prefixed macros versions of DECLARE_EVENT_TABLE, BEGIN_EVENT_TABLE* and END_EVENT_TABLE macros.
Implement compatibility aliases for non-prefixed macro names.
Require a final semicolon where possible.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-09 14:28:08 +00:00
Francesco Montorsi
b19b28c8fc Implement wx-prefixed macros versions of DECLARE/IMPLEMENT*CLASS macros.
Implement compatibility aliases for non-prefixed macro names.
Require a final semicolon where possible.
Correct a recurring error in the docs: IMPLEMENT/DECLARE_CLASS are alias to the DYNAMIC macros, not to the ABSTRACT macros.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-09 13:55:48 +00:00
Francesco Montorsi
e4431849b4 Implement wx-prefixed macros versions of DECLARE/IMPLEMENT_APP_* macros.
Implement compatibility aliases for non-prefixed macro names.
Require a final semicolon where possible.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-09 13:23:13 +00:00
Francesco Montorsi
30b10ed1ac get rid of wxMimeTypesManager::ReadMailcap and wxMimeTypesManager::ReadMimeTypes from old include files and from the docs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-06 11:37:10 +00:00
Francesco Montorsi
ca2c1e0d50 document wxTransparentColour global instance
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-06 11:35:11 +00:00
Francesco Montorsi
12194090d2 more readable argument names for wxDC::DrawArc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-06 11:34:33 +00:00
Vadim Zeitlin
f5a64bbab3 Correct EVT_LIST_BEGIN_LABEL_EDIT macro name in the documentation.
The "LIST" part was missing.

Closes #12124.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-04 22:04:23 +00:00
Francesco Montorsi
df693ed65c Make wxConfig ctor docs more readable.
Add a simple stub for wxRegConfig class so that Doxygen highlights it just like it does with wxFileConfig.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-02 13:53:12 +00:00
Vadim Zeitlin
7e22c2bd02 Use C locale for numbers in wx(File)Config.
Using the current locale decimal point in config files results in problems
when moving the files to another machine or even using a different locale on
the same one, so don't do it.

Always write the numbers using C locale and try to read them in C locale too
first, but also try the current locale if we failed for backwards
compatibility and to be tolerant with users who edit their config files by
hand.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-31 11:55:53 +00:00
Vadim Zeitlin
951201d81c Add wxString::FromDouble() and FromCDouble().
wxString::FromCDouble() is needed inside wxWidgets itself to format numbers
independently of the current locale. FromDouble() was added for symmetry with
ToDouble/ToCDouble() functions.

Use std::locale for the implementation if available and manual wxLocale-based
fallback otherwise.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-31 11:55:48 +00:00
Francesco Montorsi
7cfac8c83a Add a simple example to make it easier to get started (by copy&paste).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-30 23:28:51 +00:00
Francesco Montorsi
ed0dd9c1f0 implement * and / operators for wxPoint, not only wxSize.
Add to their documentation a note about the fact that the real operators are not class members but rather global functions.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-30 23:28:14 +00:00
Vadim Zeitlin
f68e16c5fc Add <span> tag and limited support for CSS styles to wxHTML.
Parse "style" attributes of the HTML tags and honour those of them that can be
mapped to the HTML 3 attributes.

Also add a handler for <span> tag.

Closes #10631.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-30 23:12:25 +00:00
Vadim Zeitlin
6305f044a1 Add "filter changed" event to wxFileCtrl.
Generate an event when the selection in the filter combobox of wxFileCtrl
changes.

Closes #12099.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-29 10:35:47 +00:00
Vadim Zeitlin
384859f8c6 Add wxConfig::Read(float *) overload.
This uses Read(double *) but casts the result to float after checking that it
is in the correct range.

Closes #12100.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-29 10:35:38 +00:00
Francesco Montorsi
9d90f08bed Add examples of usage for easy copy-and-paste.
Minor corrections and markup changes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-28 20:31:45 +00:00
Vadim Zeitlin
7f4f5e8c24 Correct wxEVT_AUXn_XXX event types names.
They had a wrong "MOUSE" part in them while "MOUSE" is only used for the event
table macros but not the event types themselves for some reason.

Closes #12095.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-27 17:07:35 +00:00
Francesco Montorsi
c631ad5452 add docs for the global wxStringTokenize() function which were lost during latex=>doxygen conversion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-26 23:05:04 +00:00
Vadim Zeitlin
d25a864d0a Added wxMessageQueue::Clear().
This method can be called from the posting thread to remove any still pending
requests if they became unnecessary.

Closes #10905.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-22 16:14:16 +00:00
Vadim Zeitlin
ea58481248 Document wxDocManager::CloseDocument().
CloseDocuments() was documented but not CloseDocument(), this probably wasn't
intentional.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-21 15:25:43 +00:00
Vadim Zeitlin
efb0918296 Minor corrections to wxFont size-changing methods.
Closes #11959.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-21 13:17:36 +00:00
Vadim Zeitlin
417b8fcc49 Use ListView_CancelEditLabel() to implement wxListCtrl::EndEditLabel().
Windows XP and later finally added a special message to cancel label editing,
use it if available.

Also improve the documentation of this method.

See #7663.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-21 13:17:25 +00:00
Vadim Zeitlin
747eb0f686 Fix wxListCtrl::EndEditLabel() which simply didn't work.
Also document it (even though it's wxMSW-only for now) and add a test for it
in the sample.

Closes #7663.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-20 22:04:03 +00:00
Vadim Zeitlin
d9c83ba829 Document that wxWindow::FindWindowByXXX() functions may return NULL.
This seems obvious but apparently isn't completely so to everybody.

Closes #12074.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-19 21:03:49 +00:00
Vadim Zeitlin
d00167e101 Document wxHTTP::SetPostBuffer().
Closes #12040.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-19 12:36:36 +00:00
Vadim Zeitlin
5ba5f32918 Document wxHTTP::Connect(wxSockAddress) overload.
See #12040.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-19 12:36:28 +00:00
Robert Roebling
f4fcd64832 Part II of: Add GetChoice() and GetChoices() getters to all choice renderers and actually mention it in the docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-16 15:29:35 +00:00
Vadim Zeitlin
e91ce12d73 Mention that stock bitmaps are a wxGTK-only feature for now.
Apparently people expect to see stock bitmaps under MSW too, make it clear
that they won't be used there.

See #12051.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-16 12:31:57 +00:00