Commit Graph

54171 Commits

Author SHA1 Message Date
Vadim Zeitlin
e2623304af Correct the misleading example of using id ranges in XRC documentation.
"range[end]" is the last id in the range, inclusive, not the first id after it
so any loops iterating over all ids in the range should cover it as well.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-04 17:41:20 +00:00
Vadim Zeitlin
d265ec6b0e Simplify wxIdRange code by using new XRCID_Assign() function.
Only traverse the id hash once in XRCID_Assign() instead of using
RemoveXRCIDEntry() to delete the old entry (which usually doesn't exist so
this traversed the entire hash) followed by XRCID_Lookup() to create a new one.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-04 17:40:49 +00:00
Vadim Zeitlin
6bb81c8e1a Fix choice of tree item icon for the selected state in wxMSW.
The logic for selecting the item icon was broken when selected image was
specified as it was not taken into account as fallback for selected expanded
state so selected icon was used only for collapsed items.

Fix this by using the selected icon if it is specified and selected expanded
one is not.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-04 12:02:07 +00:00
Vadim Zeitlin
4878fbb880 Make wxQsort() definition exactly the same as declaration.
Remove the extra "const" in the first parameter.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-04 09:09:54 +00:00
Robin Dunn
884a3e9d37 Add wxAnyButton so the shared class hierarchy of wxButton and wxToggleButton is accurate.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-04 03:38:09 +00:00
Robin Dunn
0e8dff1b3c Fix missing and broken interface items for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-04 01:33:37 +00:00
Jouk Jansen
823093e4a4 Upadte setup for OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-03 09:38:44 +00:00
Robin Dunn
6db0bd9256 Fix missing or broken interface items for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-02 23:42:26 +00:00
Robin Dunn
7106fc4674 Fix missing or broken interface items for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-02 20:22:29 +00:00
Vadim Zeitlin
c276efd946 Improvements to German translation.
- Changed phrasing of some texts
- Replaced words by more commonly used ones
- Translated untranslated words and sentences
- Used clear translation for vague expressions
- Used common translation for multiply used terms like "save"

Patch from Sebastian Walderich.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-02 19:08:54 +00:00
Vadim Zeitlin
8000083c51 Orthographical fixes in German translation.
- Corrected misspelled words
- Corrected upper and lower case words
- Corrected some typos, like "HTLM" and "DDMEL"
- Corrected some grammar errors

Patch from Sebastian Walderich.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-02 19:08:51 +00:00
Vadim Zeitlin
ce316f2890 Hyphen fixes in German translation.
- Added missing hyphens to concatenate german words
- Concatenated wrongly separated word

Patch from Sebastian Walderich.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-02 19:08:49 +00:00
Vadim Zeitlin
970b8299e0 Punctuation fixes in German translation.
- Fixed some menu entries which where using '$' instead of '&'
- Added missing punctuation marks to equal the original text
- Removed unneeded and double characters

Patch from Sebastian Walderich.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-02 19:08:46 +00:00
Vadim Zeitlin
666ce81a57 Corrections to spaces in German translation.
Patch from Sebastian Walderich.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-02 19:08:43 +00:00
Vadim Zeitlin
beee38cb41 Explicitly include X11/Xlib.h to fix AIX build.
At least under AIX X11/Xlib.h is not included from X11/Xutil.h so include it
explicitly ourselves. It should do no harm on the other systems.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-01 12:04:27 +00:00
Vadim Zeitlin
3c3f29b5f1 Define _LINUX_SOURCE_COMPAT for AIX build.
This takes care of the conflict between GTK+ headers and #define of func_data
in AIX sys/timer.h.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-01 12:04:24 +00:00
Vadim Zeitlin
f81ccc1148 Make wxTreeListEvent dynamically creatable.
This is unfortunately required by wxEvent::Clone() support unit test so
provide the default ctor in this class even though it doesn't make any sense
in normal use.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-31 19:41:06 +00:00
Vadim Zeitlin
824216af78 Correct wxFileName::SetPath() documentation.
It wrongly claimed that this function affected the full path, i.e. including
name and extension, which was simply wrong.

