Commit Graph

49491 Commits

Author SHA1 Message Date
Stefan Csomor
e203dbfe15 adding glFrustum to compat API, supporting SetColour on OpenGL ES
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-14 08:37:23 +00:00
Vadim Zeitlin
ba9574c310 Added support for corner, row and column headers renderers to wxGrid.
Make it possible to customize the appearance of wxGrid corner window and its
row and column headers by defining custom renderers for them.

Add demonstration of this new feature to the grid sample and update the
documentation.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-14 00:45:29 +00:00
Vadim Zeitlin
62960a2c6e Document wxGridCellAttrProvider.
Added basic documentation for wxGridCellAttrProvider and
wxGridCellAttr::wxAttrKind enum used by it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-14 00:45:18 +00:00
Vadim Zeitlin
fa837f6633 Remove unneeded pointer check.
This was flagged as an error by static code analyse tools.

Closes #11195.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-14 00:44:59 +00:00
Stefan Csomor
deb0a11e99 adapting to new sound file organization for osx
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-13 18:28:45 +00:00
Jaakko Salli
3ba703f9be Minor code cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-13 17:52:32 +00:00
Stefan Csomor
0fd61b1609 adding types for OpenGL on iPhone
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-13 17:45:21 +00:00
Stefan Csomor
2ed52e2c85 adapting to new sound files organization on osx
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-13 17:41:36 +00:00
Stefan Csomor
8996460cb9 avoiding potential infinite recursion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-13 17:34:51 +00:00
Stefan Csomor
62018605a1 supporting rotated display correctly for display size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-13 17:33:46 +00:00
Stefan Csomor
4e16d05a28 enabling correct audio framework on OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-13 17:23:53 +00:00
Stefan Csomor
3b3d8b979b sound implementation for AudioToolbox on 10.5 and iPhone
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-13 17:23:05 +00:00
Stefan Csomor
e5684ea03b OpenGL for iPhone
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-13 17:22:13 +00:00
Stefan Csomor
b90817de2b OpenGL changes for carbon and cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-13 17:19:01 +00:00
Stefan Csomor
e7ee4873d5 adding emulation API for OpenGL ES platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-13 17:17:40 +00:00
Stefan Neis
adfe31645d Be more paranoid about parent window possibly being NULL (partly fixes #11115).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-13 15:48:40 +00:00
Vadim Zeitlin
bf24fcddc3 Fix test compilation under OS X.
wxFileOffset and ssize_t are not the same type under this platform so using
CPPUNIT_ASSERT_EQUAL() with the arguments of these types fails. Use ssize_t
instead of wxFileOffset to fix this.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-13 12:26:03 +00:00
Vadim Zeitlin
873c1a2300 Reenable build of execmon in utils bakefile.
Undo r61894, it's not necessary to disable build of execmon any longer after
r61901.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-13 11:55:08 +00:00
Francesco Montorsi
80a6dafbd7 add execmon bakefile (which was forgotten in the initial commit) and regenerate execmon makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-13 10:09:59 +00:00
Vadim Zeitlin
3a326bfe02 Document the meaning of empty value name in wxRegKey methods.
Empty value refers to the default or unnamed key in Win32 API but this may be
not clear to people unused to it so mention this explicitly.

Closes #11191.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-12 22:48:29 +00:00
Vadim Zeitlin
227989f3e9 Write correct number of bytes in wxFile::Write(wxString).
This function was broken for conversions using more than one byte per
character (e.g. UTF-16 or UTF-32) and also even for UTF-8 for strings
containing NUL bytes as it used strlen() to determine the number of bytes to
write out instead of using the really needed number.

Fix this by using the wxCharBuffer::length() method which always returns the
correct value.

Also add a wxFile unit test verifying that it can correctly read back a string
written using any of UTF-8, UTF-16 or UTF-32.

Closes #11192.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-12 22:40:42 +00:00
Vadim Zeitlin
caa96da739 Extract TestFile class in a separate header.
This allows to reuse it in the other tests which need to create a temporary
file automatically destroyed on test exit.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-12 22:40:35 +00:00
Vadim Zeitlin
40ac5040ce Add convenient wxMBConv::cMB2WC/WC2MB overloads taking buffers.
These overloads allow not to worry about buffer lengths and just convert
between wxCharBuffer and wxWCharBuffer directly in a convenient way.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61896 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-12 22:40:25 +00:00
Vadim Zeitlin
c8299fa80c Unregister wake up pipe file fd in ~wxConsoleEventLoop.
We must unregister the wake up pipe file descriptor which we register with the
IO dispatcher in wxConsoleEventLoop ctor, otherwise doing it the next time
(i.e. if wxConsoleEventLoop is deleted and recreated) results in asserts, at
least when using wxSelectDispatcher and not wxEpollDispatcher (i.e. under any
non-Linux Unix system).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-12 22:40:18 +00:00
Vadim Zeitlin
63f4968cd1 Disable build of utils/execmon.
Bakefile for this program doesn't exist so its makefiles are out of date and
it doesn't build any more now, disable its build until the bakefile is checked
in.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-12 15:29:11 +00:00
Vadim Zeitlin
d12d9edacb Rebake all the samples, demos and tests makefiles.
This should have been committed together with the changes to the debug flags
handling in build/bakefiles in r61887.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-12 13:38:08 +00:00
Vadim Zeitlin
8076df5d81 regenerated
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-12 13:35:16 +00:00
Vadim Zeitlin
046e85ca80 Remove WX_DEBUG option from Unix wx presets, it's not needed any more.
It doesn't make sense to select debug or release build of wxWidgets any more
as they are now compatible under Unix. Under Windows the option is still
needed but it selects the build using debug (or not) version of the CRT rather
than the one built with __WXDEBUG__ defined.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-12 11:29:49 +00:00
Vadim Zeitlin
ab06470e49 Add wxDEBUG_LEVEL to wx/setup.h and document it.
Under Unix wxDEBUG_LEVEL can be set using configure --enable-debug=max option
but under Windows it needs to be changed in wx/msw/setup.h so add it to this
file with a comment explaining its meaning.

Also document this symbol with the other preprocessor constants.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-12 11:29:42 +00:00
Vadim Zeitlin
89b1afb48f Change Unix build system to not use debug build any more.
Remove "d" suffix from the libraries and the BUILD variable which is not used
any longer.

Also ignore (but still support, for compatibility) --debug option in wx-config.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-12 11:29:31 +00:00
Vadim Zeitlin
32be10a45d Use wxDEBUG_LEVEL instead of __WXDEBUG__ in wxInfoMessageBox().
Also disable sizer-drawing code unless wxDEBUG_LEVEL>=2 as we don't want it to
be available in production versions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-12 11:29:23 +00:00
Vadim Zeitlin
c6684d425d Use "d" suffix according to DEBUG_RUNTIME_LIBS, not DEBUG_FLAG.
The "d" suffix is now only used under Windows and indicates that we link with
debug CRT version.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-12 11:29:11 +00:00
Vadim Zeitlin
7d9550df50 Define wxDEBUG_LEVEL in both debug and release builds as 1.
By default include assertions and debug logging in both debug and release
builds but disable them in application release builds (when NDEBUG is
defined).

Also update (more accurately, replace) debugging overview.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-12 11:28:52 +00:00
Vadim Zeitlin
db5a2bff58 Restore correct setting of the background colour.
The background colour for the HDC used for drawing the native controls wasn't
set correctly any more after changes of r61859 but we do need to call it or
the text in edit and similar controls is drawn using the default background
even if we return the correct brush which is used for erasing the control.

Closes #11190.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-12 10:59:43 +00:00
Vadim Zeitlin
474e971147 Document ctors creating a wxString from repeated characters.
Closes #11187.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-12 10:42:04 +00:00
Vadim Zeitlin
9508a056c1 Document wxStandardPaths vendor-related changes.
The change in the values returned by wxStandardPaths functions is important as
it's incompatible with 2.8 if the application defines a vendor name so must be
mentioned in docs/changes.txt.

Also update the documentation of the class itself and mention UseAppInfo() in
the overview.

Closes #11189.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-12 10:41:55 +00:00
Stefan Csomor
60812bf669 adding Kevin's fix for wxTOOL_STYLE_SEPARATOR
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-11 21:01:45 +00:00
Jaakko Salli
20fb9ddf29 Fixed constants of the new wxPG_EX styles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-11 16:41:31 +00:00
Julian Smart
521f1d8371 wxPropertyGrid: added wxPG_NO_INTERNAL_BORDER, wxPG_EX_NO_TOOLBAR_DIVIDER
and wxPG_EX_TOOLBAR_SEPARATOR styles for finer control over borders.
Borders around property grid are now native for consistency.
Some strange VC6 compiler errors fixed, plus size assertion in
sample.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-11 11:49:03 +00:00
Julian Smart
8a05a8d7d0 Documented a couple of combo control fixes on Mac.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-11 11:42:05 +00:00
Julian Smart
126bb30567 Fixed a bug on Mac whereby popup window disappeared as soon as the button was clicked (text control getting focus)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-11 09:30:51 +00:00
Julian Smart
a44c4abe5e Fix on Mac to prevent scrollbars always being shown
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-11 08:55:59 +00:00
Jaakko Salli
e84e5ba3c1 Notify if the grid is being destroyed in an event generated by it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-10 14:15:32 +00:00
Vadim Zeitlin
834d36af06 Mention wxOSX/Cocoa in the old wxCocoa docs.
The old wxCocoa port isn't what most people are looking for so point them to
wxOSX/Cocoa if they look under docs/cocoa.

Closes #11182.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-10 12:49:06 +00:00
Jaakko Salli
9639faebf5 Adapted wxPGComboBox margins setup to changes in wxComboCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-09 17:26:46 +00:00
Jaakko Salli
4bcf25e994 Various improvements to wxComboCtrl's text ctrl left margin setup: less #defines, better margin when SetCustomPaintWidth() has been called, fixed SetFont() behavior on wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-09 16:41:23 +00:00
Jaakko Salli
63e0eeb581 Fixed a warning generated by GCC 4.4.0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-08 14:03:30 +00:00
Jaakko Salli
b3cec67186 Use real id for wxPGCanvas
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-08 13:57:38 +00:00
Vadim Zeitlin
3316192f0d Set correct foreground default in wxControl::DoMSWControlColor().
Instead of hard-coding GetSysColor(COLOR_WINDOWTEXT), use
GetForegroundColour() which will call GetDefaultAttributes() to retrieve the
default foreground appropriate for this control.

This also allows to make the code simpler by calling SetTextColor() only once.

See #1691.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-08 12:23:28 +00:00
Vadim Zeitlin
52c5093f76 Don't always override the default background colours.
The wxColour argument taken by wxControl::DoMSWControlColor() allows to
override the default colour, it shouldn't be used in MSWControlColor() as this
resulted in always using custom colours for the controls, even when the user
hadn't changed them. Fix this by not passing any valid colour to it in this
case and allowing it to deduce the correct colour to use on its own.

See #1691.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-08 12:23:17 +00:00