Skip to content
Commits on Apr 2, 2013
  1. Merge pull request #12 from nickela/master

    committed Apr 2, 2013
    Fixed image creation from bytestring bug
  2. Merge pull request #10 from yihuang/master

    committed Apr 2, 2013
    Fix gcc type mismatch error.
Commits on Jan 23, 2013
  1. Added missing API to wxc:

    Dmitriy Nikitinskiy committed Jan 23, 2013
    wxGrid: cell spans, cell renderers (numeric, auto string wrapping)
    wxScrolledWindow: show/hide scrollbars
    wxSplitterWindow: control sash gravity
  2. fixed imageCreateFromLazyByteString, peek from CString with specified…

    Dmitriy Nikitinskiy committed Jan 23, 2013
    … length,
    
    to avoid recognizing zeroes in data as NULL-termination in string
Commits on Aug 11, 2012
  1. @yihuang

    Fix cpp type mismatch.

    yihuang committed Aug 11, 2012
Commits on Jun 10, 2012
  1. Merge branch 'GHCI_FIX_BRANCH'

    committed Jun 10, 2012
    This will bring in the incomplete support for Virtual List Control, but I think this is acceptable, since it does not have any impact unless you decide to use virtual list controls (which will not work)
  2. Add .gitignore so Git ignores derived files.

    committed Jun 10, 2012
    Add install.txt - currently only instructions for Debian.
Commits on May 30, 2012
Commits on Apr 22, 2012
  1. Add support for virtual ListCtrl, and a few other unwrapped ListCtrl …

    committed Apr 22, 2012
    …methods.
    
    Added methods: listCtrlGetItemFont, listCtrlIsVirtual, listCtrlRefreshItem, listCtrlRefreshItems.
    Added constants: wxLC_VIRTUAL, wxLC_MASK_TYPE, wxLC_MASK_ALIGN, wxLC_MASK_SORT.
    Removed deprecated constant wxLC_USER_TEXT.
Commits on Apr 20, 2012
  1. Fix behaviour of textEntry and entry controls on OSX.

    committed Apr 20, 2012
    See #1 (comment)
    
    It seems that using the wxTE_RICH attribute in textEntry and entry causes a multi-line text control style to be created by default on OS X. This is new behaviour on wxWidgets 2.9.x.
    
    This patch makes the wxTE_RICH and wxTE_RICH2 attribute settings dependent on the host OS (only sets them on Windows)
    
    This patch also fixes bugs associated with the use of textCtrlClear followed by textCtrlWriteText, reported in the same issue.
    
    Note that this does not fix the problem that the textColor attribute is not respected.
  2. @HeinrichApfelmus
Commits on Apr 18, 2012
  1. @HeinrichApfelmus
  2. Patch from Eric Kow:

    committed Apr 17, 2012
    Mon Apr 16 09:25:24 BST 2012  Eric Kow <eric.kow@gmail.com>
     * Try a little harder to find wxc install directory.
    
     Users of cabal-dev may find that the wxc include dir does not have
     wxc anywhere in its path, eg.
       /home/moi/my-package/cabal-dev//lib//include
     So instead we try looking for the wxc.h file itself.
    
    Fixes #5
  3. The directories containing the wxWidgets 2.8 branch are not needed un…

    committed Apr 17, 2012
    …der git, so remove them.
  4. Fix minor typos in error message when required wxWidgets version is n…

    committed Apr 17, 2012
    …ot available.
    
    Issue reported by Henk-Jan van Tuyl (hjgtuyl@cello.nl)
Commits on Apr 14, 2012
  1. Fix error building on some 32 bit targets.

    committed Apr 14, 2012
    Ignore-this: 212d1935582b619313032033a20834d
    
    Apply patch due to Heinrich Apfelmus (apfelmus@quantentunnel.de). His description
    attached below:
    
    "I just tripped over a bug in the  Setup.hs  belonging to  wxc  that
     prevented me from compiling wxHaskell with 32bit architecture.
    
     The problem is the following: in the function  linkSharedLib , the
     function  runProgram  is commented out and the function  system  is used
     instead. This is not correct because  gcc  may (and in my case: does)
     carry additional command line options! (Besides, the verbose output is
     lost.)
    
     Apparently, this was done because the   runProgram  didn't work for some
     reason. The reason is that some command line options are actually two
     arguments. In particular, setting the output file via
    
       "-o " ++ out_dir </> sharedLibName ver basename,
    
     is not correct, the right way to go about it are two arguments
    
       "-o", out_dir </> sharedLibName ver basename,
    
     Same for the "-install_name" option. Four lines need to be changed in
     the  linkCxxOpts  file, then  runProgram  will work."
    
    darcs-hash:20120414142124-75908-2cab48a05599cd3556734f64dbd712a24fe6c619.gz