Closes #13612.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-31 19:33:43 +00:00
Paul Cornett
e503ef07d5 fix creation of bitmap from image with requested depth 32
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-31 16:09:47 +00:00
Vadim Zeitlin
898c3e88e9 Suppress harmless unused variable warnings in wxSocket under AIX.
The size of the buffer is not used with AIX conventions for gethostbyaddr_r()
and getservbyname_r() functions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-31 14:24:54 +00:00
Vadim Zeitlin
6677f122a1 Fix compilation of wxGethostbyname_r() and wxGethostbyaddr_r() under AIX.
gethostbyname_r() and gethostbyaddr_r() functions return int, not hostent*,
under AIX so assign their return value to the error indicator.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-31 14:24:51 +00:00
Vadim Zeitlin
5fe43b6017 Compilation fix for AIX: fix the name of wxGetservBuf ctor.
The ctor was wrongly called so wxGetservBuf class couldn't be compiled,
breaking compilation under AIX and any other systems with 4 argument
getservbyname_r().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-31 14:24:49 +00:00
Julian Smart
4f51b983c2 Fixed #13535: wxRichTextCtrl: Incorrectly documented or named functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-31 12:15:05 +00:00
Dimitri Schoolwerth
275c64304e Fixed dropdown height of wxChoice and wxComboBox controls.
When using comctl32.dll versions prior to 6.0 (e.g. with Win2k or no manifest file) the dropdown height of a wxChoice and wxComboBox would show all but one item and a vertical scrollbar was always visible. Fixed by reintroducing code that adds 1 to the total number of items. The code got dropped in r60553, added a comment to it in the hope that it will not be lost again.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-31 11:30:45 +00:00
Vadim Zeitlin
30d7a99071 Mention setting up file as default download on SF in release docs.
The newly uploaded files must be configured to be default downloads as
otherwise SF continues to propose the old files by default.

See #13347.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-31 10:49:52 +00:00
Vadim Zeitlin
97b18a77f4 Compilation fix for wxUSE_GRAPHICS_CONTEXT && !WX_PRECOMP.
Include wx/dcclient.h to get wxPaintDC declaration necessary in this case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-31 10:42:42 +00:00
Vadim Zeitlin
480ce50f75 Correct FSF postal address in the licence text.
Closes #13411.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-31 10:40:52 +00:00
Vadim Zeitlin
b76f9c93fc Remove duplicated and apparently unnecessary licence file.
This file was exactly the same as docs/licence.txt so keep just one of them.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-31 10:40:50 +00:00
Paul Cornett
4ccb6db090 add gdk_window_get_height/width
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-31 05:42:10 +00:00
Paul Cornett
c968ba805b simplify Refresh(), ancestors of a mapped window have to be mapped also, no point in checking
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-31 05:36:51 +00:00
Paul Cornett
6d50fadaea in DoSetSize, only call GetPosition if necessary
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-31 05:22:59 +00:00
Paul Cornett
cb0c51acf8 correct callback function signature
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-31 05:15:04 +00:00
Paul Cornett
f0b87ef91c move class function out of extern "C" block
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-31 05:14:13 +00:00
Paul Cornett
98185146b3 simplify code calling gtk_window_set_urgency_hint
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-31 04:35:56 +00:00
Vadim Zeitlin
6460ce5afe Avoid too many sash position changed events when splitter is resized.
We could call SetSashPositionAndNotify() twice in a row which was probably
unexpected and possibly wasteful, if the user code did anything non trivial in
response to this event.

Just call it once after we're certain which sash position do we want to set.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-30 19:48:50 +00:00
Vadim Zeitlin
1b5dfa53aa Fix the check for second window becoming too small in wxSplitterWindow.
There was a strange check for the second pane size in OnSize() which hardcoded
5 pixels as minimal pane size in the check and 40 pixels as the minimal size
to set. This resulted in strange behaviour when the second pane size would
decrease to 6 pixels smoothly and then jump back to 40 pixels when the
splitter window was resized and also was ugly at the code level.

Get rid of this code and simply call AdjustSashPosition() to ensure that the
sash position remains valid as the splitter is resized.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-30 19:48:48 +00:00
Vadim Zeitlin
853f4764c0 Make the initial sash position work in splitter sample.
The initial splitter size must be set correctly when using gravity with
wxSplitterWindow as otherwise the sash would jump on first resize -- which was
exactly what happened in the splitter sample.

Add a SetSize() call to the sample with the comment explaining why is it
needed and also actually make it stick as the cached last size was not updated
before the splitter was split before.

Closes #9821.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-30 19:48:44 +00:00
Vadim Zeitlin
c79d40fe1e Don't apply gravity before requested sash position was set in wxSplitterWindow.
Gravity should take effect only after the originally requested sash position
is set as otherwise it's not really taken into account.

Closes #13508.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-30 19:48:40 +00:00
Vadim Zeitlin
31174267f8 Remove wxSplitterWindow::m_checkRequestedSashPosition.
This variable seemed to be redundant with m_requestedSashPosition being set to
INT_MAX so harmonise the code to always check for the latter and get rid of
the former.

There should be no observable changes in behaviour.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-30 19:48:38 +00:00
Vadim Zeitlin
8219f7f982 No changes, just remove wxSplitterWindow::{Set,Get}NeedUpdating().
GetNeedUpdating() was never used at all while SetNeedUpdating() was used only
once while m_needUpdating variable was being changed directly in other places
making the code difficult to follow.

Just use the member variable directly and remove the accessors.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-30 19:48:34 +00:00
Julian Smart
d3f6b1b575 Fixed problem with the size of paragraphs not needing layout not being taken into account when calculating overall box size.
Should fix the problem with lines becoming insensitive to mouse clicks after adding a couple of shorter lines.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-30 17:28:03 +00:00
Vadim Zeitlin
3ac17397c5 Perform wxAuiToolBar idle updates from UpdateWindowUI(), not OnIdle().
No real changes, just optimize the idle updates by doing it from (less often
called) UpdateWindowUI() instead of EVT_IDLE handler.

Closes #10075.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-30 16:51:10 +00:00
Vadim Zeitlin
f5fccd52d4 Generate right click events for all kinds of items in wxAuiToolBar.
Don't generate wxEVT_COMMAND_AUITOOLBAR_RIGHT_CLICK for normal items only,
they can be useful for other ones too.

Note that this had been previously applied to 2.8 branch as r66926 but somehow
wasn't applied to the trunk.

Closes #10079.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-30 16:44:24 +00:00
Vadim Zeitlin
b2447e8408 Fix splitting message into title in body in MSW wxProgressDialog.
If the message doesn't contain any new lines, it should be used as the body,
not the title as having title without body doesn't make sense and looks
strange.

Closes #13441.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-30 16:41:34 +00:00
Vadim Zeitlin
c22ce32199 Don't replace non default wxMessageDialog labels with default translations.
The code translating the button labels of wxMessageBox to the application
language was overeager and replaced even the custom labels with the
translations of the default ones.

This shouldn't be done, of course, so simply check that no custom labels had
been set before translating.

See #10962.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-30 16:22:30 +00:00
Vadim Zeitlin
9a29fe70bc Change variables naming convention in wxAUI code.
Use the standard wxWidgets camelCase convention instead of the
old_one_using_underscores for all the private variables.

Closes #13476.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-30 14:20:03 +00:00
Vadim Zeitlin
ea10101a15 Link tests with webview library only if it is actually available.
This allows the tests to build again even on the machines without the
prerequisites for building wxWebView.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-30 14:19:59 +00:00
Vadim Zeitlin
74e0e33a85 Remove apparently unnecessary wxAuiMDIClientWindow dtor.
This dtor doesn't seem to do anything useful as the base class dtor already
destroys all window children anyhow and removing it is reported to fix some
crashes in wxAUI (which is surprising and probably hides some other bug...).

Closes #13547.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-30 14:19:55 +00:00
Vadim Zeitlin
05f4dfa726 Add wx/datetimectrl.h to the wxAdv files list.
Ensure that this header is installed by "make install" as it ought to.

Close #13529.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-30 14:19:51 +00:00
Vadim Zeitlin
7e132bdd47 Fix assert in generic wxListCtrl icon view when using images.
Don't assume that the item image is a valid index in m_small_image_list as we
may be in icon view which doesn't use small images at all.

For now restrict this code to the report view mode as apparently the cached
line height is not supposed to be used in other modes even though it's not
clear whether this is really the case and so, perhaps, this code should also
be used when in small icons view mode.

Closes #13604.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-30 14:19:47 +00:00