Development branch for wxHaskell — http://haskell.org/haskellwiki/WxHaskell
Look for ldconfig in /sbin/ and fail gracefully when missing
On Gentoo ldconfig is not on a normal user's PATH, however the failed exectution was not detected and this resulted in wxcore failing to link successfully. Now we go straight to /sbin/ldconfig (which is the /normal/ location), and also we check the return code, returning an error if it was unsuccessful. It would be nice to do this with cabal's findProgram, but ldconfig isn't in: Distribution.Simple.Program.Builtin
Fix wxc library name and install-name path. Comment out _expEVT_DIALUP_CONNECTED, _expEVT_DIALUP_DISCONNECTED because of undefined symbols.
Revise implementation of wxTreeCtrl_GetBoundingRect
It appears to work correctly on Linux, so I removed the ifdef. The previous implementation also disregarded the actual result, now it returns GetBoundingRect as expected. See: http://sourceforge.net/mailarchive/message.php?msg_id=28657362
Remove unnecessary old-time dependency
Only Graphics.UI.WXCore.Db module was used old-time. But Graphics.UI.WXCore.Db is removed. old-time is an unnecessary dependency now.
Removed ODBC samples (DbBrowse and DbConsole)
wxWidgets no longer supports ODBC (as of 2.9.x), as such these samples are no longer valid. See: http://wiki.wxwidgets.org/index.php?title=ODBC&oldid=5665
Fix GLMultiCanvas sample following reintroduction of OpenGL.
glCanvasSetCurrent requires a context, so I added glContextCreateFromNull which corresponds to passing a null pointer for the existing context (which is valid according to the wxWidgets API), and pass this new context to glCanvasSetCurrent. I also removed a redundant call to reshape in paintGL.
Make wxcore link with an rpath to wxc
This fixes the problem I described here: http://comments.gmane.org/gmane.comp.lang.haskell.libraries/16807 and listed as "The only major problem remaining" here: http://www.mail-archive.com/wxhaskell-devel@lists.sourceforge.net/msg00722.html
Added missing stc_gen.cpp file to extra-source-files
he file stc_gen.cpp is unique at the moment in that it is the only .cpp file which is included in another .cpp file, thus it isn't included in x-dll-sources (because it isn't a separate compilation unit), but it still needs to be put in an sdist tarball.
Added cpp files used in wxc to extra-source-files
Installing from and sdist tarball would fail without this addition because the cpp files wouldn't be present in it. The duplicated list in wxc.cabal (for extra-source-files and x-dll-sources) is a bit unpleasant, but I feel it is important to make the distinction.
Remove WxcDefs.hs from "extra-tmp-files"
This file is no longer temporary following the patches to remove eiffel support during building. However "cabal clean" would delete it, thinking it was a tmp file, causing subsequent builds to fail.
Fix bug where wx-config wasn't being called correctly.
This was causing errors when linking because wx-config was only getting "--libs" instead of "--libs all".
Fixed missing args names in wxc type macro
I picked this up while trying to compile some test C code against wxc, it appears wxdirect doesn't fail to parse it, but it caused this warn: wxc_glue.h:2802: warning: parameter names (without types) in function declaration wxc_glue.h:2803: warning: parameter names (without types) in function declaration
Fix GLCanvas sample following reintroduction of OpenGL.
glCanvasSetCurrent requires a context, so I added glContextCreateFromNull which corresponds to passing a null pointer for the existing context (which is valid according to the wxWidgets API), and pass this new context to glCanvasSetCurrent. I also removed a redundant call to reshape' inpaintGL'.
Eliminate warn by providing missing name for argument in glcanvas.h
Merge in patch to return OpenGL support
This resolves conflicts primarily between the patches:
"Reinstate OpenGL support for wxWidgets 2.9." "Use wx-config to generate all used libraries"
and
"Move compilation of C++ code to new wxc project and use a shared library for it" "Missed modified files in previous patch"
Reinstate OpenGL support for wxWidgets 2.9.
OpenGL support compiles and links (at least for wxWidgets 2.9 on Ubuntu against Dave Tapley's repo), but sample code doesn't work yet - investigating whether this is due to wx API changes or a problem in wxcore OpenGL support.
Update path given to wxdirect to reflect changes made in other patch
The wxc C++ files were moved to another project in the patch: "Move compilation of C++ code to new wxc project and use a shared library for it"
Missed modified files in previous patch
This is the secord part of the patch "Move compilation of C++ code to new wxc project and use a shared library for it" Unfortunately I missed these important files modifications, and darcs was waiting forever when I tried to unrecord or amend that patch. For further information please see email: [wxhaskell-devel] Using a shared library for the C++ in wxhaskell http://sourceforge.net/mailarchive/message.php?msg_id=28515489
Move compilation of C++ code to new wxc project and use a shared library for it
This substantial architectural
Remove errorneous line in wx/HelloWorld.hs sample
I accidentally added this in a previous change, when it should only have been added to samples/wxcore/HelloWorld.hs
Force version given to wx-config and use new "all" option for "--libs"
As of 2.9 wx-config can emit all its libs, so we no longer have to hard code them in, see: http://wiki.wxwidgets.org/Updating_to_the_Latest_Version_of_wxWidgets#The_wx-config_script
Require wxWidgets 2.9 to configure wxcore
To avoid potential confusion and to support systems with multiple installations of wxWidgets (which is common when people have both stable 2.8 and development 2.9 releases present), I am requiring that 2.9 is installed as I will be using --version for setup in the next patch.
Added ListView and sample code to WX
A ListView can be used to conveniently display rows in a ListCtrl where each row's cells are given by another function.
Remove deleted Eiffel files from wxcore.cabal's extra-source-files
Update Graphics.UI.WXCore.WxcDefs haddock to reflect manual maintenance.