Commit Graph

56730 Commits

Author SHA1 Message Date
Vadim Zeitlin
ce7fe42e84 Provide shorter synonyms for wxEVT_XXX constants.
Use the same short names as are used by the event table macros for the event
type constants themselves. This makes them much more comfortable to use, e.g.
Bind(wxEVT_BUTTON) compared to Bind(wxEVT_COMMAND_BUTTON_CLICKED).

The old long names are still kept for backwards compatibility and shouldn't be
removed as it doesn't really cost anything to continue providing them, but all
new event types should only use the short versions.

Closes #10661.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-25 10:11:03 +00:00
Vadim Zeitlin
3f7564f229 Small fixes after wxHtmlTagHandler::GetParser() addition.
Amend the changes of r73839:

- Don't use covariant return type for wxHtmlWinTagHandler::GetParser() as
  VC6, which we still support, doesn't like it. Besides, this seems
  unnecessary.

- Don't make GetParser() virtual at all as this doesn't appear to be necessary
  neither.

- Add "@since 2.9.5" to the documentation of the new method.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-25 09:35:38 +00:00
Vadim Zeitlin
d929eddf3a Fix showing back hidden columns and rows in wxGrid.
While we don't support auto-sizing of the hidden columns and rows, we need to
still show them back when SetColSize() or SetRowSize() is called with -1
(a.k.a. wxGRID_AUTOSIZE) argument.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-24 09:01:57 +00:00
Robin Dunn
a75faeac69 Add documentation for some additional cell types so they can be seen in Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-24 02:40:21 +00:00
Robin Dunn
c0d87687f3 Add ctor for wxHtmlWinTagHandler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-24 02:40:11 +00:00
Robin Dunn
047ea2e26a Add GetParser methods for the tag handlers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-24 02:40:02 +00:00
Vadim Zeitlin
75a438f9ac Really fix hit testing in the generic wxDataViewToggleRenderer.
The changes of r73835 fixed hit testing in horizontal direction but broke it
in the vertical one as the computed checkbox rectangle was not relative to the
cell rectangle as it should have been. Do fix this now.

See #15144.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-23 11:56:55 +00:00
Vadim Zeitlin
0623b0f001 Add wxSocketBase::GetSocket().
Provide direct access to the underlying socket descriptor.

Closes #8829.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-22 10:45:30 +00:00
Vadim Zeitlin
98a177f45a Add test for correct short/long file names in wxDir.
Verify that enumerating the files using the pattern *.foo doesn't match
*.foo.bar files, as it used to do under MSW.

See #3432.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-22 00:32:55 +00:00
Vadim Zeitlin
9483e1ac77 Fix hit testing in generic wxDataViewToggleRenderer.
Handle clicks on the checkboxes in generic wxDataViewCtrl correctly by taking
into account that the checkbox rectangle is centred inside the total cell
rectangle.

Closes #15144.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-21 17:39:43 +00:00
Vadim Zeitlin
732a176cf3 Reset sorting column in generic wxDataViewCtrl properly.
We could keep using the column previously used for sorting even after
UnsetAsSortKey() was called on it. Ensure that this doesn't happen by
resetting the owner wxDataViewCtrl sort column index too.

Closes #15160.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-21 17:18:44 +00:00
Vadim Zeitlin
62a58fbef5 Add wxTextEntryDialog::SetMaxLength().
Allow restricting the maximal number of characters that can be entered in
wxTextEntryDialog.

Closes #15158.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-20 22:13:33 +00:00
Vadim Zeitlin
b89e528d70 Standardize on using "Added" instead of "Add" in the change log.
As all the other verbs were used in the infinitive and not past tense, do the
same thing for this one too, especially as we already had a mix of both forms.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-20 22:13:30 +00:00
Vadim Zeitlin
7a8bd13dae EVT_TREE_STATE_IMAGE_CLICK is not Windows-only any more.
State images in wxTreeCtrl are now supported under all platforms.

See #9591.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-19 10:47:16 +00:00
Vadim Zeitlin
f6b826564e Remove "ED" suffix from EVT_DATAVIEW_COLUMN_HEADER_RIGHT_CLICKED.
The naming of this macro was inconsistent with other similar macros in
wxListCtrl and wxTreeCtrl and even EVT_DATAVIEW_COLUMN_HEADER_CLICK in
wxDataViewCtrl itself. Moreover, it was even documented under the wrong name
without "ED".

Clear this mess by removing the "ED" suffix while still keeping the old macro
name for compatibility.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-17 11:45:07 +00:00
Vadim Zeitlin
47e175a24f Document lack of wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_CLICK under OS X.
The native versions don't contain any code to send it currently.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-17 11:36:38 +00:00
Vadim Zeitlin
3c9f5d644b Fix wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_CLICK name in the documentation.
Unlike the corresponding event table macro, it doesn't have "ED" suffix.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-17 11:31:50 +00:00
Robin Dunn
060298dc5c Add missing interface items for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-17 02:50:32 +00:00
Vadim Zeitlin
4c20f3d26b Document that wxPoint(wxRealPoint) ctor truncates, not rounds.
Also give an example showing how to do rounding instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-16 19:44:08 +00:00
Robin Dunn
07aaf32633 Ensure there is valid context for DrawRectangle
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-12 23:45:15 +00:00
Vadim Zeitlin
e3b507e93e Check that focused window is non-NULL before using it in wxComboCtrl.
wxWindow::FindFocus() may return NULL, don't crash by attempting to
dereference the pointer returned by it.

Closes #15146.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-11 16:54:41 +00:00
Vadim Zeitlin
5ae1a66970 Add missing t_str() call to fix wxUSE_STL build after r73792.
Don't rely on implicit conversion from wxString to wxChar* which is not
available in all builds.

Closes #15145.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-11 16:54:36 +00:00
Robin Dunn
9ad2035a4f also check for the SDK in subtrees used by newer XCodes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-10 23:06:21 +00:00
Vadim Zeitlin
2d3636405a Added chainable wxWizardPageSimple::Chain() overload.
Add the simplest and most fool proof of chaining the pages in static wizards:
just chain several calls to the new, non-static, wxWizardPageSimple::Chain()
overload.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-10 12:12:57 +00:00
Robin Dunn
4381c90d1f Cut is documented in wxTextEntry now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-10 00:51:50 +00:00
Robin Dunn
70e8fd3455 Add missing doc for Cut()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-10 00:01:52 +00:00
Stefan Csomor
49f7bb4f7a removing codewarrior support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-09 06:52:03 +00:00
Vadim Zeitlin
7d8741ed2d Use API_VERSION_NUMBER for debug help API version check.
This symbol is not documented but seems to be defined in all the existing
versions of imagehlp.h, so use it instead of relying on a hack with checkng
whether DBHLPAPI symbol is defined.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-08 14:15:35 +00:00
Vadim Zeitlin
252e3b2c29 Support Unicode module names in wxDynamicLibrary::MSWGetModuleHandle().
The module names are not necessarily ASCII strings, so use wxString instead of
"char*" and W-version of GetModuleHandle() if appropriate.

See #15138.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-08 14:15:31 +00:00
Vadim Zeitlin
5b45240914 Remove rightarr.cur which doesn't exist any more from files list.
This should have been part of r73491, see #14991.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-08 10:03:55 +00:00
Vadim Zeitlin
4daceaacbd Check that files returned from wxDir::FindXXX() match the filter.
Native Windows functions used by wxDir check the filter against both the short
and the long name resulting in unexpected results, e.g. searching for
"foo.baz" would find "foo.bazaar".

Fix this by explicitly rechecking that we have a valid match ourselves.

Closes #3432.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-08 10:03:48 +00:00
Vadim Zeitlin
6f58f3d7e0 Allow to customize wxGrid column auto-sizing.
By default the columns are auto-sized to fit just their label, which is fast
but not very user-friendly. Allow customizing this behaviour by handling the
(new) wxEVT_GRID_COL_AUTO_SIZE event.

