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] |