Commit Graph

58711 Commits

Author SHA1 Message Date
Vadim Zeitlin
9a368ea1cc Compilation fix for wxOSX/Cocoa with wxOSX_USE_NATIVE_TOOLBAR==0.
Don't use m_macToolbar when not using the native toolbar.

Do compile GetToolBarFontEncoding() which is used in any case.

Closes #15629.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-09 22:08:48 +00:00
Vadim Zeitlin
0e4f926b18 Fix positioning of radio buttons inside wxOSX radio boxes in some cases.
If the previous radio box size was too small (notably (0,0) as it happened
during AUI relayout), the buttons were positioned without taking the box
margins into account, resulting in visually broken display.

Recompute the full size after setting the new size but before positioning the
buttons in wxRadioBox::DoSetSize() to avoid this.

Closes #14087.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-09 18:46:50 +00:00
Vadim Zeitlin
27d1d8060d Clarify the current OSXIsGUIApplication() status in comments.
Mention that it doesn't work yet in 3.0 branch.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-09 13:37:47 +00:00
Vadim Zeitlin
ba58db15e8 Fix format specifiers used for event logging in the listctrl sample.
Don't use "%ld" for int argument (this is harmless but unnecessary) and cast
wxUIntPtr to long before using it with "%ld" as otherwise its size is greater
than that of long in Win64 builds.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-09 13:31:16 +00:00
Stefan Csomor
29f73fbd10 preparing fix for non-bundled osx apps, see #15613 with fix on trunk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-09 07:27:06 +00:00
Václav Slavík
f7abc9c746 Show keyboard focus in generic wxDVC even with single editable column.
Previously, keyboard focus indicator was only shown if there were
multiple editable columns. This was confusing to the user in
applications where the number of editable columns changes: somethings
focus would work, sometimes not. (In reality, it worked in both cases,
but wasn't visually indicated.)

Just always show the indicator if there are any editable columns. Notice
that the indicator is only painted after the user pressed left or right
arrows, thus indicating interest in keyboard focus. Without that, only
the regular indicator is shown (this is the same as before this commit).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-08 15:24:46 +00:00
Vadim Zeitlin
5c135f9aca Set event object for wxEVT_DATAVIEW_SELECTION_CHANGED events in wxGTK.
The event object was always NULL for these events before as we didn't set it
at all.

Closes #13478.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-07 12:44:29 +00:00
Vadim Zeitlin
5fdb113cde Update wxListEvent::GetData() documentation too.
It returns wxUIntPtr and not long since r75000, see #15578.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-06 23:35:32 +00:00
Vadim Zeitlin
7f0b8fe0db Fix behaviour of wxComboBox using ID=1000 in wxMSW.
If a wxComboBox was created with ID=1000, clicking in its drop down didn't
work.

It turns out that the native combobox control always creates its dropdown
listbox with the ID of 1000 and that when we were getting LBN_SELCHANGE from
it we mishandled this message because our code mistakenly believed that all
messages from the ID of the control itself were, in fact, coming from this
control, which wasn't the case here.

Fix this by adding a special check for this case in wxComboBox. Also
virtualize the dynamic cast which was done in wxWindow::FindItem() as this
makes the code simpler and allows to get rid of __WXUNIVERSAL__ #ifdef as
well.

Closes #15647.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-06 16:59:41 +00:00
Vadim Zeitlin
462d81dda4 Correct check for animating non-visible windows added in r75130.
Check whether the parent is not shown instead of checking the window itself
because the window is never shown when we're in process of showing it. We need
to avoid animations in the case when it still won't be shown even after
showing it, and this is achieved by checking its parent visibility.

Closes #15643.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-05 17:00:56 +00:00
Vadim Zeitlin
b6d00b3b15 Don't use animations when showing non-visible windows.
This is useless anyhow but also results in artefacts when the window becomes
visible later.

Closes #15643.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-05 14:39:13 +00:00
Vadim Zeitlin
bdbf30f8d0 Reduce the extra space added to wxMSW wxStaticText to just 1 pixel.
This seems to be still enough to align the static text label and the text
control contents when they are positioned next to each other but reduces the
amount of "lost" space when they are positioned under each other.

Closes #15637.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-05 13:39:58 +00:00
Vadim Zeitlin
991e4a9c0f Ignore system colour change events in not yet initialized wxPropertyGrid.
Handling these events before the initialization was over could result in a
crash because m_categoryDefaultCell wasn't yet initialized when the window was
created. Fix this by ignoring these events during initialization.

Closes #15642.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-05 13:39:53 +00:00
Vadim Zeitlin
768670dffe Fix wxOleConvertVariantFlags mentions in the documentation.
In some case wxConvertVariantToOleFlags was used instead.

Closes #15641.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-05 13:39:48 +00:00
Bryan Petty
033a904eb0 Adjusted Romanian translator list by request from Catalin.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-05 01:00:40 +00:00
Bryan Petty
b32134b40f Updated reference manual translation status table.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-04 19:24:02 +00:00
Václav Slavík
dd295300ca Make wxTextEntry::SetHint() work with all derived controls in wxOSX.
Previously, the method was only implemented in wxTextCtrl even though it used
wxTextEntry code to do the actual work. Move the implementation into
wxTextEntry.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-02 18:01:25 +00:00
Vadim Zeitlin
73eb200299 Basque translations update from Xabier Aramendi.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-02 16:55:45 +00:00
Paul Cornett
3a6e307771 get correct best size for wxSpinButton
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-02 16:29:21 +00:00
Vadim Zeitlin
5992503b62 Reset current item in generic virtual wxListCtrl when items count changes.
This ensures that we don't end up with an invalid current item value, which
resulted in the asserts (see
http://thread.gmane.org/gmane.comp.lib.wxwidgets.general/80341) and possibly
worse.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-01 23:59:07 +00:00
Vadim Zeitlin
14990d8817 Don't include sys/unistd.h unnecessarily when using MinGW.
This doesn't seem to be needed under Windows where <sys/unistd.h> is just a
wrapper for <io.h> which is already included just below anyhow. And doing this
seems to result in problems with Cygwin MinGW cross-compiler 4.7.3 which seems
to ship with broken version of this file, see the problem described in
http://thread.gmane.org/gmane.comp.lib.wxwidgets.general/80322

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-01 23:59:04 +00:00
Vadim Zeitlin
71f261f6b2 Use proper accents in a contributor name.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-31 16:03:14 +00:00
Vadim Zeitlin
6dc9368825 Fix light magenta definition in the colour database.
Make it different from magenta itself, otherwise a colour constructed from
"magenta" string was returning "light magenta" as its name.

The exact value of this colour is not well-defined, another commonly used one
seems to be 0xff80ff, but in a lot of places it is used as a synonym for
fuchsia pink which is pretty unambiguously 0xff77ff.

Closes #15628.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-31 16:03:09 +00:00
Vadim Zeitlin
3df0e7b9c7 Mention incompatible wxGridBagSizer::AddGrowable{Col,Row}() change.
It now has no effect if called before adding the columns/rows to the sizer.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-31 12:05:07 +00:00
Vadim Zeitlin
87ffcafce0 Update contributor name to preferred variant.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-31 11:56:51 +00:00
Vadim Zeitlin
d3b15333c7 Minor Dutch translations update from Gideon van Melle.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-30 12:48:58 +00:00
Vadim Zeitlin
89077d2067 Fix wxMSW build with WXWIN_COMPATIBILITY_2_6==1.
Avoid conflict between wxMSW symbol defined in wx/platinfo.h in this build
configuration and wxMSW namespace by renaming the latter to wxMSWImpl, which
is also consistent with the namespace name used elsewhere.

Closes #15624.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-30 12:21:27 +00:00
Vadim Zeitlin
ce6c1584e6 Fix missing semicolon in wxFileName::SetPermissions() documentation.
Closes #15623.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-29 22:54:34 +00:00
Vadim Zeitlin
6f6609d233 Avoid pointer conversions to unsigned long in the samples.
This results in errors when using g++ Win64 builds as sizeof(long) <
sizeof(void*) in Win64.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-29 19:20:15 +00:00
Vadim Zeitlin
222b65c1b6 Remove accidentally committed testing "rem" from regen.bat.
See #15620.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-29 13:05:39 +00:00
Vadim Zeitlin
1210587617 Fix MeasureWidths() in wxSTC in non-Unicode build.
Integer values must be converted to floats instead of just using memcpy().

Closes #15617.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-29 12:17:40 +00:00
Vadim Zeitlin
b727da4d23 Fix wxSpinButton default width under GTK+ 3.
The default GTK+2 width is so small as to make the control unusable under
GTK+3, so use larger (but still hardcoded) width there.

Closes #15619.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-29 12:17:36 +00:00
Vadim Zeitlin
88e4e49663 Check for dot being available when building HTML documentation.
This helps with ensuring that the generated CHM always has the inheritance
diagrams as by default Doxygen creates it successfully even if dot is not
found -- but without any graphs.

Closes #15620.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-29 12:17:30 +00:00
Vadim Zeitlin
dc37b632f7 Initialize the number of items in wxSelectionStore.
wxSelectionStore::m_count was somehow never initialized, and even although
this seems harmless right now, don't leave it uninitialized if only to avoid
Valgrind warnings about using this.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-28 22:17:54 +00:00
Vadim Zeitlin
341fffd5b7 Don't define _CRTBLD when using MSVC 12 or later.
This results in fatal #errors from the standard <assert.h> which doesn't want
to be included with _CRTBLD defined. Generally speaking, defining _CRTBLD
looks like a very wrong thing to do and it's probably not necessary any more
(considering that it was done in r25683 almost 10 years ago) but only avoid
doing this with VC 12 for now to avoid breaking anything else before 3.0.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-28 20:38:59 +00:00
Vadim Zeitlin
3b636935b3 Fix crash in wxCharBuffer if memory allocation fails.
Handle memory allocation failure gracefully in wxCharTypeBuffer ctor.

Closes #15616.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-28 15:04:10 +00:00
Vadim Zeitlin
b8f637041f Fix RC2 description in the announcement.
It's second, not first.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-28 11:24:51 +00:00
Vadim Zeitlin
b44c868021 Update SHA1 sums of 3.0.0-rc2 binaries.
Also mention the availability of two different architectures.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-28 11:22:23 +00:00
Václav Slavík
322877484d Fix wxWindowModalDialogEvent::GetReturnCode() on Windows.
*Lots* of native dialogs don't call SetReturnCode() in their ShowModal()
implementations in wxMSW. Rather than fixing them all - and having them
accidentally broken again and again in the future - fix this just in the
generic ShowWindowModal() implementation. This may not be the most elegant fix,
but it is bullet-proof.

Also revert previous attempt to fix just wxMessageDialog in r74776.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-28 07:48:14 +00:00
Vadim Zeitlin
5c83e20ba5 Update SHA1 sums for the release files after remaking the release.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-27 20:36:04 +00:00
Vadim Zeitlin
769061a849 Update the version to 3.0.0-rc2 in wx/version.h as well.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-27 20:16:07 +00:00
Vadim Zeitlin
95140e1eb3 Update checksums for the 3.0.0-rc2 release files.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-27 15:48:24 +00:00
Vadim Zeitlin
59edd80343 Prepare release notes and such for 3.0.0-rc2.
No real changes, just change the RC number.

Also update the release date.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-27 15:48:22 +00:00
Vadim Zeitlin
d06a91910e Simplify and update wxMSW build instructions.
Keep the most important points, remove the obsolete stuff.

Also get rid of 99% of the contents of BuildSVN.txt which simply duplicated
the information from the other files.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-27 15:33:39 +00:00
Vadim Zeitlin
f1d5e29800 Add x64 platform to MSVS 10 solution and project files.
Manually update VC10 projects to have both Win32 and x64 architectures, use
"vc_x64" for the output directories and the DLL names under the latter.

Closes #15568.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-27 15:33:33 +00:00
Vadim Zeitlin
ddb562a565 Create 3.0 release branch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-26 21:40:19 +00:00
Vadim Zeitlin
a026533712 Update the binaries README for 3.0-rc2 and MinGW binaries.
Also indicate that MSVS 2013 binaries are available and correct the name of
the headers archive.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-26 21:37:10 +00:00
Vadim Zeitlin
2f67c4ae07 Make windres command used in MinGW build configurable.
This allows to pass extra arguments to windres, which is especially important
when using 64 bit windres for building 32 bit applications as the generated .o
file uses a wrong architecture unless "-F pe-i386" is explicitly specified.

See #15601.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-26 20:29:57 +00:00
Vadim Zeitlin
9337103a37 Use UTF-8 for saving wxTextCtrl contents now.
This ensures that the files created by wxTextCtrl::SaveFile() can be read back
by wxTextCtrl::LoadFile() as previously the files were saved using the current
locale encoding but read back using Latin1 (after first trying, and failing,
to read them as UTF-8).

This is a backwards incompatible change but it ensures that wxTextCtrl can
load its own files and is also consistent with the use of UTF-8 by default in
other places. Finally, and perhaps most importantly, this ensures that the
file contents can always be saved, i.e. there is no risk of conversion errors
any more.

Closes #15611.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-26 20:29:32 +00:00
Paul Cornett
2014950b1c spelling fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-26 18:51:16 +00:00