Commit Graph

53195 Commits

Author SHA1 Message Date
Vadim Zeitlin
bb504ee3c3 Fix warning about hiding a virtual function in propgrid sample.
The virtual ColourToString() method was hidden and not overridden in the
sample because it didn't use the last argument of the base class method.

Fix this in the most straightforward (albeit not necessarily the most correct)
way to at least ensure that the function is really overridden.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-30 12:20:29 +00:00
Vadim Zeitlin
99ef43728a Change the loop condition to avoid comparing unsigned value with 0.
This resulted in (useful) g++ warning and didn't make any sense in any case.

Check for the loop variable value being 0 at the end of the loop instead now.
If the old code was correct it shouldn't change its behaviour and if not, this
might fix a bug.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-29 17:50:32 +00:00
Vadim Zeitlin
b02d50281d Always initialize SelectInHDC::m_hgdiobj in wxMSW.
Leaving m_hgdiobj uninitialized probably didn't result in any problems
considering how this class is currently used but it did result in g++ warnings
about uninitialized member with aggressive warning flags and also could easily
become a problem in the future so just ensure that we always initialize it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-29 17:50:30 +00:00
Vadim Zeitlin
917b008579 Fix two harmless gcc warnings about missing initializers.
Add values to make g++ -Wmissing-field-initializers warnings (implicitly
enabled by -Wextra) go away.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-29 17:50:27 +00:00
Vadim Zeitlin
408ee837a8 Mention that readme.txt needs to be updated before a release.
Hopefully this means it won't be forgotten the next time.

Also mentioned that the new docs.wxwidgets.org link should be now already
created when the release is being done.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-29 17:50:08 +00:00
Vadim Zeitlin
273a28a1e9 Add a tiny script for producing HTML documentation archives.
Also update the release making document to point to it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-29 17:50:05 +00:00
Vadim Zeitlin
7e1fbe6913 Fix typo in error message about incorrect syntax.
Output the error to stderr, not a file called "2".

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-29 17:50:02 +00:00
Vadim Zeitlin
8563b81134 Update the readme file for 2.9.2.
Just increment version number and year in a couple of places.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-29 17:49:59 +00:00
Chris Elliott
8295be2116 fix misisng html format files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-29 11:33:13 +00:00
Vadim Zeitlin
7b1a29ce00 Updated copyright year before 2.9.2 release.
Use 2011 instead of 2010 in the manual and in several .plist files.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-29 09:22:35 +00:00
Chris Elliott
a059d81b64 2.9.2-rc1 in file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-29 08:46:13 +00:00
Vadim Zeitlin
4ce59b1f90 Replace stc.{h,cpp} with the generated versions with all their typos.
Revert the changes of r67280 which fixed several typos in these files as they
were getting modified each time gen_iface.py was rerun and we don't want to
touch the original Scintilla files to fix these typos.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-29 08:37:49 +00:00
Vadim Zeitlin
f2b099261f Generate code using IsOk() instead of Ok() in stc.cpp.
Modify the script generating this file itself to produce IsOk() instead of
Ok(). This replaces the changes of r67681 which only modified the generated
file.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-29 08:37:46 +00:00
Václav Slavík
c1b293bb8d Move wxThreadEvent into wxBase.
For this, it cannot derive from wxCommandEvent. Extracted the bits
from wxCommandEvent useful for passing data between threads into
wxEventBasicPayloadMixin helper class shared by both.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-28 17:24:37 +00:00
Vadim Zeitlin
4db97e24f5 Add support for child documents to docview framework.
Child documents are virtual documents corresponding to parts of their parent
document which can't be saved nor loaded independently of their parent and are
closed when the parent is closed.

This finally makes some use of wxDocument::m_documentParent field which was
always present in the docview code but never used before.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-27 00:09:37 +00:00
Stefan Csomor
9f3b6638e4 bringing target naming in line with other projects
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-25 07:16:55 +00:00
Robin Dunn
fc2f6088e7 Paper size fix for wxOSX-cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-25 00:15:00 +00:00
Vadim Zeitlin
630d8c1998 Fix code reading from the pipe stream in exec sample.
We must be reading bytes, not (wide) characters.

Closes #13290.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-24 13:10:23 +00:00
Stefan Csomor
175b0dbe82 adaption to new configurations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-23 16:05:08 +00:00
Vadim Zeitlin
5d4c2acaca Update printing sample to compile again after r68026.
The sample was using Initialize() overload that doesn't exist any longer, use
InitializeWithModality() instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-23 08:02:12 +00:00
Vadim Zeitlin
ab2ef6e0e6 Fix bug with out of range date in wxMSW wxDatePickerCtrl under XP too.
The bug fix of r67990 relied on DateTime_SetSystemtime() returning FALSE if
setting the date failed but, unfortunately, this function doesn't behave
correctly under XP (and presumably earlier systems) and returns TRUE even if
it didn't actually change the date because it was out of range.

Implement an alternative solution not relying on this function return value
but simply checking the range ourselves.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-22 22:58:11 +00:00
Vadim Zeitlin
1e5ad6e1d1 Restore wxPreviewFrame::Initialize(void) and add InitializeWithModality().
The changes of r67619 changed the signature of the virtual Initialize() method
and in doing so broke the existing code overriding it. Avoid this problem by
restoring the old method signature and adding a function with a different name
providing the new functionality.