Commits on Apr 13, 2012
  1. @kowey

    Modernise System.Exit import in wxc.

    kowey committed Apr 13, 2012
    Ignore-this: 2bd4fbea71cf7f92e810074bb122b3da
    Needed to build with GHC 7.4.1
    
    darcs-hash:20120413161642-db91e-24246ed70835df91671c25733b143b8e227193b3.gz
  2. wx-config-win version suitable for Windows users building for wxWidge…

    committed Apr 13, 2012
    …ts 2.9.
    
    Ignore-this: 153eb358c7244b0bf4469e32840be20f
    
    The attached wx-confg-win directory is forked from http://wx-config-win.googlecode.com
    and represents a substantially simplified implementation of the wx-config script.
    
    Compared to the version at Google Code, this is modified as follows:
    - Support wxWidgets 2.9 (by far the major change)
    - Support build on Visual Studio as well as GCC
    
    Note that he changes have *only* been tested for wxWidgets compiled with MinGW
    compiler, and almost certainly will not work for wxWidgets compiled with other
    compilers.
    
    Note that wx-config.cpp can be successfully compiled using a MinGW compiler
    with the following command line:
    
    g++ wx-config.cpp -o wx-config.exe
    
    For the convenience of those who do not have a working MinGW or Visual Studio
    installation, I have included a pre-compiled and linked wx-config.exe which
    will work if you place it in your path.
    
    Note that this is a temporary work-around until I can find a way to cabal install
    wx-config-win. Currently I find that ghc wx-config.cpp -lstdc++ compiles and
    links, but is no use as it dynamically links libstdc++.dll, and this is not
    in the path when time comes to run wx-config.§
    
    darcs-hash:20120413121421-75908-5975dfefff34666f07a308bf4f23cd60c4ec688f.gz
  3. Put upper version bounds on wxHaskell for wxWidgets 2.8

    committed Apr 13, 2012
    Ignore-this: d7ce71f39546341cb0c8693b1f8eac8a
    
    darcs-hash:20120413121209-75908-75b0f6591e66e21dffd50b22c16f02326a8a24e5.gz
  4. Bump version to 0.90 for wxWidgets 2.9 support.

    committed Apr 13, 2012
    Ignore-this: 7e343352397703f721b2cddf41ddd1da
    
    To allow for reasonably long co-existance of wxHaskell branches supporting
    wxWidgets 2.8.x and wxWidgets 2.9.x, I have bumped the version for wxWidgets 2.9
    quite considerably.
    
    This will allow natural evolution of the wxWidgets 2.8 supporting codeline
    without excessively constraining version number bumps.
    
    It is assumed that the wxWidgets 2.8 supporting versions have been branched
    into new directories (some loss of history, unfortunately, but it's the
    price for not creating a new repository).
    
    darcs-hash:20120413103524-75908-8baf3c107facdf367c7264e83ea3e6d6035bbac4.gz
Commits on Apr 3, 2012
  1. Last missed patches.

    committed Apr 3, 2012
    Ignore-this: 14a684c8eda33fe3f77bd2af2bba6f72
    
    Bump version dependencies on wxcore.
    Fix a some undefined event cases in eljevent.cpp.
    
    darcs-hash:20120403192212-75908-eba30ce450fca807feba7fa038f96205525aa3d3.gz
Commits on Mar 25, 2012
  1. Update samples for wxWudgets 2.9

    committed Mar 25, 2012
    Ignore-this: 20444b06d03a9fb28374e6a9789ce02c
    
    Update the OpenGL samples so that they work!
    Add Dave Tapley's PropertyGrid sample
    
    darcs-hash:20120325115218-75908-35f02d48a3ff8b389fa7d1cf5efdecc81391f967.gz
  2. Add PropertyGrid support to wx.

    committed Mar 25, 2012
    Ignore-this: 3e3d67521604f3d789ba4217ede16879
    
    darcs-hash:20120325114758-75908-4192a6fbf5c370c3458fbb3b76bab23c94ea395f.gz
  3. Missed PropertyGrid support reinstated.

    committed Mar 25, 2012
    Ignore-this: ead0b358bb7638a3cce5facacb791af8
    
    darcs-hash:20120325114435-75908-a04fdfb33461236c10fb42bbbe2a2d79d05db3c6.gz
  4. OpenGL Support.

    committed Mar 25, 2012
    Ignore-this: 7db5626d1959563a1dba5911fe895ed2
    
    This includes the following patches from Dave Tapley's branch:
    
    Wed Dec 14 17:09:34 GMT 2011  dukedave@gmail.com
      * 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"
    
    Wed Nov 16 09:42:39 GMT 2011  jeremy.odonoghue@gmail.com
      * 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.
    
    darcs-hash:20120325114246-75908-e1fb5bcb9e5df55431cc5c789f166c62ae9d24cc.gz
  5. PropertyGrid support.

    committed Mar 25, 2012
    Ignore-this: fba1166bac06e76782638a974d64147e
    
    Merge PropertyGrid support from Dave Tapley's branch. This contains items
    from the following patches:
    
    Sat Nov 12 20:46:48 GMT 2011  dukedave@gmail.com
      * Wrap wxPGProperty_SetHelpString
    
    Fri Nov 11 18:23:11 GMT 2011  dukedave@gmail.com
      * Wrapped wxPropertyGrid DisableProperty and added usage to sample
    
    Tue Oct  4 00:33:05 BST 2011  dukedave@gmail.com
      * Make PropertyGrid sample more user friendly
    
    Mon Oct  3 23:38:07 BST 2011  dukedave@gmail.com
      * Make the PropertyGrid example a little bigger
    
    Mon Oct  3 23:37:44 BST 2011  dukedave@gmail.com
      * Wrapped wxPropertyCategory
    
    Mon Oct  3 22:47:48 BST 2011  dukedave@gmail.com
      * Clean up the wxPropertyGrid sample
    
    Sat Oct  1 22:25:15 BST 2011  dukedave@gmail.com
      * Print out the parse error when one is encountered running wxdirect
    
    Sat Oct  1 22:24:32 BST 2011  dukedave@gmail.com
      * Wrap extra PGProperty subclasses
    
    Fri Sep 30 02:49:11 BST 2011  dukedave@gmail.com
      * Set label, name and value when creating PGProperty subclasses
      Ideally I'd keep the default PGProperty constructors and wrap the Set.. functions,
      however I tried this and SetValue doesn't play nicely (throwing a run-time assertion
      about the value being a user defined one, which is confusing).
    
    Thu Sep 29 23:40:35 BST 2011  dukedave@gmail.com
      * Updated PropertyGrid sample
    
    Thu Sep 29 22:45:28 BST 2011  dukedave@gmail.com
      * Wrapped extra code for wxPropertyGrid, some refactoring
    
    Thu Sep 22 22:22:30 BST 2011  dukedave@gmail.com
      * Fix for Prelude.chr error using wxString in wx-2.9
      This is a fix for the problem reported here:
      http://sourceforge.net/mailarchive/message.php?msg_id=28116578
    
    Thu Sep 22 22:21:57 BST 2011  dukedave@gmail.com
      * Clearer logging for the PropertyGrid sample code
    
    Thu Sep 22 22:20:46 BST 2011  dukedave@gmail.com
      * Added wxEVT_PG_CHANGED and test code
    
    Thu Sep 22 22:13:11 BST 2011  dukedave@gmail.com
      * Fix segfault with wxPGProperty caused returning local wxString
      The initial implementation of wxPGProperty was causing a segfault,
      after comparing my approach to that used by existing methods I noticed
      that they all return wxString* (i.e. a pointer and not a copy) and use
      pattern [1], after modifying wxPGProperty to do the same the segfault
      went away.
    
      [1]
          wxString *result = new wxString();
          *result = self->FuncWhichReturnswxString();
          return result;
    Tue Aug 30 23:42:08 BST 2011  dukedave@gmail.com
      * Added wxStringProperty and wxPropertyGrid_Append
      I'm also updated the PropertyGrid.hs sample, to create a couple of wxStringProperty's and
      wxPropertyGrid_Append them; and updated the highlighted call back to print the label name
      when an item is hovered over, unfortunately this causes a segfault presently.
    
    Fri Aug 26 06:25:25 BST 2011  dukedave@gmail.com
      * Added wxPropertyGridEvent_HasProperty, made PropertyGridHighlighted have a Maybe PGProperty
    
    Fri Aug 26 01:01:27 BST 2011  dukedave@gmail.com
      * Wrapping wxPropertyGrid
    
    darcs-hash:20120325113657-75908-a48d980c5b338054e3855404c2b960ee8cce7d53.gz
  6. Misc patches removing wxWidgets < 2.9 support

    committed Mar 25, 2012
    Ignore-this: e5dff79eb4725668e456b6e40cd1b79
    
    Minor tidy up of source code to remove support for wxWidgets 2.8 (mainly
    #ifdefs, but some type safety changes brought in with wxWidgets 2.9)
    
    darcs-hash:20120325113337-75908-31aa55322f6b9267d29151b29a04b924fcb3881e.gz
Commits on Mar 19, 2012
  1. Add the now manually maintained WxcDefs.hs.

    committed Mar 19, 2012
    Ignore-this: 1f7219d1b5d810c1f861f586d41fd75
    
    This patch brings in changes from the following changes in Dave Tapley's
    wxWidgets 2.9 fork of the mainline:
    
    * wxcore: No more Eiffel
    
      Just use the autogenerated (and now manually maintained) Haskell
      module instead.
      (eric.kow@gmail.com Tue Nov 3 2011)
    
    darcs-hash:20120319192645-75908-80148547b53b7b3b5b76f09bf7b9b84061e954b5.gz
  2. Add PropertyGrid support to Events.hs

    committed Mar 19, 2012
    Ignore-this: 447bc057c961fe93de13c715f3fbfe4f
    
    This incorporates changes from the following patches in Dave Tapley's
    repo:
    
    * Fix segfault with wxPGProperty caused returning local wxString
      The initial implementation of wxPGProperty was causing a segfault,
      after comparing my approach with that used by the existing methods
      I noticed that they all return wxString* (i.e. a pointer and not a
      copy) and use pattern [1], after modifying wxPGProperty to do the
      same the segfault went away.
    
      [1]
          wxString* result = new wxString();
          *result = self->FuncWhichReturnswxString()
          return result;
      (dukedave@gmail.com Fri Sep 23 2011)
    * Added wxStringProperty and wxPropertyGrid_Append
      I've also updated the PropertyGrid.hs sample, to create a couple of
      wxStringProperty's and wxPropertyGrid_Append them; and updated the
      highlighted call back to print the label name when an item is hovered
      over, unfortunately this causes a segfault presently.
      (dukedave@gmail.com Wed Aug 31 2011)
    * Added wxPropertyGridEvent_HasProperty, made PropertyGridHighlighted have
      a Maybe PGProperty
      (dukedave@gmail.com Fri Aug 26 2011)
    * Wrapping wxPropertyGrid
      (dukedave@gmail.com Fri Aug 26 2011)
    
    darcs-hash:20120319191305-75908-9cccfc338e4f15c7778af7a45a5a8fc226ac34b5.gz
Commits on Mar 18, 2012
  1. Enable wxc library to be fund on OS X Lion.

    committed Mar 18, 2012
    Ignore-this: 3ac42cdee1742611b90c275896c40ed6
    
    Merge patches from Eric Kow's OS X Lion support branch. Here we add absolute path
    to the wxc dylib install directory.
    
    darcs-hash:20120318154418-75908-e142d58ac6852d51e3d00a75ea8649be823835b5.gz
  2. Update wxcore build for separated wxc

    committed Mar 18, 2012
    Ignore-this: f6a30cd378270717ad11aeda1c3973ce
    
    This patch brings in the changes needed to build wxcore with a separated wxc. It has
    been virtually impossible to separate out the individual patches from Dave Tapley's
    branch which make up this change, but as well as bumping the version to 0.15, at
    least the following are implicated:
    
    * Set wxcore Setup.hs to use System.FilePath instead of System.FilePath.Posix
      (jeremy.odonoghue@gmail.com Tue Jan 31 2012)
    * 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 remaining problem" here:
      http://www.mail-archive.com/wxhaskell-devel@lists.sourceforge.net/msg00722.html.
      (dukedave@gmail.com Tue Jan 3 2012))
    * Missed modified files in the previous patch. This is the second 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.
      (dukedave@gmail.com Wed Dec 14 2011)
    * Move compilation of C++ code to new wxc project and use a shared library for it.
      (dukedave@gmail.com Wed Dec 14 2011)
    * wxcore: no more Eiffel
      Just use the autogenerated (and now manually maintained) Haskell module instead
      wxEiffel seems to be a dead project at the time of this patch, so we're not
      exactly getting a cross-project refactor out of this. Haveing the Eiffel around
      just creates the impression of complexity for little gain.
      (eric.kow@gmail.com Thu Nov 3 2011)
    
    darcs-hash:20120318112715-75908-6f768323635d985dde10f88a428dace5b2aed2ea.gz
Commits on Mar 14, 2012
  1. No more Eiffel.

    committed Mar 14, 2012
    Ignore-this: 99fa69b041a7dfe4601b3d545bb91d47
    
    Based on Eric Kow patch 3rd Nov 2011.
    
    "Just use the autogenerated (and now manually maintained) Haskell module
    instead."
    
    "wxEiffel seems to be a dead project at the time of this patch, so we're not
    exactly getting a cross-project reafctor out of this. Having the Eiffel around
    just creates the impression of complexity for little gain."
    
    Eric changed the cabal file in a later patch. I have done so here for completeness.
    
    darcs-hash:20120314231028-75908-d04ee10735ae0a8cb79cddff3e149dd43f5ca7a1.gz
  2. Fixed wxc build.

    committed Mar 14, 2012
    Ignore-this: 305cffb93b886526562b24ed85af3cfb
    
    Removed problematic WebKit events (based on Eric Kow, Nov 3rd 2011)
    Fixed merge error in Setup.hs using the '-undefined' linker flag on OS X.
    
    darcs-hash:20120314230034-75908-f67f5c3fe61e328860df4a98ad4ca89171fb2ca5.gz
Something went wrong with that request. Please try again.