Closes #15077.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-05 21:11:59 +00:00
Vadim Zeitlin
8a47731406 Use LF eol-style svn property for all Unix-only files.
At least with some of them (e.g. tiffconf.h) using native EOLs under Windows
confuses MinGW/MSYS and results in build failures. As all these files are only
used under Unix or in Unix-like environments, use Unix EOLs for them
everywhere.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-05 20:11:34 +00:00
Vadim Zeitlin
a4a38f7676 Basque translations update from Xabier Aramendi.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-05 20:02:36 +00:00
Julian Smart
5fe7fce492 Don't reset URL if applying character style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-05 15:54:49 +00:00
Robin Dunn
cab16e6c94 /dev/null may not exist, be smarter about it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-05 04:01:27 +00:00
Václav Slavík
3c4845b418 Fix spurious errors about removing nonexistent files in wxrc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-04 16:15:13 +00:00
Vadim Zeitlin
7ed5247448 Document wxTextEntryDialog::SetTextValidator().
These methods exist since r15925 but were never documented.

See #5420.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-04 00:11:03 +00:00
Vadim Zeitlin
42fe16e58b Fix wxTextEntryDialog::GetValue() when using SetTextValidator().
Associating a validator with the text control in wxTextEntryDialog resulted in
GetValue() always returning an empty string which was completely unexpected.

Fix this by setting the value string manually to avoid interfering with any
possibly used validators.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-04 00:11:00 +00:00
Václav Slavík
45c363c5eb Use the same wxDEBUG_LEVEL settings for Xcode projects as elsewhere.
Use the same debug flag default settings in the build/osx Xcode projects
as are used by all other makefiles and projects - that is,
wxDEBUG_LEVEL=1.  This is done automatically by the headers, no need to
define any extra symbols when building.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-03 18:13:30 +00:00
Robin Dunn
8da84e2422 Add wxRect::SetPosition
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-03 02:08:39 +00:00
Vadim Zeitlin
2b76114b61 Don't use GetStandardCmdLineOptions() under non-Unix platforms.
The GTK+ standard options are only available under Unix.

Closes #15131.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-01 23:59:37 +00:00
Julian Smart
6a63bdc860 Corrected code that re-encodes the book title.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-01 19:38:54 +00:00
Vadim Zeitlin
f75b1bd31c Make wxToolBar styles consistent and add wxTB_DEFAULT_STYLE.
Don't include wxBORDER_NONE in neither wxToolBar ctor and Create() nor
wxFrame::CreateToolBar() flags parameter, override GetDefaultBorder() in
wxToolBar itself instead to use the border style appropriate for the current
platform by default. This has the same effect -- the default border style is
used unless another one is explicitly specified -- but is more clear and
consistent.

Also add wxTB_DEFAULT_STYLE for consistency with the other classes.

Closes #15037.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-03-31 01:12:27 +00:00
Vadim Zeitlin
00a399c062 Remove wxTextCtrl::OnEnabled() hack from wxGTK.
Don't change the background colour when the control is being enabled or
disabled, it doesn't seem necessary and it's unclear why was this added by
r10179 in the first place. It does result in problems however as it could
somehow make the selection of wxTextCtrl invisible when it lost focus and so
fixes a serious usability problem which happened to all wxTextCtrls for which
a wxEVT_UPDATE_UI handler using wxUpdateUIEvent::Enable() was defined.

Closes #14898.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-03-31 01:12:21 +00:00
Vadim Zeitlin
80ceadc165 Explicitly trigger wxNotebook layout in wxMSW to ensure it is correct.
Due to an apparent bug in the native control implementation, space could be
reserved for the second row of tabs even when the notebook was big enough to
need it. Sending it an extra WM_SIZE seems to be enough to fix this.

Closes #1792.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-03-31 01:12:15 +00:00
Vadim Zeitlin
6b33db8f56 Added wxSearchCtrl to list of currently non-native wxGTK controls.
It could be implemented using the native GtkSearchEntry in GTK+ 3.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-03-31 01:12:12 +00:00
Vadim Zeitlin
8526afcb2c Fix the style value in wxWizard::Create() documentation.
Somehow the raw value was used instead of the symbolic constant.

Closes #15130.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-03-31 01:12:08 +00:00
Vadim Zeitlin
ea3883dfbe Fix the header to be included in wxStringTokenizer documentation.
See #15130.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-03-31 01:12:04 +00:00
Vadim Zeitlin
19058c7670 Document wxDateTime arithmetic operators.
wxDateTime::operator+() and operator-() were not documented, do it now.

Also fix the return value of wxDateTime::Add().

See #15130.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-03-31 01:12:00 +00:00