Also notice in the documentation that there is no real need to override
Initialize() in any case (but this doesn't change the fact that there is
existing code that does do it).

See #13108.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-22 22:58:07 +00:00
Vadim Zeitlin
adfbce4fec Use strdup() even in strict ANSI mode with MinGW.
MinGW headers define MSVC-compatible _strdup() even in strict ANSI mode so we
can always use it with MinGW.

This fixes a linking problem when wx itself was built without strict ANSI but
the program using it does use strict ANSI mode (e.g. due to the use of
-std=c++0x g++ option).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-22 22:58:04 +00:00
Vadim Zeitlin
c346d3d299 Avoid crash on startup when using single mode in docview sample.
The view doesn't have any associated frame when using the special "single
view" mode in the sample, so don't try to show it when creating a new view.

This resulted in a crash when starting the sample with --single command line
parameter.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-22 22:57:59 +00:00
Stefan Csomor
1aa727618e carbon prebuilt
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-22 20:21:30 +00:00
Stefan Csomor
c55a90a22d new settings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-22 20:19:35 +00:00
Stefan Csomor
a3c4268040 wxcocoa prebuilt
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-22 19:45:02 +00:00
Stefan Csomor
854ad5ac3d new settings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-22 19:41:15 +00:00
Stefan Csomor
3470df081b new settings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-22 17:40:41 +00:00
Stefan Csomor
d7418f1414 new settings, removing incorrect setup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-22 17:11:46 +00:00
Stefan Csomor
7105d78058 new settings for iphone
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-22 17:10:08 +00:00
Stefan Csomor
bd95a56385 new settings for iphone
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-22 17:09:56 +00:00
Stefan Csomor
de6e978207 adding new xcconfigs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-22 16:15:59 +00:00
Julian Smart
77ea6c48d3 Fixed shift-click selection
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-21 09:56:32 +00:00
Stefan Csomor
225efd6d48 set default deployment and compiler flags
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-21 09:01:21 +00:00
Stefan Csomor
20d2c191c4 set default deployment and compiler flags
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-21 08:57:05 +00:00
Stefan Csomor
1fb05ae58a use same flags as command line build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-21 08:55:05 +00:00
Vadim Zeitlin
5f899cbe91 Fix bug when setting an out of range date in wxMSW wxDatePickerCtrl.
The internally stored date value was getting out of sync with the real date in
the control itself when SetValue() was called with a date out of the currently
set range. This resulted in an assert failure and other unpleasantness later.

Fix the bug and add a unit test checking for it (and also with some other
basic wxDatePickerCtrl checks).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-19 22:46:45 +00:00
Vadim Zeitlin
a5f226861c Extract wxDateTime-related cppunit helpers in a separate header file.
No real changes, just refactor the code to allow using CPPUNIT_ASSERT_EQUAL
with wxDateTime in other tests in the future.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-19 22:46:42 +00:00
Vadim Zeitlin
58daa7b264 Document surprising behaviour of wxDatePickerCtrl::GetRange() in wxMSW.
wxMSW native control always has a built-in lower limit as MSW doesn't support
the dates before the year 1601 so wxDatePickerCtrl::GetRange() always returns
a valid range start, even if SetRange() hadn't been called to set it.

As this can be unexpected, document this behaviour clearly.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-19 22:46:39 +00:00
Vadim Zeitlin
106f0d98f8 Implement wxCalendarCtrl::SetDateRange() in the native GTK version.
While GTK+ doesn't support imposing ranges for dates selection natively, we
can do it ourselves by preventing the user from selecting any date outside of
the currently valid range.

This allows to use ranges under all platforms and not only in wxCalendarCtrl
itself but in wxDatePickerCtrl as well.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-19 22:46:36 +00:00
Vadim Zeitlin
459c6f2a8a Suppress harmless gcc warnings about enum elements unhandled in switch.
Latest mingw64 MinGW compiler has the headers required for enabling
wxUSE_DBGHELP, fix the warnings given by g++ when compiling wxDbgHelpDLL code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-19 22:46:32 +00:00
Paul Cornett
af806b13aa fix GTKGetLabel() and DoApplyWidgetStyle(): children are GtkWidget, not GtkBoxChild
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-19 20:52:26 +00:00
Stefan Csomor
21201af6d5 adding universal as devices
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-18 19:40:22 +00:00
Stefan Csomor
ed161aa6c2 adding universal as devices
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-18 16:47:37 +00:00
Stefan Csomor
80982c3bc6 adding instantiated xcodeproj
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-18 16:46:42 +00:00
Stefan Csomor
27c86437b9 removing obsolete flags, switching to universal builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67980 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-18 15:53:10 +00:00
Stefan Csomor
2ebfa9c04c fixing iphone build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-18 15:23:39 +00:00
Stefan Csomor
23dad6aac2 updating project format to 3.2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-18 14:30:10 +00:00
Stefan Csomor
530c2b7473 removing old settings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-18 14:21:13 +00:00