You can subscribe to this list here.
2008 |
Jan
|
Feb
(53) |
Mar
(145) |
Apr
(22) |
May
(7) |
Jun
(14) |
Jul
(14) |
Aug
(9) |
Sep
(10) |
Oct
(48) |
Nov
(59) |
Dec
(45) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
(36) |
Feb
(5) |
Mar
(33) |
Apr
(28) |
May
(5) |
Jun
(6) |
Jul
(1) |
Aug
(7) |
Sep
(11) |
Oct
(3) |
Nov
(31) |
Dec
|
2010 |
Jan
(8) |
Feb
(3) |
Mar
|
Apr
(2) |
May
(9) |
Jun
(1) |
Jul
(2) |
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
2011 |
Jan
(1) |
Feb
(3) |
Mar
(4) |
Apr
(1) |
May
(2) |
Jun
(12) |
Jul
(36) |
Aug
(7) |
Sep
(40) |
Oct
(6) |
Nov
(40) |
Dec
(8) |
2012 |
Jan
(54) |
Feb
(8) |
Mar
(1) |
Apr
(16) |
May
(2) |
Jun
(12) |
Jul
(1) |
Aug
(1) |
Sep
(2) |
Oct
(2) |
Nov
|
Dec
(7) |
2013 |
Jan
(8) |
Feb
|
Mar
(13) |
Apr
(2) |
May
(13) |
Jun
(44) |
Jul
|
Aug
(13) |
Sep
(12) |
Oct
(11) |
Nov
(7) |
Dec
(6) |
2014 |
Jan
(3) |
Feb
(4) |
Mar
(9) |
Apr
(1) |
May
|
Jun
(3) |
Jul
(1) |
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
(2) |
Jun
(3) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(2) |
Nov
(1) |
Dec
(1) |
2017 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Mads L. <mad...@ya...> - 2008-11-01 16:04:43
|
Hi Bernd Bernd Holzmüller wrote: > Hi all, > > I am developing a test management GUI where processes are started and > their output (on stdout and stderr) are shown on corresponding console > windows. The process management worked quite OK with version 0.9.4 but > does no longer work in version 0.10.3 (using ghc 6.8.3 on Windows XP). > > The attached small example application shows what happens: with > processExecAsync only garbage is shown on both the stdout and the stderr > console window, with processExecAsyncTimed the stdout console works > fine, but the stderr console shows nothing. Main.hs is the wxHaskell GUI > with two buttons, both calling the application compiled from > Testproc.hs, one using processExecAsync, one using the Timed variant. > The attached makefile builds everything. > > If someone with understanding of the internals of wxHaskell could have a > look on this topic, I would be very grateful. Perhaps the (soon?) coming > new wxHaskell version 0.11 will do correctly? > > Thanks, > Bernd > Your processExecAsyncTimed example works on Linux. But of cause that do not help you much. The processExecAsync example do not work on Linux either. A while ago I got tired of the hard-to-get-to-work nature of processExecAsyncTimed and therefore wrote my own process executor. I have attached my own process executor and an adapted version of your code, which works for me (on Linux). You will have to adapt it a little bit to work on windows (properly just changing "./testproc.exe" to "testproc" should do). I would love to hear if it works on your machine. Greetings, Mads Lindstrøm |
From: shelarcy <she...@gm...> - 2008-10-29 02:36:20
|
2008/10/28 shelarcy <she...@gm...>: > Tue Oct 28 17:25:15 =93=8C=8B=9E (=95W=8F=80=8E=9E) 2008 shelarcy <shelarc= > y...@gm...> > * Use DEPRECATED pragma instead of only haddock comment to describe depre= > cated functions. > > Tue Oct 28 17:34:24 =93=8C=8B=9E (=95W=8F=80=8E=9E) 2008 shelarcy <shelarc= > y...@gm...> > * Fix: Camels sample don't run because of using undefined function since = > wxWidgets 2.8.x support. Pushed. -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |
From: shelarcy <she...@gm...> - 2008-10-29 02:32:31
|
2008/10/28 shelarcy <she...@gm...>: >Tue Oct 28 14:36:50 =93=8C=8B=9E (=95W=8F=80=8E=9E) 2008 shelarcy <she...@gm...> > * Fixed broken Haddock descriptions. > >Tue Oct 28 15:03:09 =93=8C=8B=9E (=95W=8F=80=8E=9E)2008 shelarcy <she...@gm...> > * Chnage source code's maintainer to be wxh...@li.... > >Tue Oct 28 15:09:25 =93=8C=8B=9E (=95W=8F=80=8E=9E)2008 shelarcy <she...@gm...> > * Remove modification history from source code (Use darcs instead). Pushed. -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |
From: Kido T. <she...@co...> - 2008-10-29 02:19:55
|
Tue Oct 28 04:34:24 EDT 2008 shelarcy <she...@gm...> * Fix: Camels sample don't run because of using undefined function since wxWidgets 2.8.x support. M ./samples/contrib/Camels.hs -2 +3 View patch online: http://code.haskell.org/wxhaskell/_darcs/patches/20081028083424-c1071-f509b0a10f2b8b6c18faaa9001e54224367a551d.gz |
From: Kido T. <she...@co...> - 2008-10-29 02:19:53
|
Tue Oct 28 04:25:15 EDT 2008 shelarcy <she...@gm...> * Use DEPRECATED pragma instead of only haddock comment to describe deprecated functions. M ./samples/contrib/NotebookRight.hs -1 +1 M ./samples/wx/ImageViewer.hs -2 +2 M ./wx/src/Graphics/UI/WX/Classes.hs +1 M ./wx/src/Graphics/UI/WX/Menu.hs +3 M ./wxcore/src/Graphics/UI/WXCore/Controls.hs +2 M ./wxcore/src/Graphics/UI/WXCore/Process.hs +1 View patch online: http://code.haskell.org/wxhaskell/_darcs/patches/20081028082515-c1071-79430824d8563a7228b52075bc38662359ce6453.gz |
From: Kido T. <she...@co...> - 2008-10-29 02:12:45
|
Tue Oct 28 02:09:25 EDT 2008 shelarcy <she...@gm...> * Remove modification history from source code (Use darcs instead). M ./wx/src/Graphics/UI/WX/Controls.hs -7 M ./wx/src/Graphics/UI/WX/Events.hs -7 M ./wx/src/Graphics/UI/WX/Menu.hs -6 View patch online: http://code.haskell.org/wxhaskell/_darcs/patches/20081028060925-c1071-9d9b6b4505f7cb095de2f8a0c14d28fb4cd29c5d.gz |
From: Kido T. <she...@co...> - 2008-10-29 02:12:43
|
Tue Oct 28 02:03:09 EDT 2008 shelarcy <she...@gm...> * Chnage source code's maintainer to be wxh...@li.... M ./wx/src/Graphics/UI/WX/TopLevelWindow.hs -1 +1 M ./wxdirect/src/Classes.hs -1 +1 M ./wxdirect/src/CompileClassInfo.hs -1 +1 M ./wxdirect/src/CompileClassTypes.hs -1 +1 M ./wxdirect/src/CompileClasses.hs -1 +1 M ./wxdirect/src/CompileDefs.hs -1 +1 M ./wxdirect/src/CompileHeader.hs -1 +1 M ./wxdirect/src/CompileSTC.hs +10 M ./wxdirect/src/DeriveTypes.hs -1 +1 M ./wxdirect/src/HaskellNames.hs -1 +1 M ./wxdirect/src/Main.hs -1 +1 M ./wxdirect/src/MultiSet.hs -1 +1 M ./wxdirect/src/ParseC.hs -1 +1 M ./wxdirect/src/ParseEiffel.hs -1 +1 M ./wxdirect/src/Types.hs -1 +1 View patch online: http://code.haskell.org/wxhaskell/_darcs/patches/20081028060309-c1071-c67f4e76e0ae43c1dfe6961e657b2763d423b15d.gz |
From: Kido T. <she...@co...> - 2008-10-29 02:12:43
|
Tue Oct 28 01:36:50 EDT 2008 shelarcy <she...@gm...> * Fixed broken Haddock descriptions. M ./wx/src/Graphics/UI/WX.hs -10 +10 M ./wx/src/Graphics/UI/WX/Attributes.hs -32 +32 M ./wx/src/Graphics/UI/WX/Classes.hs -16 +16 M ./wx/src/Graphics/UI/WX/Controls.hs -8 +8 M ./wx/src/Graphics/UI/WX/Dialogs.hs -8 +8 M ./wx/src/Graphics/UI/WX/Draw.hs -9 +9 M ./wx/src/Graphics/UI/WX/Events.hs -39 +39 M ./wx/src/Graphics/UI/WX/Frame.hs -9 +9 M ./wx/src/Graphics/UI/WX/Layout.hs -15 +15 M ./wx/src/Graphics/UI/WX/Media.hs -8 +8 M ./wx/src/Graphics/UI/WX/Menu.hs -19 +19 M ./wx/src/Graphics/UI/WX/Timer.hs -7 +7 M ./wx/src/Graphics/UI/WX/TopLevelWindow.hs -14 +14 M ./wx/src/Graphics/UI/WX/Types.hs -7 +7 M ./wx/src/Graphics/UI/WX/Variable.hs -7 +7 M ./wx/src/Graphics/UI/WX/Window.hs -8 +8 M ./wxcore/src/Graphics/UI/WXCore.hs -13 +13 M ./wxcore/src/Graphics/UI/WXCore/Controls.hs -6 +6 M ./wxcore/src/Graphics/UI/WXCore/Db.hs -6 +6 M ./wxcore/src/Graphics/UI/WXCore/Defines.hs -7 +7 M ./wxcore/src/Graphics/UI/WXCore/Dialogs.hs -7 +7 M ./wxcore/src/Graphics/UI/WXCore/DragAndDrop.hs -9 +11 M ./wxcore/src/Graphics/UI/WXCore/Draw.hs -7 +7 M ./wxcore/src/Graphics/UI/WXCore/Events.hs -10 +10 M ./wxcore/src/Graphics/UI/WXCore/Frame.hs -7 +7 M ./wxcore/src/Graphics/UI/WXCore/Image.hs -6 +6 M ./wxcore/src/Graphics/UI/WXCore/Layout.hs -94 +94 M ./wxcore/src/Graphics/UI/WXCore/OpenGL.hs -7 +7 M ./wxcore/src/Graphics/UI/WXCore/Print.hs -28 +28 M ./wxcore/src/Graphics/UI/WXCore/Process.hs -7 +7 M ./wxcore/src/Graphics/UI/WXCore/Types.hs -7 +7 M ./wxcore/src/Graphics/UI/WXCore/WxcObject.hs -7 +7 M ./wxcore/src/Graphics/UI/WXCore/WxcTypes.hs -7 +7 M ./wxdirect/src/HaskellNames.hs -6 +6 View patch online: http://code.haskell.org/wxhaskell/_darcs/patches/20081028053650-c1071-98ad6993bb8050adb7d450140c5f65a84fc2821e.gz |
From: Bernd H. <ber...@ic...> - 2008-10-28 13:51:02
|
Hi all, I am developing a test management GUI where processes are started and their output (on stdout and stderr) are shown on corresponding console windows. The process management worked quite OK with version 0.9.4 but does no longer work in version 0.10.3 (using ghc 6.8.3 on Windows XP). The attached small example application shows what happens: with processExecAsync only garbage is shown on both the stdout and the stderr console window, with processExecAsyncTimed the stdout console works fine, but the stderr console shows nothing. Main.hs is the wxHaskell GUI with two buttons, both calling the application compiled from Testproc.hs, one using processExecAsync, one using the Timed variant. The attached makefile builds everything. If someone with understanding of the internals of wxHaskell could have a look on this topic, I would be very grateful. Perhaps the (soon?) coming new wxHaskell version 0.11 will do correctly? Thanks, Bernd |
From: shelarcy <she...@gm...> - 2008-10-28 08:46:49
|
DarcsURL: she...@co...:/srv/code/wxhaskell MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_" --=_ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Tue Oct 28 17:25:15 =93=8C=8B=9E (=95W=8F=80=8E=9E) 2008 shelarcy <shelarc= y...@gm...> * Use DEPRECATED pragma instead of only haddock comment to describe depre= cated functions. Tue Oct 28 17:34:24 =93=8C=8B=9E (=95W=8F=80=8E=9E) 2008 shelarcy <shelarc= y...@gm...> * Fix: Camels sample don't run because of using undefined function since = wxWidgets 2.8.x support. --=_ Content-Type: text/x-darcs-patch; name="use-deprecated-pragma-instead-of-only-haddock-comment-to-describe-deprecated-functions_.dpatch" Content-Transfer-Encoding: quoted-printable Content-Description: A darcs patch for your repository! New patches: [Use DEPRECATED pragma instead of only haddock comment to describe deprecat= ed functions. shelarcy <she...@gm...>**20081028082515] { hunk ./samples/contrib/NotebookRight.hs 43 - set f [menubar :=3D [file] + set f [menuBar :=3D [file] hunk ./samples/wx/ImageViewer.hs 67 - ,statusbar :=3D [status] - ,menubar :=3D [file,hlp] + ,statusBar :=3D [status] + ,menuBar :=3D [file,hlp] hunk ./wx/src/Graphics/UI/WX/Classes.hs 273 +{-# DEPRECATED enable "Use enabled instead" #-} hunk ./wx/src/Graphics/UI/WX/Menu.hs 70 +{-# DEPRECATED menubar "Use menuBar instead" #-} hunk ./wx/src/Graphics/UI/WX/Menu.hs 118 +{-# DEPRECATED menuList "Use menuPane instead" #-} hunk ./wx/src/Graphics/UI/WX/Menu.hs 641 +{-# DEPRECATED statusbar "Use statusBar instead" #-} hunk ./wxcore/src/Graphics/UI/WXCore/Controls.hs 24 + -- * Deprecated hunk ./wxcore/src/Graphics/UI/WXCore/Controls.hs 130 +wxcAppUSleep :: Int -> IO () hunk ./wxcore/src/Graphics/UI/WXCore/Process.hs 285 +{-# DEPRECATED processExecAsync "Use processExecAsyncTimed instead (if pos= sible)" #-} } [Fix: Camels sample don't run because of using undefined function since wxW= idgets 2.8.x support. shelarcy <she...@gm...>**20081028083424] { hunk ./samples/contrib/Camels.hs 76 - , defaultButton :=3D q hunk ./samples/contrib/Camels.hs 80 - ]] + ] + , defaultButton :=3D q + ] } Context: [Fix: BUILD_XRCGETCTRL_FN macro cause problem when using gcc. shelarcy <she...@gm...>**20081023141104] = [Small update to XRC support jer...@gm...**20081021104449] = [Add XRC support jer...@gm...**20081021095548] = [Use wxWidgets 2.8.9 in default when building on Windows. shelarcy <she...@gm...>**20081011042903] = [Bump version number to 0.10.5 shelarcy <she...@gm...>**20081011033152] = [Fix configure doesn't care about that users can install some version of pa= ckages. shelarcy <she...@gm...>**20081011032555] = [Use -dep-makefile instead of -optdep-f on GHC 6.10.x to avoid warning abou= t using dreprecated option message. shelarcy <she...@gm...>**20081010170230] = [Update changes.txt information by 0.10.4's changes. shelarcy <she...@gm...>**20081010160351] = [Update wx packages' description and dependency. shelarcy <she...@gm...>**20081010150113] = [Change SVG's auto-generated function name to be more friendly. shelarcy <she...@gm...>**20081010145951] = [Bump Cabal's version number to 0.10.4, too. shelarcy <she...@gm...>**20081009094345] = [Bump version number to 0.10.4 shelarcy <she...@gm...>**20081009092404] = [Fix make uninstall doesn't work well on GHC 6.10.x. shelarcy <she...@gm...>**20080930052522] = [Fix wxcore's depends field has two base package version. shelarcy <she...@gm...>**20080930052150] = [Only use wxEVT_MEDIA* when wxUSE_MEDIACTRL-flag is set mad...@ya...**20080919152917] = [Fix building with GHC 6.10.*. shelarcy <she...@gm...>**20080922155920] = [Change wxcAppUSleep to wxcMilliSleep (wxcAppUSleep is deprecated now). shelarcy <she...@gm...>**20080730094020] = [Removed unnecessary parameter from logSelect helper in Controls.hs WX samp= le jo...@gm...**20080812170441] = [Use meta tag for auto-redirect to Haskell wiki. Eric Kow <eri...@gm...>**20080805182057] = [Update links to homepage itself to point to Haskell wiki. Eric Kow <eri...@gm...>**20080805182031] = [Replace body of index.html with link to Haskell wiki Eric Kow <eri...@gm...>**20080805181958] = [Replace contents of pages which have been moved to Haskell wiki. Eric Kow <eri...@gm...>**20080805151503 Make these pages just a link to the WxHaskell part of the wiki. ] = [Update homepage menus to link to Haskell wiki. Eric Kow <eri...@gm...>**20080805150421] = [Fix typo in contribute.html Eric Kow <eri...@gm...>**20080805101258] = [Fix: we can't build wxc without wxGraphicsContext support. shelarcy <she...@gm...>**20080729111606] = [Use wxWidgets 2.8.8 in default when building on Windows. shelarcy <she...@gm...>**20080729105641] = [Fix building with old version of Visual Studio (according to John Lask). shelarcy <she...@gm...>**20080709063851] = [Fix: linking incorrect runtime on Visual Studio (pointed out by John Lask)= . shelarcy <she...@gm...>**20080709063820] = [Add download link to two GHC 6.8.3's binary. shelarcy <she...@gm...>**20080630144522] = [Fix Building without WXWIN_COMPATIBILITY_2_6 in eljrc.cpp. shelarcy <she...@gm...>**20080630120326] = [Fix: hardcoded keycode doesn't work well when using wxWidgets 2.8.x. shelarcy <she...@gm...>**20080630120118] = [Clean up duplicate ewxw_def.h file. shelarcy <she...@gm...>**20080628114449] = [Remove wxScintilla code (use wxStyledTextCtrl instead). shelarcy <she...@gm...>**20080626055907] = [Fix: eljdcsvg.cpp doesn't build other than Windows. shelarcy <she...@gm...>**20080625095858] = [Just reviving ELJ's wxXmlResource code. shelarcy <she...@gm...>**20080625052046] = [Use Int64 representing wxFileOffset type. shelarcy <she...@gm...>**20080624152015] = [Add dropped wxMedia's events to wxc. shelarcy <she...@gm...>**20080624140139] = [Add dropped wx*DCs. shelarcy <she...@gm...>**20080624122641] = [Update building information about --with-contrib option. shelarcy <she...@gm...>**20080624113243] = [Revive wxSVGFileDC code. shelarcy <she...@gm...>**20080624113214] = [Change --with-stc to --with-contrib for future contrib libraries support. shelarcy <she...@gm...>**20080624032429] = [Update information about builiding wxWidgets and wxc with Microsoft Visual= C++ Express Edition. shelarcy <she...@gm...>**20080624023628] = [Fix #1400488: Win install problem when path with spaces, e.g. "Program Fil= es". shelarcy <she...@gm...>**20080624020657] = [Partialy fix a bug in wxhaskell-register.bat. shelarcy <she...@gm...>**20080623152256] = [Add --enable-optimization opition for building library with optimization f= lags. shelarcy <she...@gm...>**20080531114050] = [Use CDouble and realToFrac instead of marshaling Double type directly. shelarcy <she...@gm...>**20080530024730] = [Remove unused make before-dist. shelarcy <she...@gm...>**20080529120234] = [Fix a bug in haddock documentation structure of Rectangle. shelarcy <she...@gm...>**20080529111415] = [Use putTraceMsg instead of hPutStrLn for Windows GUI-only program. shelarcy <she...@gm...>**20080526070627] = [Add very experimental wxGraphicsContext support. shelarcy <she...@gm...>**20080526063228] = [Change Point, Size, Vector and Rect to be type synonym for adding wxGraphi= csContext support. shelarcy <she...@gm...>**20080526055033] = [Fix: wxSound isn't managed object. shelarcy <she...@gm...>**20080524021436] = [Remove wxWidgets 2.4.x's wxWave code. shelarcy <she...@gm...>**20080430002921] = [Remove Wave type synonym. shelarcy <she...@gm...>**20080429233348] = [Change samples/contrib/PaintDirect to use withPixelBuffer instead of image= GetPixelBuffer. shelarcy <she...@gm...>**20080429232026] = [Change imageGetPixelArray and imageCreateFromPixelArray to be more flexibl= e. shelarcy <she...@gm...>**20080429183518] = [Fix: some samples don't run because of using undefined function since wxWi= dgets 2.8.x support. shelarcy <she...@gm...>**20080429145931] = [Add note about defaultButton's incompatible change since wxWidgets 2.8.x s= upport. shelarcy <she...@gm...>**20080429141545] = [Change Var type synonym from IORef to stm's TVar for thread safety. shelarcy <she...@gm...>**20080425114909] = [Fix: dists dropped two samples in samples/wx direcotory. shelarcy <she...@gm...>**20080425102416] = [Clean up wxWindows class's function declaration. shelarcy <she...@gm...>**20080425054152] = [Clean up #ifdef wxUSE_UNICODE flag by wxStrdup function. shelarcy <she...@gm...>**20080425051404] = [Replace _wcsdup with wxStrdup in wxWidgets 2.8 compat code. Eric Kow <eri...@gm...>**20080420115042 According to shelarcy and Jeremy, _wcsdup is Windows-specific. ] = [wxWidgets 2.8.7 on 0.10.3 release version jer...@gm...**20080410134132] = [TAG wxWidgets2.8.7_on_0.10.3rc1 jer...@gm...**20080410113256] = [Add TopLevelWindow for wxWidgets 2.8.7 support jer...@gm...**20080410113113] = [Preliminary wxWidgets 2.8.7 support jer...@gm...**20080410112559] = [Shifted to Pavel's Debian build system Mads Lindstroem <mad...@ya...>**20080413131752 = I have changed the current Debian build system to the one made by Pavel Shramov. It is a lot simpler than the current one. Also it is similar to what can normally be found in the Debian archieve, and I therefore assume that it will be easier to some day get an offecial WxHaskell Debian package. = All of the files in the debian directory is the work of Pavel. = I changed only one thing, as compared to Pavel's version. Namely that I removed the dependcy on libghc6-time-dev. I did it, as this dependency makes the package un-buildable on Debian unstable (GHC 6.8). At release 0.10.3, some users requested a GHC 6.8 version, and it is therefore important that we can provide one. = = ] = [Removed check for Data.Time Mads Lindstroem <mad...@ya...>**20080413114242 = Removed the check for Data.Time as it is not needed. I originally added it as I had somehow overlooked the Debian package libghc6-time-dev. Sorry about the unneccessary noise :( = ] = [Fix: samples/wx/makefile's "make clean" doesn't clean Windows things. shelarcy <she...@gm...>**20080409133446] = [Fix 1932640: samples/wx/FileBrowse is broken on Windows. = shelarcy <she...@gm...>**20080409132157] = [Add containers package dependency to wxcore.cabal. shelarcy <she...@gm...>**20080328131307] = [Remove IntMap from wxcore. Use the containers version instead. shelarcy <she...@gm...>**20080328131144] = [Add containers package to wxcore. shelarcy <she...@gm...>**20080328123744] = [Remove Set from wxdirect. Use the containers version instead. Eric Kow <eri...@gm...>**20080322140544] = [Remove Map from wxdirect. Use the containers version instead. Eric Kow <eri...@gm...>**20080322140245] = [Add containers package to wxdirect. Eric Kow <eri...@gm...>**20080322135933] = [Split makefile entry for wxdirect containers into separate lines. Eric Kow <eri...@gm...>**20080322135824 For more independence between patches which remove Map, Set and MultiSet in favour of the containers version. ] = [Use string comparison in haddockversion test. Eric Kow <eri...@gm...>**20080326224059 Again, for the case where haddock is not found. ] = [Fix bug in configure script if Haddock is not found. Eric Kow <eri...@gm...>**20080324155706 (discovered by S. Doaitse Swierstra) ] = [Add wx/license.txt to srcdist (to avoid build error). Eric Kow <eri...@gm...>**20080323125315] = [Fix download link typos. Eric Kow <eri...@gm...>**20080322130605] = [Kill a broken link (we no longer use CVS). Eric Kow <eri...@gm...>**20080322125822] = [Overwrite 0.10.3rc1 news with proper 0.10.3 news. Eric Kow <eri...@gm...>**20080322125032] = [TAG 0.10.3 Eric Kow <eri...@gm...>**20080321183613] = Patch bundle hash: 3c6d6b4a21987371969776b8be00699850df0b61 --=_-- . |
From: shelarcy <she...@gm...> - 2008-10-28 06:28:21
|
DarcsURL: she...@co...:/srv/code/wxhaskell MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_" --=_ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Tue Oct 28 14:36:50 =93=8C=8B=9E (=95W=8F=80=8E=9E) 2008 shelarcy <shelarc= y...@gm...> * Fixed broken Haddock descriptions. Tue Oct 28 15:03:09 =93=8C=8B=9E (=95W=8F=80=8E=9E) 2008 shelarcy <shelarc= y...@gm...> * Chnage source code's maintainer to be wxh...@li...urceforge= .net. Tue Oct 28 15:09:25 =93=8C=8B=9E (=95W=8F=80=8E=9E) 2008 shelarcy <shelarc= y...@gm...> * Remove modification history from source code (Use darcs instead). --=_ Content-Type: text/x-darcs-patch; name="fixed-broken-haddock-descriptions_.dpatch" Content-Transfer-Encoding: quoted-printable Content-Description: A darcs patch for your repository! New patches: [Fixed broken Haddock descriptions. shelarcy <she...@gm...>**20081028053650] { hunk ./wx/src/Graphics/UI/WX.hs 2 -{-| Module : WX - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : WX + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wx/src/Graphics/UI/WX.hs 6 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wx/src/Graphics/UI/WX.hs 10 - The WX module just re-exports functionality from helper modules and - defines the 'start' function. +The WX module just re-exports functionality from helper modules and +defines the 'start' function. hunk ./wx/src/Graphics/UI/WX.hs 13 - The WX library provides a /haskellized/ interface to the raw wxWindows - functionality provided by the "Graphics.UI.WXCore" library. +The WX library provides a /haskellized/ interface to the raw wxWindows +functionality provided by the "Graphics.UI.WXCore" library. hunk ./wx/src/Graphics/UI/WX/Attributes.hs 3 -{-| Module : Attributes - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : Attributes + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wx/src/Graphics/UI/WX/Attributes.hs 7 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wx/src/Graphics/UI/WX/Attributes.hs 12 - Widgets @w@ can have attributes of type @a@ represented by the type 'At= tr' @w a@. - An example of an attribute is 'Graphics.UI.WX.Classes.text' with type: +Widgets @w@ can have attributes of type @a@ represented by the type 'Attr'= @w a@. +An example of an attribute is 'Graphics.UI.WX.Classes.text' with type: hunk ./wx/src/Graphics/UI/WX/Attributes.hs 15 - > text :: Attr (Window a) String +> text :: Attr (Window a) String hunk ./wx/src/Graphics/UI/WX/Attributes.hs 17 - This means that any object derived from 'Window' has a 'Graphics.UI.WX.= Classes.text' attribute of type 'String'. - An attribute can be read with the 'get' function: +This means that any object derived from 'Window' has a 'Graphics.UI.WX.Cla= sses.text' attribute of type 'String'. +An attribute can be read with the 'get' function: hunk ./wx/src/Graphics/UI/WX/Attributes.hs 20 - > get w title :: IO String +> get w title :: IO String hunk ./wx/src/Graphics/UI/WX/Attributes.hs 22 - When an attribute is associated with a value, we call it a /property/ o= f type 'Prop' @w@. - Properties are constructed by assigning a value to an attribute with th= e (':=3D') constructor: +When an attribute is associated with a value, we call it a /property/ of t= ype 'Prop' @w@. +Properties are constructed by assigning a value to an attribute with the (= ':=3D') constructor: hunk ./wx/src/Graphics/UI/WX/Attributes.hs 25 - > text :=3D "hello world" :: Prop (Window a) +> text :=3D "hello world" :: Prop (Window a) hunk ./wx/src/Graphics/UI/WX/Attributes.hs 27 - A list of properties can be set with the 'set' function: +A list of properties can be set with the 'set' function: hunk ./wx/src/Graphics/UI/WX/Attributes.hs 29 - > set w [text :=3D "Hi"] :: IO () +> set w [text :=3D "Hi"] :: IO () hunk ./wx/src/Graphics/UI/WX/Attributes.hs 31 - The (':~') constructor is used to transform an attribute value with an = update function. - For example, the 'interval' on a timer can be doubled with the followin= g expression. +The (':~') constructor is used to transform an attribute value with an upd= ate function. +For example, the 'interval' on a timer can be doubled with the following e= xpression. hunk ./wx/src/Graphics/UI/WX/Attributes.hs 34 - > set timer [interval :~ (*2)] +> set timer [interval :~ (*2)] hunk ./wx/src/Graphics/UI/WX/Attributes.hs 36 - The functions 'get', 'set', (':=3D'), and (':~') are polymorphic and wo= rk for all widgets, but - the @text@ attribute just works for windows. Many attributes work for d= ifferent kind - of objects and are organised into type classes. Actually, the real type= of the - 'Graphics.UI.WX.Classes.text' attribute is: +The functions 'get', 'set', (':=3D'), and (':~') are polymorphic and work = for all widgets, but +the @text@ attribute just works for windows. Many attributes work for diff= erent kind +of objects and are organised into type classes. Actually, the real type of= the +'Graphics.UI.WX.Classes.text' attribute is: hunk ./wx/src/Graphics/UI/WX/Attributes.hs 41 - > Textual w =3D> Attr w String +> Textual w =3D> Attr w String hunk ./wx/src/Graphics/UI/WX/Attributes.hs 43 - and 'Window' derived objects are part of this class: +and 'Window' derived objects are part of this class: hunk ./wx/src/Graphics/UI/WX/Attributes.hs 45 - > instance Textual (Window a) +> instance Textual (Window a) hunk ./wx/src/Graphics/UI/WX/Attributes.hs 47 - But also menus and status fields: +But also menus and status fields: hunk ./wx/src/Graphics/UI/WX/Attributes.hs 49 - > instance Textual (Menu a) - > instance Textual (StatusField) +> instance Textual (Menu a) +> instance Textual (StatusField) hunk ./wx/src/Graphics/UI/WX/Attributes.hs 52 - Sometimes, it is convenient to also get a reference to the object itsel= f when setting - a property. The operators ('::=3D') and ('::~') provide this reference. +Sometimes, it is convenient to also get a reference to the object itself w= hen setting +a property. The operators ('::=3D') and ('::~') provide this reference. hunk ./wx/src/Graphics/UI/WX/Classes.hs 3 -{-| Module : Classes - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : Classes + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wx/src/Graphics/UI/WX/Classes.hs 7 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wx/src/Graphics/UI/WX/Classes.hs 11 - This modules defines attributes common to many widgets and - organizes them into Haskell classes. Look at the instance definitions - to see what kind of widgets support the attributes. = +This modules defines attributes common to many widgets and +organizes them into Haskell classes. Look at the instance definitions +to see what kind of widgets support the attributes. = hunk ./wx/src/Graphics/UI/WX/Classes.hs 15 - Sometimes it is - hard to find what attributes a certain widget supports since the insta= nce - definitions might be on some class higher in the hierarchy. For exampl= e, - many instances are defined for 'Window' @a@ -- this means that all - those attributes are applicable to any kind of 'Window', i.e. frames, - buttons, panels etc. However, these attributes will not be explicitly - listed at the type definitions of those classes. +Sometimes it is +hard to find what attributes a certain widget supports since the instance +definitions might be on some class higher in the hierarchy. For example, +many instances are defined for 'Window' @a@ -- this means that all +those attributes are applicable to any kind of 'Window', i.e. frames, +buttons, panels etc. However, these attributes will not be explicitly +listed at the type definitions of those classes. hunk ./wx/src/Graphics/UI/WX/Controls.hs 3 -{-| Module : Controls - Copyright : (c) Daan Leijen 2003 - (c) Shelarcy (she...@gm...) 2006 - License : wxWindows +{-| Module : Controls + Copyright : (c) Daan Leijen 2003 + (c) Shelarcy (she...@gm...) 2006 + License : wxWindows hunk ./wx/src/Graphics/UI/WX/Controls.hs 8 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wx/src/Graphics/UI/WX/Controls.hs 12 - Defines common GUI controls. +Defines common GUI controls. hunk ./wx/src/Graphics/UI/WX/Dialogs.hs 3 -{-| Module : Dialogs - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : Dialogs + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wx/src/Graphics/UI/WX/Dialogs.hs 7 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wx/src/Graphics/UI/WX/Dialogs.hs 11 - Defines common dialogs. +Defines common dialogs. hunk ./wx/src/Graphics/UI/WX/Dialogs.hs 13 - * Instances: 'Form', 'Framed' -- = +* Instances: 'Form', 'Framed' -- = hunk ./wx/src/Graphics/UI/WX/Draw.hs 3 -{-| Module : Draw - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : Draw + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wx/src/Graphics/UI/WX/Draw.hs 7 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wx/src/Graphics/UI/WX/Draw.hs 11 - Drawing. +Drawing. hunk ./wx/src/Graphics/UI/WX/Draw.hs 13 - A /Device Context/ or 'DC', is an instance of 'Drawn', 'Brushed', - 'Literate', and 'Colored'. +A /Device Context/ or 'DC', is an instance of 'Drawn', 'Brushed', +'Literate', and 'Colored'. hunk ./wx/src/Graphics/UI/WX/Events.hs 3 -{-| Module : Events - Copyright : (c) Daan Leijen 2003 - (c) Shelarcy (she...@gm...) 2006 - License : wxWindows +{-| Module : Events + Copyright : (c) Daan Leijen 2003 + (c) Shelarcy (she...@gm...) 2006 + License : wxWindows hunk ./wx/src/Graphics/UI/WX/Events.hs 8 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wx/src/Graphics/UI/WX/Events.hs 12 - Define event handling. Events are parametrised by the widget that can - correspond to a certain event and the type of the event handler. - For example, the 'resize' event has type: +Define event handling. Events are parametrised by the widget that can +correspond to a certain event and the type of the event handler. +For example, the 'resize' event has type: hunk ./wx/src/Graphics/UI/WX/Events.hs 16 - > Reactive w =3D> Event w (IO ()) +> Reactive w =3D> Event w (IO ()) hunk ./wx/src/Graphics/UI/WX/Events.hs 18 - This means that all widgets in the 'Reactive' class can respond to - 'resize' events. (and since 'Window' is an instance of this class, thi= s - means that basically all visible widgets are reactive). +This means that all widgets in the 'Reactive' class can respond to +'resize' events. (and since 'Window' is an instance of this class, this +means that basically all visible widgets are reactive). hunk ./wx/src/Graphics/UI/WX/Events.hs 22 - An @Event w a@ can be transformed into an attribute of type 'Attr' @w = a@ - using the 'on' function. +An @Event w a@ can be transformed into an attribute of type 'Attr' @w a@ +using the 'on' function. hunk ./wx/src/Graphics/UI/WX/Events.hs 25 - > do f <- frame [text :=3D "test"] - > set f [on resize :=3D set f [text :=3D "resizing"]] +> do f <- frame [text :=3D "test"] +> set f [on resize :=3D set f [text :=3D "resizing"]] hunk ./wx/src/Graphics/UI/WX/Events.hs 28 - For convenience, the 'mouse' and 'keyboard' have a serie of /event fil= ters/: - 'click', 'drag', 'enterKey', 'charKey', etc. These filters are write-o= nly - and do not overwrite any previous mouse or keyboard handler but all st= ay - active at the same time. However, all filter will be overwritten again - when 'mouse' or 'keyboard' is set again. For example, the following pr= ogram - makes sense: +For convenience, the 'mouse' and 'keyboard' have a serie of /event filters= /: +'click', 'drag', 'enterKey', 'charKey', etc. These filters are write-only +and do not overwrite any previous mouse or keyboard handler but all stay +active at the same time. However, all filter will be overwritten again +when 'mouse' or 'keyboard' is set again. For example, the following progra= m +makes sense: hunk ./wx/src/Graphics/UI/WX/Events.hs 35 - > set w [on click :=3D ..., on drag :=3D ...] +> set w [on click :=3D ..., on drag :=3D ...] hunk ./wx/src/Graphics/UI/WX/Events.hs 37 - But in the following program, only the handler for 'mouse' will be cal= led: +But in the following program, only the handler for 'mouse' will be called: hunk ./wx/src/Graphics/UI/WX/Events.hs 39 - > set w [on click :=3D ..., on mouse :=3D ...] +> set w [on click :=3D ..., on mouse :=3D ...] hunk ./wx/src/Graphics/UI/WX/Events.hs 41 - If you want to set the 'mouse' later but retain the old event filters, - you can first read the current 'mouse' handler and call it in the = - new handler (and the same for the 'keyboard' of course). This implemen= ation - technique is used to implement event filters themselves and is also - very useful when setting an event handler for a 'closing' event: +If you want to set the 'mouse' later but retain the old event filters, +you can first read the current 'mouse' handler and call it in the = +new handler (and the same for the 'keyboard' of course). This implemenatio= n +technique is used to implement event filters themselves and is also +very useful when setting an event handler for a 'closing' event: hunk ./wx/src/Graphics/UI/WX/Events.hs 47 - > set w [on closing :~ \previous -> do{ ...; previous }] +> set w [on closing :~ \previous -> do{ ...; previous }] hunk ./wx/src/Graphics/UI/WX/Events.hs 49 - Note that you should call 'propagateEvent' (or 'Graphics.UI.WXCore.Eve= nts.skipCurrentEvent') whenever - you do not process the event yourself in an event handler. This propag= ates - the event to the parent event handlers and give them a chance to - handle the event in an appropiate way. This gives another elegant way = to install - a 'closing' event handler: +Note that you should call 'propagateEvent' (or 'Graphics.UI.WXCore.Events.= skipCurrentEvent') whenever +you do not process the event yourself in an event handler. This propagates +the event to the parent event handlers and give them a chance to +handle the event in an appropiate way. This gives another elegant way to i= nstall +a 'closing' event handler: hunk ./wx/src/Graphics/UI/WX/Events.hs 55 - > set w [on closing :=3D do{ ...; propagateEvent }] +> set w [on closing :=3D do{ ...; propagateEvent }] hunk ./wx/src/Graphics/UI/WX/Frame.hs 3 -{-| Module : Frame - Copyright : (c) Daan Leijen 2003 - Copyright : (c) Jeremy O'Donoghue 2007 - License : wxWindows +{-| Module : Frame + Copyright : (c) Daan Leijen 2003 + (c) Jeremy O'Donoghue 2007 + License : wxWindows hunk ./wx/src/Graphics/UI/WX/Frame.hs 8 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wx/src/Graphics/UI/WX/Frame.hs 12 - Frames. +Frames. hunk ./wx/src/Graphics/UI/WX/Frame.hs 14 - * Instances: 'HasImage', 'Form', 'Closeable', 'Framed' -- = +* Instances: 'HasImage', 'Form', 'Closeable', 'Framed' -- = hunk ./wx/src/Graphics/UI/WX/Layout.hs 3 -{-| Module : Layout - Copyright : (c) Daan Leijen 2003 - License : BSD-style +{-| Module : Layout + Copyright : (c) Daan Leijen 2003 + License : BSD-style hunk ./wx/src/Graphics/UI/WX/Layout.hs 7 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wx/src/Graphics/UI/WX/Layout.hs 11 - Just re-exports functionality of "Graphics.UI.WXCore.Layout". See that= module - for a description of layout combinators. = +Just re-exports functionality of "Graphics.UI.WXCore.Layout". See that mod= ule +for a description of layout combinators. = hunk ./wx/src/Graphics/UI/WX/Layout.hs 14 - Any object in the 'Form' class has a 'layout' attribute to specify the= = - layout. Here is a short example: +Any object in the 'Form' class has a 'layout' attribute to specify the = +layout. Here is a short example: hunk ./wx/src/Graphics/UI/WX/Layout.hs 17 - > do f <- frame [text :=3D "layout demo"] - > q <- button f [text :=3D "quit", on command :=3D close f] - > set f [layout :=3D margin 10 $ - > floatCentre $ - > column 5 [label "hi",widget q]] +> do f <- frame [text :=3D "layout demo"] +> q <- button f [text :=3D "quit", on command :=3D close f] +> set f [layout :=3D margin 10 $ +> floatCentre $ +> column 5 [label "hi",widget q]] hunk ./wx/src/Graphics/UI/WX/Media.hs 3 -{-| Module : Media - Copyright : (c) Daan Leijen 2003 - Copyright : (c) shelarcy 2007 - License : wxWindows +{-| Module : Media + Copyright : (c) Daan Leijen 2003 + (c) shelarcy 2007 + License : wxWindows hunk ./wx/src/Graphics/UI/WX/Media.hs 8 - Maintainer : she...@gm... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wx/src/Graphics/UI/WX/Media.hs 12 - Images, Media, Sounds, and action! +Images, Media, Sounds, and action! hunk ./wx/src/Graphics/UI/WX/Menu.hs 3 -{-| Module : Menu - Copyright : (c) Daan Leijen 2003 - (c) Shelarcy (she...@gm...) 2006 - License : wxWindows +{-| Module : Menu + Copyright : (c) Daan Leijen 2003 + (c) Shelarcy (she...@gm...) 2006 + License : wxWindows hunk ./wx/src/Graphics/UI/WX/Menu.hs 8 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wx/src/Graphics/UI/WX/Menu.hs 12 - Defines Menus, toolbars, and statusbars. +Defines Menus, toolbars, and statusbars. hunk ./wx/src/Graphics/UI/WX/Menu.hs 14 - The function 'menuPane' is used to create a menu - that can contain 'menuItem's. Menu items can contain event handlers - using ('on' 'command'), but they can also be set, using the 'menu' - function, on a frame or (mdi) window so that the menu command is handl= ed - in the context of the active window instead of the context of the - entire application. = +The function 'menuPane' is used to create a menu +that can contain 'menuItem's. Menu items can contain event handlers +using ('on' 'command'), but they can also be set, using the 'menu' +function, on a frame or (mdi) window so that the menu command is handled +in the context of the active window instead of the context of the +entire application. = hunk ./wx/src/Graphics/UI/WX/Menu.hs 21 - > do frame <- frame [text :=3D "Demo"] - > file <- menuPane [text :=3D "&File"] - > mclose <- menuItem file [text :=3D "&Close\tCtrl+C", help :=3D "Cl= ose the document"] = - > set frame [menuBar :=3D [file] = - > ,on (menu mclose) :=3D ...] = +> do frame <- frame [text :=3D "Demo"] +> file <- menuPane [text :=3D "&File"] +> mclose <- menuItem file [text :=3D "&Close\tCtrl+C", help :=3D "Close= the document"] = +> set frame [menuBar :=3D [file] = +> ,on (menu mclose) :=3D ...] = hunk ./wx/src/Graphics/UI/WX/Timer.hs 3 -{-| Module : Timer - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : Timer + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wx/src/Graphics/UI/WX/Timer.hs 7 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wx/src/Graphics/UI/WX/Timer.hs 11 - Support for milli-second timers. +Support for milli-second timers. hunk ./wx/src/Graphics/UI/WX/TopLevelWindow.hs 3 -{-| Module : TopLevelWindow=0D - Copyright : (c) Jeremy O'Donoghue, 2007=0D - License : wxWindows=0D +{-| Module : TopLevelWindow=0D + Copyright : (c) Jeremy O'Donoghue, 2007=0D + License : wxWindows=0D hunk ./wx/src/Graphics/UI/WX/TopLevelWindow.hs 7 - Maintainer : jer...@ga...=0D - Stability : provisional=0D - Portability : portable=0D + Maintainer : jer...@ga...=0D + Stability : provisional=0D + Portability : portable=0D hunk ./wx/src/Graphics/UI/WX/TopLevelWindow.hs 11 - wxTopLevelwindow (wxWidgets >=3D 2.8.0) defines an (abstract) common b= ase class=0D - for wxFrame and wxDialog.=0D +wxTopLevelwindow (wxWidgets >=3D 2.8.0) defines an (abstract) common base = class=0D +for wxFrame and wxDialog.=0D hunk ./wx/src/Graphics/UI/WX/TopLevelWindow.hs 14 - In the wxHaskell implementation, TopLevel has been added to encapsulat= e =0D - some of the common functionality between the 'Dialog' and 'Frame' modu= les.=0D +In the wxHaskell implementation, TopLevel has been added to encapsulate = =0D +some of the common functionality between the 'Dialog' and 'Frame' modules.= =0D hunk ./wx/src/Graphics/UI/WX/TopLevelWindow.hs 17 - * Instances: 'HasDefault'=0D - * Instances inherited from 'Window': 'Textual', 'Literate', 'Dimension= s', =0D - 'Colored', 'Visible', 'Child', 'Able', 'Tipped', 'Identit= y', =0D - 'Styled', 'Reactive', 'Paint'. =0D +* Instances: 'HasDefault'=0D +* Instances inherited from 'Window': 'Textual', 'Literate', 'Dimensions', = =0D + 'Colored', 'Visible', 'Child', 'Able', 'Tipped', 'Identity', = =0D + 'Styled', 'Reactive', 'Paint'. =0D hunk ./wx/src/Graphics/UI/WX/Types.hs 3 -{-| Module : Types - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : Types + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wx/src/Graphics/UI/WX/Types.hs 7 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wx/src/Graphics/UI/WX/Types.hs 11 - Basic types. +Basic types. hunk ./wx/src/Graphics/UI/WX/Variable.hs 2 -{-| Module : Variable - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : Variable + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wx/src/Graphics/UI/WX/Variable.hs 6 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wx/src/Graphics/UI/WX/Variable.hs 10 - Mutable variables. +Mutable variables. hunk ./wx/src/Graphics/UI/WX/Window.hs 3 -{-| Module : Window - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : Window + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wx/src/Graphics/UI/WX/Window.hs 7 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wx/src/Graphics/UI/WX/Window.hs 11 - Exports default instances for generic windows. +Exports default instances for generic windows. hunk ./wx/src/Graphics/UI/WX/Window.hs 13 - * Instances: 'Textual', 'Literate', 'Dimensions', 'Colored', 'Visible'= , 'Child', = +* Instances: 'Textual', 'Literate', 'Dimensions', 'Colored', 'Visible', 'C= hild', = hunk ./wxcore/src/Graphics/UI/WXCore.hs 3 -{-| Module : WXCore - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : WXCore + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wxcore/src/Graphics/UI/WXCore.hs 7 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wxcore/src/Graphics/UI/WXCore.hs 11 - The "WXCore" module is the interface to the core wxWindows functionali= ty. +The "WXCore" module is the interface to the core wxWindows functionality. hunk ./wxcore/src/Graphics/UI/WXCore.hs 13 - The library contains the automatically generated interface to the raw - wxWindows API in "Graphics.UI.WXCore.WxcClasses", "Graphics.UI.WXCore.= WxcClassTypes", - and "Graphics.UI.WXCore.WxcDefs". = +The library contains the automatically generated interface to the raw +wxWindows API in "Graphics.UI.WXCore.WxcClasses", "Graphics.UI.WXCore.WxcC= lassTypes", +and "Graphics.UI.WXCore.WxcDefs". = hunk ./wxcore/src/Graphics/UI/WXCore.hs 17 - The other helper modules contain convenient wrappers but only use func= tional - abstractions: no type classes or other fancy Haskell features. (The - higher-level "Graphics.UI.WX" module provides such abstractions.) +The other helper modules contain convenient wrappers but only use function= al +abstractions: no type classes or other fancy Haskell features. (The +higher-level "Graphics.UI.WX" module provides such abstractions.) hunk ./wxcore/src/Graphics/UI/WXCore/Controls.hs 2 -{-| Module : Controls - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : Controls + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wxcore/src/Graphics/UI/WXCore/Controls.hs 6 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wxcore/src/Graphics/UI/WXCore/Db.hs 2 -{-| Module : Db - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : Db + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wxcore/src/Graphics/UI/WXCore/Db.hs 6 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wxcore/src/Graphics/UI/WXCore/Defines.hs 2 -{-| Module : Defines - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : Defines + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wxcore/src/Graphics/UI/WXCore/Defines.hs 6 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wxcore/src/Graphics/UI/WXCore/Defines.hs 10 - Exports standard /defines/ of wxWindows. +Exports standard /defines/ of wxWindows. hunk ./wxcore/src/Graphics/UI/WXCore/Dialogs.hs 2 -{-| Module : Dialogs - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : Dialogs + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wxcore/src/Graphics/UI/WXCore/Dialogs.hs 6 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wxcore/src/Graphics/UI/WXCore/Dialogs.hs 10 - Standard dialogs and (non modal) tip windows. +Standard dialogs and (non modal) tip windows. hunk ./wxcore/src/Graphics/UI/WXCore/DragAndDrop.hs 2 -{-------------------------------------------------------------------------= ---------------- - Module : DragAndDrop - Copyright : (c) shelarcy 2007 - License : wxWidgets +--------------------------------------------------------------------------= --------------- +{-| Module : DragAndDrop + Copyright : (c) shelarcy 2007 + License : wxWidgets hunk ./wxcore/src/Graphics/UI/WXCore/DragAndDrop.hs 7 - Maintainer : she...@gm... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable + +Drag & Drop events. +-} +--------------------------------------------------------------------------= --------------- hunk ./wxcore/src/Graphics/UI/WXCore/DragAndDrop.hs 15 - Drag & Drop events. ---------------------------------------------------------------------------= ---------------} hunk ./wxcore/src/Graphics/UI/WXCore/Draw.hs 3 -{-| Module : Draw - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : Draw + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wxcore/src/Graphics/UI/WXCore/Draw.hs 7 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wxcore/src/Graphics/UI/WXCore/Draw.hs 11 - Drawing. +Drawing. hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 3 -{-| Module : Events - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : Events + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 7 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 11 - Dynamically set (and get) Haskell event handlers for basic wxWindows e= vents. - Note that one should always call 'skipCurrentEvent' when an event is n= ot - processed in the event handler so that other eventhandlers can process= the - event. +Dynamically set (and get) Haskell event handlers for basic wxWindows event= s. +Note that one should always call 'skipCurrentEvent' when an event is not +processed in the event handler so that other eventhandlers can process the +event. hunk ./wxcore/src/Graphics/UI/WXCore/Frame.hs 2 -{-| Module : Frame - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : Frame + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wxcore/src/Graphics/UI/WXCore/Frame.hs 6 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wxcore/src/Graphics/UI/WXCore/Frame.hs 10 - Frame utility functions. +Frame utility functions. hunk ./wxcore/src/Graphics/UI/WXCore/Image.hs 3 -{-| Module : Image - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : Image + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wxcore/src/Graphics/UI/WXCore/Image.hs 7 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 3 -{-| Module : Layout - Copyright : (c) Daan Leijen & Wijnand van Suijlen 2003 - License : wxWindows +{-| Module : Layout + Copyright : (c) Daan Leijen & Wijnand van Suijlen 2003 + License : wxWindows hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 7 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 11 - Combinators to specify layout. (These combinators use wxWindows 'Sizer= ' objects). +Combinators to specify layout. (These combinators use wxWindows 'Sizer' ob= jects). hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 13 - Layout can be specified using 'windowSetLayout'. For example: +Layout can be specified using 'windowSetLayout'. For example: hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 15 - > do f <- frameCreateTopFrame "Test" - > ok <- buttonCreate f idAny "Bye" rectNull 0 - > windowSetLayout f (widget ok) - > ... +> do f <- frameCreateTopFrame "Test" +> ok <- buttonCreate f idAny "Bye" rectNull 0 +> windowSetLayout f (widget ok) +> ... hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 20 - The 'windowSetLayout' function takes 'Layout' as its argument. - The 'widget' combinator creates a layout from a window. The 'space' co= mbinator creates - an empty layout with a specific width and height. Furthermore, we have= the 'label' combinator - to create a static label label and 'boxed' to create a labeled border = around a layout. - The 'grid' combinator lays out elements in a table with a given space = between the elements. - Here is for example a layout for retrieving an /x/ and /y/ coordinate = from the user, with 5 pixels space - between the controls: +The 'windowSetLayout' function takes 'Layout' as its argument. +The 'widget' combinator creates a layout from a window. The 'space' combin= ator creates +an empty layout with a specific width and height. Furthermore, we have the= 'label' combinator +to create a static label label and 'boxed' to create a labeled border arou= nd a layout. +The 'grid' combinator lays out elements in a table with a given space betw= een the elements. +Here is for example a layout for retrieving an /x/ and /y/ coordinate from= the user, with 5 pixels space +between the controls: hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 28 - > boxed "coordinates" (grid 5 5 [[label "x", widget xinput] - > ,[label "y", widget yinput]]) +> boxed "coordinates" (grid 5 5 [[label "x", widget xinput] +> ,[label "y", widget yinput]]) hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 31 - Combinators like 'row' and 'column' are specific instances of grids. W= e can use - these combinator to good effect to add an /ok/ and /cancel/ button at = the bottom of our dialog: +Combinators like 'row' and 'column' are specific instances of grids. We ca= n use +these combinator to good effect to add an /ok/ and /cancel/ button at the = bottom of our dialog: hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 34 - > column 5 [ boxed "coordinates" (grid 5 5 [[label "x", widget xinput] - > ,[label "y", widget yinput]= ]) - > , row 5 [widget ok, widget cancel]] +> column 5 [ boxed "coordinates" (grid 5 5 [[label "x", widget xinput] +> ,[label "y", widget yinput]]) +> , row 5 [widget ok, widget cancel]] hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 38 - Layout /tranformers/ influence attributes of a layout. The 'margin' co= mbinator adds a - margin around a layout. The /align/ combinators specify how a combinat= or is aligned when - the assigned area is larger than the layout itself. We can use these t= ransformers to - add a margin around our dialog and to align the buttons to the bottom = right (instead of the - default top-left): +Layout /tranformers/ influence attributes of a layout. The 'margin' combin= ator adds a +margin around a layout. The /align/ combinators specify how a combinator i= s aligned when +the assigned area is larger than the layout itself. We can use these trans= formers to +add a margin around our dialog and to align the buttons to the bottom righ= t (instead of the +default top-left): hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 44 - > margin 10 $ column 5 [ boxed "coordinates" (grid 5 5 [[label "x", wi= dget xinput] - > ,[label "y", wi= dget yinput]]) - > , alignBottomRight $ row 5 [widget ok, widget c= ancel]] +> margin 10 $ column 5 [ boxed "coordinates" (grid 5 5 [[label "x", widget= xinput] +> ,[label "y", widget= yinput]]) +> , alignBottomRight $ row 5 [widget ok, widget cance= l]] hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 48 - Besides aligning a layout in its assigned area, we can also specify th= at a layout should - expand to fill the assigned area. The 'shaped' combinator fills an are= a while maintaining the - original proportions (or aspect ratio) of a layout. The 'expand' combi= nator always tries to fill - the entire area (and alignment is ignored). +Besides aligning a layout in its assigned area, we can also specify that a= layout should +expand to fill the assigned area. The 'shaped' combinator fills an area wh= ile maintaining the +original proportions (or aspect ratio) of a layout. The 'expand' combinato= r always tries to fill +the entire area (and alignment is ignored). hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 53 - The final attribute is the /stretch/ of a layout. A stretchable layout= may get a larger - area assigned than the minimally required area. This can be used to fi= ll out the entire parent - area -- this happens for example when a user enlarges a dialog. +The final attribute is the /stretch/ of a layout. A stretchable layout may= get a larger +area assigned than the minimally required area. This can be used to fill o= ut the entire parent +area -- this happens for example when a user enlarges a dialog. hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 57 - The default stretch and expansion mode of layout containers, like 'gri= d' and 'boxed', depends on the - stretch of the child layouts. A column of a /grid/ is only stretchabl= e when all - elements of that column have horizontal stretch. The same holds for ro= ws with vertical stretch. - When any column or row is stretchable, the grid itself will also be st= retchable in that direction - and the grid will 'expand' to fill the assigned area by default (inste= ad of being 'static'). Just like - a grid, other containers, like 'container', 'boxed', 'tabs', 'row', an= d 'column', will also propagate the stretch - and expansion mode of their child layouts. +The default stretch and expansion mode of layout containers, like 'grid' a= nd 'boxed', depends on the +stretch of the child layouts. A column of a /grid/ is only stretchable wh= en all +elements of that column have horizontal stretch. The same holds for rows w= ith vertical stretch. +When any column or row is stretchable, the grid itself will also be stretc= hable in that direction +and the grid will 'expand' to fill the assigned area by default (instead o= f being 'static'). Just like +a grid, other containers, like 'container', 'boxed', 'tabs', 'row', and 'c= olumn', will also propagate the stretch +and expansion mode of their child layouts. hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 65 - Armed with the 'stretch' combinators we can make our dialog resizeable= . - We let the input widgets resize horizontally. Furthermore, the button = row will resize - vertically and horizontally with the buttons aligned to the bottom rig= ht. Due to the - stretch propagation rules, the 'grid' and 'boxed' stretch horizontally= and 'expand' to fill the - assigned area. The horizontal 'row' does /not/ stretch by default (and= we need to use - an explicit 'stretch') and it does /not/ expand into the assigned area= by default (and therefore - alignment works properly). +Armed with the 'stretch' combinators we can make our dialog resizeable. +We let the input widgets resize horizontally. Furthermore, the button row = will resize +vertically and horizontally with the buttons aligned to the bottom right. = Due to the +stretch propagation rules, the 'grid' and 'boxed' stretch horizontally and= 'expand' to fill the +assigned area. The horizontal 'row' does /not/ stretch by default (and we = need to use +an explicit 'stretch') and it does /not/ expand into the assigned area by = default (and therefore +alignment works properly). hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 73 - > margin 10 $ column 5 [ boxed "coordinates" (grid 5 5 [[label "x", hs= tretch $ expand $ widget xinput] - > ,[label "y", hs= tretch $ expand $ widget yinput]]) - > , stretch $ alignBottomRight $ row 5 [widget ok= , widget cancel]] +> margin 10 $ column 5 [ boxed "coordinates" (grid 5 5 [[label "x", hstret= ch $ expand $ widget xinput] +> ,[label "y", hstret= ch $ expand $ widget yinput]]) +> , stretch $ alignBottomRight $ row 5 [widget ok, wi= dget cancel]] hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 77 - There are some common uses of stretchable combinators. The 'fill' comb= inators combine - stretch and expansion. For example, 'hfill' is defined as (@hstretch .= expand@). The /float/ - combinators combine alignment and 'stretch'. For example, 'floatBottom= Right' is defined - as (@stretch . alignBottomRight@). There are also horizontal and verti= cal float combinators, - like 'hfloatCentre' and 'vfloatBottom'. Here is the above example usin= g 'fill' and float: +There are some common uses of stretchable combinators. The 'fill' combinat= ors combine +stretch and expansion. For example, 'hfill' is defined as (@hstretch . exp= and@). The /float/ +combinators combine alignment and 'stretch'. For example, 'floatBottomRigh= t' is defined +as (@stretch . alignBottomRight@). There are also horizontal and vertical = float combinators, +like 'hfloatCentre' and 'vfloatBottom'. Here is the above example using 'f= ill' and float: hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 83 - > margin 10 $ column 5 [ boxed "coordinates" (grid 5 5 [[label "x", hf= ill $ widget xinput] - > ,[label "y", hf= ill $ widget yinput]]) - > , floatBottomRight $ row 5 [widget ok, widget c= ancel]] +> margin 10 $ column 5 [ boxed "coordinates" (grid 5 5 [[label "x", hfill = $ widget xinput] +> ,[label "y", hfill = $ widget yinput]]) +> , floatBottomRight $ row 5 [widget ok, widget cance= l]] hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 87 - The 'glue' combinators are stretchable empty space. For example, 'hglu= e' - is defined as (@hstretch (space 0 0)@). We can use glue to mimic align= ment. Here is the above - layout specified with glue. Note that we use 'hspace' to manually inse= rt - space between the elements or otherwise there would be space between = the glue and - the /ok/ button. +The 'glue' combinators are stretchable empty space. For example, 'hglue' +is defined as (@hstretch (space 0 0)@). We can use glue to mimic alignment= . Here is the above +layout specified with glue. Note that we use 'hspace' to manually insert +space between the elements or otherwise there would be space between the = glue and +the /ok/ button. hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 93 - > margin 10 $ column 5 [ boxed "coordinates" (grid 5 5 [[label "x", hf= ill $ widget xinput] - > ,[label "y", hf= ill $ widget yinput]]) - > , glue - > , row 0 [hglue, widget ok, hspace 5, widget can= cel]] +> margin 10 $ column 5 [ boxed "coordinates" (grid 5 5 [[label "x", hfill = $ widget xinput] +> ,[label "y", hfill = $ widget yinput]]) +> , glue +> , row 0 [hglue, widget ok, hspace 5, widget cancel]= ] hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 98 - Splitter windows can also be specified with layout; you get somewhat l= ess functionality - but it is quite convenient for most applications. A horizontal split i= s done using - 'hsplit' while a vertical split is specified with a 'vsplit'. +Splitter windows can also be specified with layout; you get somewhat less = functionality +but it is quite convenient for most applications. A horizontal split is do= ne using +'hsplit' while a vertical split is specified with a 'vsplit'. hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 102 - The layout for notebooks is specified with the 'tabs' combinator. The = following - example shows this (and note also how we use 'container' to set the la= yout of panels): +The layout for notebooks is specified with the 'tabs' combinator. The foll= owing +example shows this (and note also how we use 'container' to set the layout= of panels): hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 105 - > nbook <- notebookCreate ... - > panel1 <- panelCreate nbook ... - > ... - > panel2 <- panelCreate nbook ... - > ... - > windowSetLayout frame - > (tabs nbook [tab "page one" $ container panel1 $ margin 10 $ floa= tCentre $ widget ok - > ,tab "page two" $ container panel2 $ margin 10 $ hfil= l $ widget quit]) +> nbook <- notebookCreate ... +> panel1 <- panelCreate nbook ... +> ... +> panel2 <- panelCreate nbook ... +> ... +> windowSetLayout frame +> (tabs nbook [tab "page one" $ container panel1 $ margin 10 $ floatCen= tre $ widget ok +> ,tab "page two" $ container panel2 $ margin 10 $ hfill $ = widget quit]) hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 114 - The pages /always/ need to be embedded inside a 'container' (normally = a 'Panel'). The - title of the pages is determined from the label of the container widge= t. +The pages /always/ need to be embedded inside a 'container' (normally a 'P= anel'). The +title of the pages is determined from the label of the container widget. hunk ./wxcore/src/Graphics/UI/WXCore/Layout.hs 117 - Note: /At the moment, extra space is divided evenly among stretchable = layouts. We plan to add - a (/@proportion :: Int -> Layout -> Layout@/) combinator in the future= to stretch layouts - according to a relative weight, but unfortunately, that entails implem= enting a better - /'FlexGrid'/ sizer for wxWindows./ +Note: /At the moment, extra space is divided evenly among stretchable layo= uts. We plan to add +a (/@proportion :: Int -> Layout -> Layout@/) combinator in the future to = stretch layouts +according to a relative weight, but unfortunately, that entails implementi= ng a better +/'FlexGrid'/ sizer for wxWindows./ hunk ./wxcore/src/Graphics/UI/WXCore/OpenGL.hs 2 -{-| Module : OpenGL - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : OpenGL + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wxcore/src/Graphics/UI/WXCore/OpenGL.hs 6 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wxcore/src/Graphics/UI/WXCore/OpenGL.hs 10 - Convenience wrappers for the openGL canvas window ('GLCanvas'). +Convenience wrappers for the openGL canvas window ('GLCanvas'). hunk ./wxcore/src/Graphics/UI/WXCore/Print.hs 2 -{-| Module : Print - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : Print + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wxcore/src/Graphics/UI/WXCore/Print.hs 6 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wxcore/src/Graphics/UI/WXCore/Print.hs 10 - Printer abstraction layer. See @samples/wx/Print.hs@ for a demo. +Printer abstraction layer. See @samples/wx/Print.hs@ for a demo. hunk ./wxcore/src/Graphics/UI/WXCore/Print.hs 12 - The application should create a 'pageSetupDialog' to hold the printer - settings of the user. +The application should create a 'pageSetupDialog' to hold the printer +settings of the user. hunk ./wxcore/src/Graphics/UI/WXCore/Print.hs 15 - > f <- frame [text :=3D "Print demo"] = - > = - > -- Create a pageSetup dialog with an initial margin of 25 mm. - > pageSetup <- pageSetupDialog f 25 +> f <- frame [text :=3D "Print demo"] = +> = +> -- Create a pageSetup dialog with an initial margin of 25 mm. +> pageSetup <- pageSetupDialog f 25 hunk ./wxcore/src/Graphics/UI/WXCore/Print.hs 20 - The dialog can be shown using 'pageSetupShowModal'. Furthermore, the = - function 'printDialog' and 'printPreview' can be used to show a print = dialog - and preview window. +The dialog can be shown using 'pageSetupShowModal'. Furthermore, the = +function 'printDialog' and 'printPreview' can be used to show a print dial= og +and preview window. hunk ./wxcore/src/Graphics/UI/WXCore/Print.hs 24 - > mprint <- menuItem file = - > [ text :=3D "&Print..." - > , help :=3D "Print a test" - > , on command :=3D printDialog pageSetup "Test" pageF= un printFun - > ] - > mpreview <- menuItem file = - > [ text :=3D "P&rint preview" - > , help :=3D "Print preview" - > , on command :=3D printPreview pageSetup "Test" pageF= un printFun = +> mprint <- menuItem file = +> [ text :=3D "&Print..." +> , help :=3D "Print a test" +> , on command :=3D printDialog pageSetup "Test" pageFun p= rintFun +> ] +> mpreview <- menuItem file = +> [ text :=3D "&Print preview" +> , help :=3D "Print preview" +> , on command :=3D printPreview pageSetup "Test" pageFun p= rintFun = hunk ./wxcore/src/Graphics/UI/WXCore/Print.hs 34 - Those functions take a 'PageFunction' and 'PrintFunction' respectively= that get called - to determine the number of needed pages and to draw on the printer DC = respectively. - The framework takes automatic care of printer margins, preview scaling= etc. +Those functions take a 'PageFunction' and 'PrintFunction' respectively tha= t get called +to determine the number of needed pages and to draw on the printer DC resp= ectively. +The framework takes automatic care of printer margins, preview scaling etc= . hunk ./wxcore/src/Graphics/UI/WXCore/Process.hs 2 -{-| Module : Process - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : Process + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wxcore/src/Graphics/UI/WXCore/Process.hs 6 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wxcore/src/Graphics/UI/WXCore/Process.hs 10 - Process and stream wrappers. +Process and stream wrappers. hunk ./wxcore/src/Graphics/UI/WXCore/Types.hs 3 -{-| Module : Types - Copyright : (c) Daan Leijen 2003 - License : wxWindows +{-| Module : Types + Copyright : (c) Daan Leijen 2003 + License : wxWindows hunk ./wxcore/src/Graphics/UI/WXCore/Types.hs 7 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wxcore/src/Graphics/UI/WXCore/Types.hs 11 - Basic types and operations. +Basic types and operations. hunk ./wxcore/src/Graphics/UI/WXCore/WxcObject.hs 3 -{-| Module : WxcObject - Copyright : (c) Daan Leijen 2003, 2004 - License : wxWindows +{-| Module : WxcObject + Copyright : (c) Daan Leijen 2003, 2004 + License : wxWindows hunk ./wxcore/src/Graphics/UI/WXCore/WxcObject.hs 7 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wxcore/src/Graphics/UI/WXCore/WxcObject.hs 11 - Basic object type. +Basic object type. hunk ./wxcore/src/Graphics/UI/WXCore/WxcTypes.hs 4 -{-| Module : WxcTypes - Copyright : (c) Daan Leijen 2003, 2004 - License : wxWindows +{-| Module : WxcTypes + Copyright : (c) Daan Leijen 2003, 2004 + License : wxWindows hunk ./wxcore/src/Graphics/UI/WXCore/WxcTypes.hs 8 - Maintainer : da...@cs... - Stability : provisional - Portability : portable + Maintainer : wxh...@li... + Stability : provisional + Portability : portable hunk ./wxcore/src/Graphics/UI/WXCore/WxcTypes.hs 12 - Basic types and marshaling code for the wxWindows C library. +Basic types and marshaling code for the wxWindows C library. hunk ./wxdirect/src/HaskellNames.hs 156 - ,"{-| Module : " ++ moduleName - ," Copyright : Copyright (c) Daan Leijen 2003, 2004" - ," License : wxWindows" + ,"{-|\tModule : " ++ moduleName + ,"\tCopyright : Copyright (c) Daan Leijen 2003, 2004" + ,"\tLicense : wxWidgets" hunk ./wxdirect/src/HaskellNames.hs 160 - ," Maintainer : da...@cs..." - ," Stability : provisional" - ," Portability : portable" + ,"\tMaintainer : wxh...@li..." + ,"\tStability : provisional" + ,"\tPortability : portable" } [Chnage source code's maintainer to be wxh...@li...= t. shelarcy <she...@gm...>**20081028060309] { hunk ./wx/src/Graphics/UI/WX/TopLevelWindow.hs 7 - Maintainer : jer...@ga...=0D + Maintainer : wxh...@li...=0D hunk ./wxdirect/src/Classes.hs 6 - Maintainer : da...@cs... + Maintainer : wxh...@li... hunk ./wxdirect/src/CompileClassInfo.hs 6 - Maintainer : da...@cs... + Maintainer : wxh...@li... hunk ./wxdirect/src/CompileClassTypes.hs 6 - Maintainer : da...@cs... + Maintainer : wxh...@li... hunk ./wxdirect/src/CompileClasses.hs 6 - Maintainer : da...@cs... + Maintainer : wxh...@li... hunk ./wxdirect/src/CompileDefs.hs 6 - Maintainer : da...@cs... + Maintainer : wxh...@li... hunk ./wxdirect/src/CompileHeader.hs 6 - Maintainer : da...@cs... + Maintainer : wxh...@li... hunk ./wxdirect/src/CompileSTC.hs 1 +--------------------------------------------------------------------------= --------------- +{-| Module : CompileSTC + Copyright : (c) Haste Developper Team 2004, 2005 + License : BSD-style + + Maintainer : wxh...@li... + Stability : provisional + Portability : portable +-} +--------------------------------------------------------------------------= --------------- hunk ./wxdirect/src/DeriveTypes.hs 6 - Maintainer : da...@cs... + Maintainer : wxh...@li... hunk ./wxdirect/src/HaskellNames.hs 6 - Maintainer : da...@cs... + Maintainer : wxh...@li... hunk ./wxdirect/src/Main.hs 6 - Maintainer : da...@cs... + Maintainer : wxh...@li... hunk ./wxdirect/src/MultiSet.hs 6 - Maintainer : da...@cs... + Maintainer : wxh...@li... hunk ./wxdirect/src/ParseC.hs 6 - Maintainer : da...@cs... + Maintainer : wxh...@li... hunk ./wxdirect/src/ParseEiffel.hs 6 - Maintainer : da...@cs... + Maintainer : wxh...@li... hunk ./wxdirect/src/Types.hs 6 - Maintainer : da...@cs... + Maintainer : wxh...@li... } [Remove modification history from source code (Use darcs instead). shelarcy <she...@gm...>**20081028060925] { hunk ./wx/src/Graphics/UI/WX/Controls.hs 13 --} - -{- - Modification History: - When Who What - 300806 jer...@gm... Set list item mask (wxLIST_MASK_T= EXT) - (on behalf of she...@gm...) hunk ./wx/src/Graphics/UI/WX/Events.hs 56 --} - -{- - Modification History: - When Who What - 300806 jer...@gm... Add support for calendar event - (on behalf of she...@gm...) hunk ./wx/src/Graphics/UI/WX/Menu.hs 27 --} -{- - Modification History: - When Who What - 300806 jer...@gm... Add support for toolbar divider - (on behalf of she...@gm...) } Context: [Fix: BUILD_XRCGETCTRL_FN macro cause problem when using gcc. shelarcy <she...@gm...>**20081023141104] = [Small update to XRC support jer...@gm...**20081021104449] = [Add XRC support jer...@gm...**20081021095548] = [Use wxWidgets 2.8.9 in default when building on Windows. shelarcy <she...@gm...>**20081011042903] = [Bump version number to 0.10.5 shelarcy <she...@gm...>**20081011033152] = [Fix configure doesn't care about that users can install some version of pa= ckages. shelarcy <she...@gm...>**20081011032555] = [Use -dep-makefile instead of -optdep-f on GHC 6.10.x to avoid warning abou= t using dreprecated option message. shelarcy <she...@gm...>**20081010170230] = [Update changes.txt information by 0.10.4's changes. shelarcy <she...@gm...>**20081010160351] = [Update wx packages' description and dependency. shelarcy <she...@gm...>**20081010150113] = [Change SVG's auto-generated function name to be more friendly. shelarcy <she...@gm...>**20081010145951] = [Bump Cabal's version number to 0.10.4, too. shelarcy <she...@gm...>**20081009094345] = [Bump version number to 0.10.4 shelarcy <she...@gm...>**20081009092404] = [Fix make uninstall doesn't work well on GHC 6.10.x. shelarcy <she...@gm...>**20080930052522] = [Fix wxcore's depends field has two base package version. shelarcy <she...@gm...>**20080930052150] = [Only use wxEVT_MEDIA* when wxUSE_MEDIACTRL-flag is set mad...@ya...**20080919152917] = [Fix building with GHC 6.10.*. shelarcy <she...@gm...>**20080922155920] = [Change wxcAppUSleep to wxcMilliSleep (wxcAppUSleep is deprecated now). shelarcy <she...@gm...>**20080730094020] = [Removed unnecessary parameter from logSelect helper in Controls.hs WX samp= le jo...@gm...**20080812170... [truncated message content] |
From: shelarcy <she...@gm...> - 2008-10-28 02:48:21
|
On Tue, 21 Oct 2008 19:59:52 +0900, Jeremy O'Donoghue <jer...@gm...> wrote: > Attached is a set of patches to enable XRC support in wxHaskell Darcs > head, along with a couple of samples (in the samples/test/XRCControls > directory) showing how to use the new functionality. A week past from your mail. So, I pushed that with my patch for gcc's. > I have some text ready for the wxHaskell wiki to help people to try this > stuff for themselves, which I'll put in once the patch has been pushed. Go ahead, please. Best Regards, -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |
From: Kido T. <she...@co...> - 2008-10-28 02:31:24
|
Thu Oct 23 10:11:04 EDT 2008 shelarcy <she...@gm...> * Fix: BUILD_XRCGETCTRL_FN macro cause problem when using gcc. M ./wxc/src/eljrc.cpp -2 +2 View patch online: http://code.haskell.org/wxhaskell/_darcs/patches/20081023141104-c1071-7613476257e1110e9e4278698e222d47333e0068.gz |
From: Kido T. <she...@co...> - 2008-10-28 02:31:21
|
Tue Oct 21 05:55:48 EDT 2008 jer...@gm... * Add XRC support M ./changes.txt -1 +15 A ./samples/test/XRCControls/ A ./samples/test/XRCControls/XRCControls_Wx.hs A ./samples/test/XRCControls/XRCMenu.hs A ./samples/test/XRCControls/controls.xrc A ./samples/test/XRCControls/xrcmenu.xrc M ./wx/src/Graphics/UI/WX/Controls.hs -14 +150 M ./wx/src/Graphics/UI/WX/Frame.hs +16 M ./wx/src/Graphics/UI/WX/Menu.hs -3 +40 M ./wxc/eiffel/wx_defs.e +6 M ./wxc/include/stc.h +4 M ./wxc/include/wxc_glue.h -10 +46 M ./wxc/src/eljmenu.cpp -2 +3 M ./wxc/src/eljmenubar.cpp -2 +3 M ./wxc/src/eljrc.cpp -75 +137 View patch online: http://code.haskell.org/wxhaskell/_darcs/patches/20081021095548-75908-38573f98683fb23a0735171d538c7cf1b43c5bad.gz |
From: Kido T. <she...@co...> - 2008-10-28 02:31:21
|
Tue Oct 21 06:44:49 EDT 2008 jer...@gm... * Small update to XRC support M ./wxc/src/eljrc.cpp -3 View patch online: http://code.haskell.org/wxhaskell/_darcs/patches/20081021104449-75908-7c32c5b05599c4cd3e1965a372cfc67ade21d9e7.gz |
From: shelarcy <she...@gm...> - 2008-10-24 01:57:11
|
Hi Jeremy, On Fri, 24 Oct 2008 01:58:18 +0900, Jeremy O'Donoghue <jer...@gm...> wrote: > One thing to try: does adding a space after the paste tokens and before > the '*' tokens help? I fixed problem by this definition that I sent before mail. #define BUILD_XRCGETCTRL_FN(_typ) \ EWXWEXPORT(wx##_typ *, wxXmlResource_Get##_typ)(wxWindow* _win, wxString* _str_id) \ { \ return reinterpret_cast<wx##_typ *>(_win->FindWindow(wxXmlResource::GetXRCID(*_str_id))); \ } http://sourceforge.net/mailarchive/message.php?msg_name=op.ujhe65qag8rhh0%40shelarcywin.localdomain But your definition doesn't solve this problem. > (i.e. > > #define BUILD_XRCGETCTRL_FN(_typ) > \ > EWXWEXPORT(wx##_typ## *, wxXmlResource_Get##_typ)(wxWindow* _win, > wxString* _str_id) \ > { > \ > return reinterpret_cast<wx##_typ## > *>(_win->FindWindow(wxXmlResource::GetXRCID(*_str_id))); \ > } > > Alternatively, it's pretty easy to replace the auto-generated functions > with the manually created versions. If you find that the extra space > suggestion above does not work, I'll do a patch tomorrow with each of > the functions implemented in full. Anyway, I fixed this problem now. So you don't have to replace auto-generated functions with the manually created versions. I attached the newer patch in this mail. Best Regards, -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |
From: Jeremy O'D. <jer...@gm...> - 2008-10-23 16:58:24
|
Hi Shelarcy, I'll try it on my Mac when I get home - could prove to be a pre-processor difference between Visual Studio and GCC. In the two cases given, I'd expect the BUILD_XRCGETCTRL_FN macro to expand as follows: Where _typ is Sizer EWXWEXPORT(wxSizer*, wxXmlResource_GetSizer)(wxWindow* _win, wxString* _str_id) { return reinterpret_cast<wxSizer*>(_win->FindWindow(wxXmlResource::GetXRCID(*_str_id)); } Where _typ is BoxSizer EWXWEXPORT(wxBoxSizer*, wxXmlResource_GetBoxSizer)(wxWindow* _win, wxString* _str_id) { return reinterpret_cast<wxBoxSizer*>(_win->FindWindow(wxXmlResource::GetXRCID(*_str_id)); } One thing to try: does adding a space after the paste tokens and before the '*' tokens help? (i.e. #define BUILD_XRCGETCTRL_FN(_typ) \ EWXWEXPORT(wx##_typ## *, wxXmlResource_Get##_typ)(wxWindow* _win, wxString* _str_id) \ { \ return reinterpret_cast<wx##_typ## *>(_win->FindWindow(wxXmlResource::GetXRCID(*_str_id))); \ } Alternatively, it's pretty easy to replace the auto-generated functions with the manually created versions. If you find that the extra space suggestion above does not work, I'll do a patch tomorrow with each of the functions implemented in full. Regards Jeremy On Thu, 23 Oct 2008 21:59:36 +0900, "shelarcy" <she...@gm...> said: > Hi, > > On Tue, 21 Oct 2008 19:59:52 +0900, Jeremy O'Donoghue > <jer...@gm...> wrote: > > Attached is a set of patches to enable XRC support in wxHaskell Darcs > > head, along with a couple of samples (in the samples/test/XRCControls > > directory) showing how to use the new functionality. They have only > > really been tested on Windows, so it would help if people can look for > > bugs on other platforms. > > I got error when building wxc with xrc.patch on Mac OS X platform. > > g++ -c wxc/src/eljrc.cpp -o dist/wxc/eljrc.o -MD -DwxcREFUSE_MEDIACTRL > -I/usr/lib/wx/include/mac-unicode-debug-2.8 -I/usr/include/wx-2.8 > -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXMAC__ > -DwxUSE_STC=1 -DwxUSE_SVG=1 -fPIC -Iwxc/include > wxc/src/eljrc.cpp:437:1: error: pasting "wxSizer" and "*" does not give a > valid preprocessing token > wxc/src/eljrc.cpp:437:1: error: pasting "wxSizer" and "*" does not give a > valid preprocessing token > wxc/src/eljrc.cpp:438:1: error: pasting "wxBoxSizer" and "*" does not > give a valid preprocessing token > (snip) > make: *** [dist/wxc/eljrc.o] Error 1 > Build Failed. > > It seems that BUILD_XRCGETCTRL_FN macro causes problem. Does anyone knows > how to solve this problem? > > My Mac's gcc version is 4.0.1. > > shelarcy$ gcc -v > Using built-in specs. > Target: i686-apple-darwin9 > Configured with: /var/tmp/gcc/gcc-5484~1/src/configure --disable-checking > -enable-werror --prefix=/usr --mandir=/share/man > --enable-languages=c,objc,c++,obj-c++ > --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ > --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib > --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic > --host=i686-apple-darwin9 --target=i686-apple-darwin9 > Thread model: posix > gcc version 4.0.1 (Apple Inc. build 5484) > > > Best Regards, > > -- > shelarcy <shelarcy hotmail.co.jp> > http://page.freett.com/shelarcy/ -- Jeremy O'Donoghue jer...@gm... |
From: shelarcy <she...@gm...> - 2008-10-23 14:44:10
|
On Thu, 23 Oct 2008 21:59:36 +0900, shelarcy <she...@gm...> wrote: > I got error when building wxc with xrc.patch on Mac OS X platform. > > g++ -c wxc/src/eljrc.cpp -o dist/wxc/eljrc.o -MD -DwxcREFUSE_MEDIACTRL -I/usr/lib/wx/include/mac-unicode-debug-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXMAC__ -DwxUSE_STC=1 -DwxUSE_SVG=1 -fPIC -Iwxc/include > wxc/src/eljrc.cpp:437:1: error: pasting "wxSizer" and "*" does not give a valid preprocessing token > wxc/src/eljrc.cpp:437:1: error: pasting "wxSizer" and "*" does not give a valid preprocessing token > wxc/src/eljrc.cpp:438:1: error: pasting "wxBoxSizer" and "*" does not give a valid preprocessing token > (snip) > make: *** [dist/wxc/eljrc.o] Error 1 > Build Failed. > > It seems that BUILD_XRCGETCTRL_FN macro causes problem. Does anyone knows > how to solve this problem? I fixed problem by below way. hunk ./wxc/src/eljrc.cpp 432 - EWXWEXPORT(wx##_typ##*, wxXmlResource_Get##_typ)(wxWindow* _win, wxString* _str_id) \ + EWXWEXPORT(wx##_typ *, wxXmlResource_Get##_typ)(wxWindow* _win, wxString* _str_id) \ hunk ./wxc/src/eljrc.cpp 434 - return reinterpret_cast<wx##_typ##*>(_win->FindWindow(wxXmlResource::GetXRCID(*_str_id))); \ + return reinterpret_cast<wx##_typ *>(_win->FindWindow(wxXmlResource::GetXRCID(*_str_id))); \ After modifying this part, samples work on Mac OS X, too. -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |
From: shelarcy <she...@gm...> - 2008-10-23 12:59:58
|
Hi, On Tue, 21 Oct 2008 19:59:52 +0900, Jeremy O'Donoghue <jer...@gm...> wrote: > Attached is a set of patches to enable XRC support in wxHaskell Darcs > head, along with a couple of samples (in the samples/test/XRCControls > directory) showing how to use the new functionality. They have only > really been tested on Windows, so it would help if people can look for > bugs on other platforms. I got error when building wxc with xrc.patch on Mac OS X platform. g++ -c wxc/src/eljrc.cpp -o dist/wxc/eljrc.o -MD -DwxcREFUSE_MEDIACTRL -I/usr/lib/wx/include/mac-unicode-debug-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXMAC__ -DwxUSE_STC=1 -DwxUSE_SVG=1 -fPIC -Iwxc/include wxc/src/eljrc.cpp:437:1: error: pasting "wxSizer" and "*" does not give a valid preprocessing token wxc/src/eljrc.cpp:437:1: error: pasting "wxSizer" and "*" does not give a valid preprocessing token wxc/src/eljrc.cpp:438:1: error: pasting "wxBoxSizer" and "*" does not give a valid preprocessing token (snip) make: *** [dist/wxc/eljrc.o] Error 1 Build Failed. It seems that BUILD_XRCGETCTRL_FN macro causes problem. Does anyone knows how to solve this problem? My Mac's gcc version is 4.0.1. shelarcy$ gcc -v Using built-in specs. Target: i686-apple-darwin9 Configured with: /var/tmp/gcc/gcc-5484~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9 Thread model: posix gcc version 4.0.1 (Apple Inc. build 5484) Best Regards, -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |
From: Jeremy O'D. <jer...@gm...> - 2008-10-21 10:59:59
|
Hi all, Attached is a set of patches to enable XRC support in wxHaskell Darcs head, along with a couple of samples (in the samples/test/XRCControls directory) showing how to use the new functionality. They have only really been tested on Windows, so it would help if people can look for bugs on other platforms. I have some text ready for the wxHaskell wiki to help people to try this stuff for themselves, which I'll put in once the patch has been pushed. I'm also in the process of translating the 'Real World Haskell' HPodder example from GtkHs to wxHaskell, with some accompanying tutorial text, in the hope that it will help us to showcase wxHaskell when RWH becomes available. I should have the wxHPodder sample finished in a few days, but I want to talk to the RWH authors to see how they would prefer us to make this available (they may prefer that it is not distributed as part of wxHaskell, for example). Regards Jeremy -- Jeremy O'Donoghue jer...@gm... |
From: Jeremy O'D. <jer...@gm...> - 2008-10-20 12:56:12
|
Hi Henk-Jan, You have come across a known, and (I'm afraid) difficult issue to fix. While I can give an explanation below, I don't think we will be able to fix the issue. I will update the wiki to reflect the fact that this is a known problem, as this information has somehow been lost in the move from the Sourceforge.net site to the Haskell.org wiki. Best regards Jeremy On Sun, 19 Oct 2008 18:46:12 +0200, "Henk-Jan van Tuyl" <hj...@ch...> said: > > L.S., > > The bouncing balls demo crashes GHCi when run for the second time; to > reproduce this: > 1. Start GHCi > 2. Load BouncingBalls.hs > 3. Run main > 4. Close the BouncingBalls window > 5. Run main > > > The most minimal program that reproduces this error is: > > > module Main where > > > import Graphics.UI.WX > > > main :: IO () > > main = start myFrame > >myFrame :: IO () > > myFrame = > > do > > f <- frameFixed [text := "Crash test"] > > return () The problem is that versions of wxWidgets after 2.4.x make use of static C++ destructors which execute only when the executable is unloaded. This means that when main terminates in GHCI, the wxWidgets library is not left in a sane state (because the DLL is still loaded, and the destructors have not run). For this reason, it is not very practical to use recent versions of wxHaskell with GHCi. I took a quick look, a year or so back, at continuing to support wxWidgets 2.4.2 in wxHaskell, and I'm afraid the conclusion was that the wxHaskell team just don't have the time available to do this (many wxWidgets APIs have changed enough in the last three years that we would really be maintaining two separate branches). The alternative approach (of making this functionality work with recent versions of the wxWidgets library) is a substantial amount of work (and the work would be mainly in C, rather than Haskell!), as it would require dynamically unloading wxWidgets DLLs when main terminates and reloading them when it is run again. I'd love someone with a spare couple of months to do this! If it is absolutely essential for you to support incremental development using GHCi, the only real option is to use 0.9.4-1 (see http://sourceforge.net/project/showfiles.php?group_id=73133&package_id=73173). I fear that this may require a little work before it will build on the most recent versions of GHC. > Software used: > GHC 6.8.3 / wxWindows 0.10.3 / Windows XP The same behaviour is likely to be observed on all platforms. -- Jeremy O'Donoghue jer...@gm... |
From: Henk-Jan v. T. <hj...@ch...> - 2008-10-19 20:26:22
|
L.S., The page http://hackage.haskell.org/packages/archive/wxcore/0.10.1/doc/html/Graphics-UI-WXCore-Types.html contains an invalid link to the documentation of Graphics.UI.WXH.WxcClasses, the link should be: http://hackage.haskell.org/packages/archive/wxcore/0.10.1/doc/html/Graphics-UI-WXCore-WxcClasses.html -- Regards, Henk-Jan van Tuyl -- http://functor.bamikanarie.com http://Van.Tuyl.eu/ -- |
From: Henk-Jan v. T. <hj...@ch...> - 2008-10-19 16:46:21
|
L.S., The bouncing balls demo crashes GHCi when run for the second time; to reproduce this: 1. Start GHCi 2. Load BouncingBalls.hs 3. Run main 4. Close the BouncingBalls window 5. Run main The most minimal program that reproduces this error is: > module Main where > import Graphics.UI.WX > main :: IO () > main = start myFrame >myFrame :: IO () > myFrame = > do > f <- frameFixed [text := "Crash test"] > return () Software used: GHC 6.8.3 / wxWindows 0.10.3 / Windows XP -- Regards, Henk-Jan van Tuyl -- http://functor.bamikanarie.com http://Van.Tuyl.eu/ -- |
From: Henk-Jan v. T. <hj...@ch...> - 2008-10-15 22:51:05
|
L.S., Trying to compile the sample programs in the wxHaskell package, I received several compiler error messages: [...]\Haskell\GUI\wxhaskell\wxhaskell-0.10.3\samples\wx> for %a in (*.hs) do ghc --make %a [...] C:\Documents and Settings\Henk-Jan\Mijn documenten\SoftwareOntwikkeling\Haskell\GUI\wxhaskell\wxhaskell-0.10.3\samples\wx>ghc --make TimeFlowsEx.hs [1 of 1] Compiling Main ( TimeFlowsEx.hs, TimeFlowsEx.o ) TimeFlowsEx.hs:113:14: Couldn't match expected type `CDialog ()' against inferred type `CPanel p' Expected type: Attr (Dialog ()) a Inferred type: Attr (Panel p) (Button ()) In the first argument of `(:=)', namely `defaultButton' In the expression: defaultButton := ok [...]\Haskell\GUI\wxhaskell\wxhaskell-0.10.3\samples\wxcore>for %a in (*.hs) do ghc --make %a [...] [...]\Haskell\GUI\wxhaskell\wxhaskell-0.10.3\samples\wxcore>ghc --make ByeDemo.hs [1 of 1] Compiling Main ( ByeDemo.hs, ByeDemo.o ) ByeDemo.hs:36:7: Not in scope: `topLevelWindowSetDefaultItem' [...] [...]\Haskell\GUI\wxhaskell\wxhaskell-0.10.3\samples\wxcore>ghc --make ImageViewer.hs [1 of 1] Compiling Main ( ImageViewer.hs, ImageViewer.o ) ImageViewer.hs:40:7: Not in scope: `topLevelWindowSetIconFromFile' -- Regards, Henk-Jan van Tuyl -- http://functor.bamikanarie.com http://Van.Tuyl.eu/ -- |
From: shelarcy <she...@gm...> - 2008-10-12 00:59:58
|
Pushed. 2008/10/11 shelarcy <she...@gm...>: > Sat Oct 11 12:25:55 =93=8C=8B=9E (=95W=8F=80=8E=9E) 2008 shelarcy <shelarc= > y...@gm...> > * Fix configure doesn't care about that users can install some version of= > packages. > > Sat Oct 11 12:31:52 =93=8C=8B=9E (=95W=8F=80=8E=9E) 2008 shelarcy <shelarc= > y...@gm...> > * Bump version number to 0.10.5 > > Sat Oct 11 13:29:03 =93=8C=8B=9E (=95W=8F=80=8E=9E) 2008 shelarcy <shelarc= > y...@gm...> > * Use wxWidgets 2.8.9 in default when building on Windows. -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |