You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(12) |
Aug
(34) |
Sep
(14) |
Oct
(36) |
Nov
(32) |
Dec
(15) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
(9) |
Mar
(31) |
Apr
(36) |
May
(17) |
Jun
(21) |
Jul
(13) |
Aug
(18) |
Sep
(2) |
Oct
(10) |
Nov
(18) |
Dec
(28) |
2005 |
Jan
(26) |
Feb
(15) |
Mar
(26) |
Apr
(11) |
May
(60) |
Jun
(3) |
Jul
(12) |
Aug
(4) |
Sep
(12) |
Oct
(19) |
Nov
(36) |
Dec
(10) |
2006 |
Jan
(6) |
Feb
(13) |
Mar
(6) |
Apr
(2) |
May
(9) |
Jun
(3) |
Jul
(6) |
Aug
(13) |
Sep
(1) |
Oct
(24) |
Nov
(33) |
Dec
(47) |
2007 |
Jan
(21) |
Feb
(41) |
Mar
(17) |
Apr
(9) |
May
(4) |
Jun
(20) |
Jul
(24) |
Aug
(71) |
Sep
(35) |
Oct
(10) |
Nov
(39) |
Dec
(39) |
2008 |
Jan
(24) |
Feb
(42) |
Mar
(61) |
Apr
(12) |
May
(11) |
Jun
(4) |
Jul
(9) |
Aug
(6) |
Sep
(6) |
Oct
(4) |
Nov
(3) |
Dec
(14) |
2009 |
Jan
(25) |
Feb
(18) |
Mar
(19) |
Apr
(24) |
May
(14) |
Jun
(7) |
Jul
(14) |
Aug
(25) |
Sep
(40) |
Oct
(20) |
Nov
(22) |
Dec
(4) |
2010 |
Jan
(55) |
Feb
(11) |
Mar
(9) |
Apr
(10) |
May
(10) |
Jun
(9) |
Jul
(7) |
Aug
(4) |
Sep
(15) |
Oct
(7) |
Nov
(2) |
Dec
(3) |
2011 |
Jan
(2) |
Feb
(1) |
Mar
(4) |
Apr
(6) |
May
(20) |
Jun
(30) |
Jul
(15) |
Aug
(4) |
Sep
(23) |
Oct
(24) |
Nov
(3) |
Dec
(8) |
2012 |
Jan
(23) |
Feb
(7) |
Mar
(19) |
Apr
(48) |
May
(8) |
Jun
(27) |
Jul
(10) |
Aug
(1) |
Sep
(11) |
Oct
(1) |
Nov
|
Dec
(3) |
2013 |
Jan
(1) |
Feb
|
Mar
(17) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(12) |
Sep
(2) |
Oct
|
Nov
|
Dec
(1) |
2015 |
Jan
|
Feb
|
Mar
(14) |
Apr
(5) |
May
(1) |
Jun
|
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
(2) |
Dec
(1) |
2016 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: shelarcy <she...@gm...> - 2007-11-25 03:06:58
|
Hi Eric, On Sun, 25 Nov 2007 08:18:40 +0900, Eric Y. Kow <eri...@gm...> wrote: > This one gives me: > > wxc/src/stc.cpp: In function ‘void > wxStyledTextEvent_SetDragResult(void*, void*)’: > wxc/src/stc.cpp:522: error: return-statement with a value, in function > returning 'void' Hmm ... it seems that this problem occur by uncommenting its function. And I usually use --with-stc in configuration phase. So this problem through my check. I fixed this problem and send patch again. Please test newer version. Best Regards, -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |
From: shelarcy <she...@gm...> - 2007-11-25 02:53:20
|
DarcsURL: C:/home/shelarcy/wxhaskell=0A= MIME-Version: 1.0=0A= Content-Type: multipart/mixed; boundary=3D"=3D_"=0A= =0A= --=3D_=0A= Content-Type: text/plain=0A= Content-Transfer-Encoding: quoted-printable=0A= =0A= Fri Nov 23 18:53:57 =3D93=3D8C=3D8B=3D9E (=3D95W=3D8F=3D80=3D8E=3D9E) = 2007 shelarcy <shelarc=3D=0A= y...@gm...>=0A= * Move drag-and-drop events to Graphics.UI.WCCore.Events=0A= =0A= Sat Nov 24 21:44:29 =3D93=3D8C=3D8B=3D9E (=3D95W=3D8F=3D80=3D8E=3D9E) = 2007 shelarcy <shelarc=3D=0A= y...@gm...>=0A= * Add drag and drop events to wxStyledTextCtrl=0A= =0A= Sat Nov 24 23:33:23 =3D93=3D8C=3D8B=3D9E (=3D95W=3D8F=3D80=3D8E=3D9E) = 2007 shelarcy <shelarc=3D=0A= y...@gm...>=0A= * Add tests for wxStyledTextCtrl=0A= =0A= Sun Nov 25 11:14:23 =3D93=3D8C=3D8B=3D9E (=3D95W=3D8F=3D80=3D8E=3D9E) = 2007 shelarcy <shelarc=3D=0A= y...@gm...>=0A= * Fix typo and incorrect compilation flag in stc.cpp=0A= =0A= --=3D_=0A= Content-Type: text/x-darcs-patch; = name=3D"move-drag_and_drop-events-to-graphics_ui_wccore_events.dpatch"=0A= Content-Transfer-Encoding: quoted-printable=0A= Content-Description: A darcs patch for your repository!=0A= =0A= =0A= New patches:=0A= =0A= [Move drag-and-drop events to Graphics.UI.WCCore.Events=0A= shelarcy <she...@gm...>**20071123095357] {=0A= hunk ./makefile 90=0A= - Graphics/UI/WXCore/DragAndDrop \=0A= hunk ./makefile 91=0A= + Graphics/UI/WXCore/DragAndDrop \=0A= hunk ./makefile 123=0A= - Graphics/UI/WXCore/DragAndDrop \=0A= hunk ./wxcore/src/Graphics/UI/WXCore/DragAndDrop.hs 16=0A= +=0A= hunk ./wxcore/src/Graphics/UI/WXCore/DragAndDrop.hs 22=0A= -=0A= - -- * Set event handlers=0A= - -- ** Drop Target events=0A= - , DragResult (..)=0A= - , dropTargetOnData=0A= - , dropTargetOnDrop=0A= - , dropTargetOnEnter=0A= - , dropTargetOnDragOver=0A= - , dropTargetOnLeave=0A= - =3D=0A= =0A= - -- ** On DragAndDropEvent=0A= - , DragMode (..)=0A= - , dragAndDrop=0A= - =3D=0A= =0A= - -- ** Special handler for Drop File event=0A= - , fileDropTarget=0A= - -- ** Special handler for Drop Text event =3D=0A= =0A= - , textDropTarget=0A= hunk ./wxcore/src/Graphics/UI/WXCore/DragAndDrop.hs 25=0A= +import Graphics.UI.WXCore.Events=0A= hunk ./wxcore/src/Graphics/UI/WXCore/DragAndDrop.hs 37=0A= -import Foreign.Marshal.Utils=0A= hunk ./wxcore/src/Graphics/UI/WXCore/DragAndDrop.hs 50=0A= -{-----------------------------------------------------------------------= --=3D=0A= ----------------=0A= - Drag and Drop events=0A= -------------------------------------------------------------------------= --=3D=0A= ---------------}=0A= --- | Drag results=0A= -data DragResult=0A= - =3D3D DragError=0A= - | DragNone=0A= - | DragCopy=0A= - | DragMove=0A= - | DragLink=0A= - | DragCancel=0A= - | DragUnknown=0A= - deriving (Eq,Show)=0A= -=0A= -dragResults :: [(Int, DragResult)]=0A= -dragResults=0A= - =3D3D [(wxDRAG_ERROR ,DragError)=0A= - ,(wxDRAG_NONE ,DragNone)=0A= - ,(wxDRAG_COPY ,DragCopy)=0A= - ,(wxDRAG_MOVE ,DragMove)=0A= - ,(wxDRAG_LINK ,DragLink)=0A= - ,(wxDRAG_CANCEL ,DragCancel)]=0A= -=0A= -fromDragResult :: DragResult -> Int=0A= -fromDragResult drag=0A= - =3D3D case drag of=0A= - DragError -> wxDRAG_ERROR=0A= - DragNone -> wxDRAG_NONE=0A= - DragCopy -> wxDRAG_COPY=0A= - DragMove -> wxDRAG_MOVE=0A= - DragLink -> wxDRAG_LINK=0A= - DragCancel -> wxDRAG_CANCEL=0A= - DragUnknown -> wxDRAG_ERROR=0A= -=0A= -toDragResult :: Int -> DragResult=0A= -toDragResult drag=0A= - =3D3D case lookup drag dragResults of=0A= - Just x -> x=0A= - Nothing -> DragError=0A= -=0A= --- | Set an event handler that is called when the drop target can be = fille=3D=0A= d with data.=0A= --- This function require to use 'dropTargetGetData' in your event = handler =3D=0A= to fill data.=0A= -dropTargetOnData :: DropTarget a -> (Point -> DragResult -> IO = DragResult)=3D=0A= -> IO ()=0A= -dropTargetOnData drop event =3D3D do=0A= - funPtr <- dragThreeFuncHandler event=0A= - wxcDropTargetSetOnData (objectCast drop) (toCFunPtr funPtr)=0A= -=0A= --- | Set an event handler for an drop command in a drop target.=0A= -dropTargetOnDrop :: DropTarget a -> (Point -> IO Bool) -> IO ()=0A= -dropTargetOnDrop drop event =3D3D do=0A= - funPtr <- dragTwoFuncHandler event=0A= - wxcDropTargetSetOnDrop (objectCast drop) (toCFunPtr funPtr)=0A= -=0A= --- | Set an event handler for an enter command in a drop target.=0A= -dropTargetOnEnter :: DropTarget a -> (Point -> DragResult -> IO = DragResult=3D=0A= ) -> IO ()=0A= -dropTargetOnEnter drop event =3D3D do=0A= - funPtr <- dragThreeFuncHandler event=0A= - wxcDropTargetSetOnEnter (objectCast drop) (toCFunPtr funPtr)=0A= -=0A= --- | Set an event handler for a drag over command in a drop target.=0A= -dropTargetOnDragOver :: DropTarget a -> (Point -> DragResult -> IO = DragRes=3D=0A= ult) -> IO ()=0A= -dropTargetOnDragOver drop event =3D3D do=0A= - funPtr <- dragThreeFuncHandler event=0A= - wxcDropTargetSetOnDragOver (objectCast drop) (toCFunPtr funPtr)=0A= -=0A= --- | Set an event handler for a leave command in a drop target.=0A= -dropTargetOnLeave :: DropTarget a -> (IO ()) -> IO ()=0A= -dropTargetOnLeave drop event =3D3D do=0A= - funPtr <- dragZeroFuncHandler event=0A= - wxcDropTargetSetOnLeave (objectCast drop) (toCFunPtr funPtr)=0A= -=0A= -dragZeroFuncHandler event =3D3D=0A= - dragZeroFunc $ \obj -> do=0A= - event=0A= -=0A= -dragTwoFuncHandler event =3D3D=0A= - dragTwoFunc $ \obj x y -> do=0A= - result <- event (point (fromIntegral x) (fromIntegral y))=0A= - return $ fromBool result=0A= -=0A= -dragThreeFuncHandler event =3D3D=0A= - dragThreeFunc $ \obj x y pre -> do=0A= - result <- event (point (fromIntegral x) (fromIntegral y)) = (toDragResul=3D=0A= t $ fromIntegral pre)=0A= - return $ fromIntegral $ fromDragResult result=0A= -=0A= --- | Set an event handler for a drag & drop command between drag source = wi=3D=0A= ndow and drop=0A= --- target. You must set 'dropTarget' before use this action.=0A= --- And If you use 'fileDropTarget' or 'textDropTarget', you need not = use t=3D=0A= his.=0A= -dragAndDrop :: DropSource a -> DragMode -> (DragResult -> IO ()) -> IO = ()=0A= -dragAndDrop drSrc flag event =3D3D do=0A= - result <- dropSourceDoDragDrop drSrc (fromDragMode flag)=0A= - case lookup result dragResults of=0A= - Just x -> event x=0A= - Nothing -> return ()=0A= -=0A= hunk ./wxcore/src/Graphics/UI/WXCore/DragAndDrop.hs 95=0A= --- | Set an event handler that is called when text is dropped in target = wi=3D=0A= ndow.=0A= -textDropTarget :: Window a -> TextDataObject b -> (Point -> String -> = IO (=3D=0A= )) -> IO ()=0A= -textDropTarget window textData event =3D3D do=0A= - funPtr <- dropTextHandler event=0A= - textDrop <- wxcTextDropTargetCreate nullPtr (toCFunPtr funPtr)=0A= - dropTargetSetDataObject textDrop textData=0A= - windowSetDropTarget window textDrop=0A= -=0A= -dropTextHandler event =3D3D=0A= - wrapTextDropHandler $ \obj x y cstr -> do=0A= - str <- peekCWString cstr=0A= - event (point (fromIntegral x) (fromIntegral y)) str=0A= -=0A= --- | Set an event handler that is called when files are dropped in = target =3D=0A= window.=0A= -fileDropTarget :: Window a -> (Point -> [String] -> IO ()) -> IO ()=0A= -fileDropTarget window event =3D3D do=0A= - funPtr <- dropFileHandler event=0A= - fileDrop <- wxcFileDropTargetCreate nullPtr (toCFunPtr funPtr)=0A= - windowSetDropTarget window fileDrop=0A= -=0A= -dropFileHandler event =3D3D=0A= - wrapFileDropHandler $ \obj x y carr size -> do=0A= - arr <- peekArray (fromIntegral size) carr=0A= - files <- mapM peekCWString arr=0A= - event (point (fromIntegral x) (fromIntegral y)) files=0A= -=0A= -data DragMode =3D3D CopyOnly | AllowMove | Default=0A= - deriving (Eq,Show)=0A= - -- deriving (Eq,Show,Read,Typeable)=0A= -=0A= -fromDragMode :: DragMode -> Int=0A= -fromDragMode mode=0A= - =3D3D case mode of=0A= - CopyOnly -> wxDRAG_COPYONLY=0A= - AllowMove -> wxDRAG_ALLOWMOVE=0A= - Default -> wxDRAG_DEFALUTMOVE=0A= -=0A= -foreign import ccall "wrapper" dragZeroFunc :: (Ptr obj -> IO ()) -> IO = (F=3D=0A= unPtr (Ptr obj -> IO ()))=0A= -foreign import ccall "wrapper" dragTwoFunc :: (Ptr obj -> CInt -> CInt = -> =3D=0A= IO CInt) -> IO (FunPtr (Ptr obj -> CInt -> CInt -> IO CInt))=0A= -foreign import ccall "wrapper" dragThreeFunc :: (Ptr obj -> CInt -> = CInt -=3D=0A= > CInt -> IO CInt) -> IO (FunPtr (Ptr obj -> CInt -> CInt -> CInt -> IO = CIn=3D=0A= t))=0A= -foreign import ccall "wrapper" wrapTextDropHandler :: (Ptr obj -> CInt = -> =3D=0A= CInt -> Ptr CWchar -> IO ()) -> IO (FunPtr (Ptr obj -> CInt -> CInt -> = Ptr =3D=0A= CWchar -> IO ()))=0A= -foreign import ccall "wrapper" wrapFileDropHandler :: (Ptr obj -> CInt = -> =3D=0A= CInt -> Ptr (Ptr CWchar) -> CInt -> IO ()) -> IO (FunPtr (Ptr obj -> = CInt -=3D=0A= > CInt -> Ptr (Ptr CWchar) -> CInt -> IO ()))=0A= -=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 154=0A= + -- * Set event handlers=0A= + -- ** Drop Target events=0A= + , DragResult (..)=0A= + , dropTargetOnData=0A= + , dropTargetOnDrop=0A= + , dropTargetOnEnter=0A= + , dropTargetOnDragOver=0A= + , dropTargetOnLeave=0A= + =3D=0A= =0A= + -- ** On DragAndDropEvent=0A= + , DragMode (..)=0A= + , dragAndDrop=0A= + =3D=0A= =0A= + -- ** Special handler for Drop File event=0A= + , fileDropTarget=0A= + -- ** Special handler for Drop Text event =3D=0A= =0A= + , textDropTarget=0A= +=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 236=0A= +import Foreign.Marshal.Utils=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 1884=0A= +{-----------------------------------------------------------------------= --=3D=0A= ----------------=0A= + Drag and Drop events=0A= +------------------------------------------------------------------------= --=3D=0A= ---------------}=0A= +-- | Drag results=0A= +data DragResult=0A= + =3D3D DragError=0A= + | DragNone=0A= + | DragCopy=0A= + | DragMove=0A= + | DragLink=0A= + | DragCancel=0A= + | DragUnknown=0A= + deriving (Eq,Show)=0A= +=0A= +dragResults :: [(Int, DragResult)]=0A= +dragResults=0A= + =3D3D [(wxDRAG_ERROR ,DragError)=0A= + ,(wxDRAG_NONE ,DragNone)=0A= + ,(wxDRAG_COPY ,DragCopy)=0A= + ,(wxDRAG_MOVE ,DragMove)=0A= + ,(wxDRAG_LINK ,DragLink)=0A= + ,(wxDRAG_CANCEL ,DragCancel)]=0A= +=0A= +fromDragResult :: DragResult -> Int=0A= +fromDragResult drag=0A= + =3D3D case drag of=0A= + DragError -> wxDRAG_ERROR=0A= + DragNone -> wxDRAG_NONE=0A= + DragCopy -> wxDRAG_COPY=0A= + DragMove -> wxDRAG_MOVE=0A= + DragLink -> wxDRAG_LINK=0A= + DragCancel -> wxDRAG_CANCEL=0A= + DragUnknown -> wxDRAG_ERROR=0A= +=0A= +toDragResult :: Int -> DragResult=0A= +toDragResult drag=0A= + =3D3D case lookup drag dragResults of=0A= + Just x -> x=0A= + Nothing -> DragError=0A= +=0A= +-- | Set an event handler that is called when the drop target can be = fille=3D=0A= d with data.=0A= +-- This function require to use 'dropTargetGetData' in your event = handler =3D=0A= to fill data.=0A= +dropTargetOnData :: DropTarget a -> (Point -> DragResult -> IO = DragResult)=3D=0A= -> IO ()=0A= +dropTargetOnData drop event =3D3D do=0A= + funPtr <- dragThreeFuncHandler event=0A= + wxcDropTargetSetOnData (objectCast drop) (toCFunPtr funPtr)=0A= +=0A= +-- | Set an event handler for an drop command in a drop target.=0A= +dropTargetOnDrop :: DropTarget a -> (Point -> IO Bool) -> IO ()=0A= +dropTargetOnDrop drop event =3D3D do=0A= + funPtr <- dragTwoFuncHandler event=0A= + wxcDropTargetSetOnDrop (objectCast drop) (toCFunPtr funPtr)=0A= +=0A= +-- | Set an event handler for an enter command in a drop target.=0A= +dropTargetOnEnter :: DropTarget a -> (Point -> DragResult -> IO = DragResult=3D=0A= ) -> IO ()=0A= +dropTargetOnEnter drop event =3D3D do=0A= + funPtr <- dragThreeFuncHandler event=0A= + wxcDropTargetSetOnEnter (objectCast drop) (toCFunPtr funPtr)=0A= +=0A= +-- | Set an event handler for a drag over command in a drop target.=0A= +dropTargetOnDragOver :: DropTarget a -> (Point -> DragResult -> IO = DragRes=3D=0A= ult) -> IO ()=0A= +dropTargetOnDragOver drop event =3D3D do=0A= + funPtr <- dragThreeFuncHandler event=0A= + wxcDropTargetSetOnDragOver (objectCast drop) (toCFunPtr funPtr)=0A= +=0A= +-- | Set an event handler for a leave command in a drop target.=0A= +dropTargetOnLeave :: DropTarget a -> (IO ()) -> IO ()=0A= +dropTargetOnLeave drop event =3D3D do=0A= + funPtr <- dragZeroFuncHandler event=0A= + wxcDropTargetSetOnLeave (objectCast drop) (toCFunPtr funPtr)=0A= +=0A= +dragZeroFuncHandler event =3D3D=0A= + dragZeroFunc $ \obj -> do=0A= + event=0A= +=0A= +dragTwoFuncHandler event =3D3D=0A= + dragTwoFunc $ \obj x y -> do=0A= + result <- event (point (fromIntegral x) (fromIntegral y))=0A= + return $ fromBool result=0A= +=0A= +dragThreeFuncHandler event =3D3D=0A= + dragThreeFunc $ \obj x y pre -> do=0A= + result <- event (point (fromIntegral x) (fromIntegral y)) = (toDragResul=3D=0A= t $ fromIntegral pre)=0A= + return $ fromIntegral $ fromDragResult result=0A= +=0A= +-- | Set an event handler for a drag & drop command between drag source = wi=3D=0A= ndow and drop=0A= +-- target. You must set 'dropTarget' before use this action.=0A= +-- And If you use 'fileDropTarget' or 'textDropTarget', you need not = use t=3D=0A= his.=0A= +dragAndDrop :: DropSource a -> DragMode -> (DragResult -> IO ()) -> IO = ()=0A= +dragAndDrop drSrc flag event =3D3D do=0A= + result <- dropSourceDoDragDrop drSrc (fromDragMode flag)=0A= + case lookup result dragResults of=0A= + Just x -> event x=0A= + Nothing -> return ()=0A= +=0A= +-- | Set an event handler that is called when text is dropped in target = wi=3D=0A= ndow.=0A= +textDropTarget :: Window a -> TextDataObject b -> (Point -> String -> = IO (=3D=0A= )) -> IO ()=0A= +textDropTarget window textData event =3D3D do=0A= + funPtr <- dropTextHandler event=0A= + textDrop <- wxcTextDropTargetCreate nullPtr (toCFunPtr funPtr)=0A= + dropTargetSetDataObject textDrop textData=0A= + windowSetDropTarget window textDrop=0A= +=0A= +dropTextHandler event =3D3D=0A= + wrapTextDropHandler $ \obj x y cstr -> do=0A= + str <- peekCWString cstr=0A= + event (point (fromIntegral x) (fromIntegral y)) str=0A= +=0A= +-- | Set an event handler that is called when files are dropped in = target =3D=0A= window.=0A= +fileDropTarget :: Window a -> (Point -> [String] -> IO ()) -> IO ()=0A= +fileDropTarget window event =3D3D do=0A= + funPtr <- dropFileHandler event=0A= + fileDrop <- wxcFileDropTargetCreate nullPtr (toCFunPtr funPtr)=0A= + windowSetDropTarget window fileDrop=0A= +=0A= +dropFileHandler event =3D3D=0A= + wrapFileDropHandler $ \obj x y carr size -> do=0A= + arr <- peekArray (fromIntegral size) carr=0A= + files <- mapM peekCWString arr=0A= + event (point (fromIntegral x) (fromIntegral y)) files=0A= +=0A= +data DragMode =3D3D CopyOnly | AllowMove | Default=0A= + deriving (Eq,Show)=0A= + -- deriving (Eq,Show,Read,Typeable)=0A= +=0A= +fromDragMode :: DragMode -> Int=0A= +fromDragMode mode=0A= + =3D3D case mode of=0A= + CopyOnly -> wxDRAG_COPYONLY=0A= + AllowMove -> wxDRAG_ALLOWMOVE=0A= + Default -> wxDRAG_DEFALUTMOVE=0A= +=0A= +foreign import ccall "wrapper" dragZeroFunc :: (Ptr obj -> IO ()) -> IO = (F=3D=0A= unPtr (Ptr obj -> IO ()))=0A= +foreign import ccall "wrapper" dragTwoFunc :: (Ptr obj -> CInt -> CInt = -> =3D=0A= IO CInt) -> IO (FunPtr (Ptr obj -> CInt -> CInt -> IO CInt))=0A= +foreign import ccall "wrapper" dragThreeFunc :: (Ptr obj -> CInt -> = CInt -=3D=0A= > CInt -> IO CInt) -> IO (FunPtr (Ptr obj -> CInt -> CInt -> CInt -> IO = CIn=3D=0A= t))=0A= +foreign import ccall "wrapper" wrapTextDropHandler :: (Ptr obj -> CInt = -> =3D=0A= CInt -> Ptr CWchar -> IO ()) -> IO (FunPtr (Ptr obj -> CInt -> CInt -> = Ptr =3D=0A= CWchar -> IO ()))=0A= +foreign import ccall "wrapper" wrapFileDropHandler :: (Ptr obj -> CInt = -> =3D=0A= CInt -> Ptr (Ptr CWchar) -> CInt -> IO ()) -> IO (FunPtr (Ptr obj -> = CInt -=3D=0A= > CInt -> Ptr (Ptr CWchar) -> CInt -> IO ()))=0A= +=0A= }=0A= =0A= [Add drag and drop events to wxStyledTextCtrl=0A= shelarcy <she...@gm...>**20071124124429] {=0A= hunk ./wxc/include/stc.h 45=0A= -=0A= +TClass(wxString) wxStyledTextEvent_GetDragText( = TSelf(wxStyledTextEvent) _=3D=0A= obj );=0A= hunk ./wxc/include/stc.h 47=0A= +int wxStyledTextEvent_GetDragResult( TSelf(wxStyledTextEvent) _obj );=0A= hunk ./wxc/include/stc.h 76=0A= -/* we have no wxDragResult */=0A= hunk ./wxc/include/stc.h 77=0A= +void wxStyledTextEvent_SetDragResult( TSelf(wxStyledTextEvent) _obj, = int v=3D=0A= al);=0A= hunk ./wxc/src/stc.cpp 304=0A= +EWXWEXPORT(void*, wxStyledTextEvent_GetDragText) (void* _obj)=0A= +{=0A= +#ifdef wxUSE_STC=0A= + wxString s =3D3D ((wxStyledTextEvent*) _obj)->GetDragText();=0A= + wxString* ss =3D3D new wxString(s);=0A= + return ss;=0A= +#else=0A= + return false;=0A= +#endif=0A= +}=0A= +=0A= hunk ./wxc/src/stc.cpp 324=0A= +EWXWEXPORT(int, wxStyledTextEvent_GetDragResult) (void* _obj)=0A= +{=0A= +#ifdef wxUSE_STC=0A= + return ((wxStyledTextEvent*) _obj)->GetDragResult();=0A= +#else=0A= + return false;=0A= +#endif=0A= +}=0A= +=0A= hunk ./wxc/src/stc.cpp 517=0A= -/* we have no wxDragResult=0A= hunk ./wxc/src/stc.cpp 525=0A= -*/=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 167=0A= - -- ** Special handler for Drop File event=0A= + -- *** Special handler for Drop File event=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 169=0A= - -- ** Special handler for Drop Text event =3D=0A= =0A= + -- *** Special handler for Drop Text event =3D=0A= =0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 405=0A= --- kolmodin 20050304:=0A= --- Drag and drop is not implemented in wxHaskell yet,=0A= --- events related to this is appear as STCUnknown instead.=0A= --- STCUnknown events are ignored and not passed along to the user.=0A= -=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 432=0A= --- | STCStartDrag -- ^ ** wxEVT_STC_START_DRAG.=0A= --- | STCDragOver -- ^ ** wxEVT_STC_DRAG_OVER=0A= --- | STCDoDrop -- ^ ** wxEVT_STC_DO_DROP=0A= + | STCStartDrag Int Int String -- ^ ! = wxEVT_STC_START_DRAG.=0A= + | STCDragOver Point DragResult -- ^ ! wxEVT_STC_DRAG_OVER=0A= + | STCDoDrop String DragResult -- ^ ! wxEVT_STC_DO_DROP=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 440=0A= - | STCUnknown -- ^ Unknown event. Should never occur.=0A= + | STCUnknown -- ^ Unknown event. Should never occur.=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 461=0A= --- show STCStartDrag =3D3D "(stc event: start drag)"=0A= --- show STCDragOver =3D3D "(stc event: drag over)"=0A= --- show STCDoDrop =3D3D "(stc event: do drop)"=0A= + show (STCStartDrag lin car str) =3D3D "(stc event: start drag, line = " ++=3D=0A= show lin ++ ", caret " ++ show car ++ ", text " ++ show str ++ ")"=0A= + show (STCDragOver p res) =3D3D "(stc event: drag over, (x,y) " ++ = show p=3D=0A= ++ ", dragResult " ++ show res ++ ")"=0A= + show (STCDoDrop str res) =3D3D "(stc event: do drop, text " ++ show = str =3D=0A= ++ ", dragResult " ++ show res ++ ")"=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 497=0A= - , (wxEVT_STC_START_DRAG, \_ -> return STCUnknown) = --STCStartDr=3D=0A= ag)=0A= - , (wxEVT_STC_DRAG_OVER, \_ -> return STCUnknown) = --STCDragOve=3D=0A= r)=0A= - , (wxEVT_STC_DO_DROP, \_ -> return STCUnknown) = --STCDoDrop)=0A= + , (wxEVT_STC_START_DRAG, startDrag)=0A= + , (wxEVT_STC_DRAG_OVER, dragOver)=0A= + , (wxEVT_STC_DO_DROP, doDrop)=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 503=0A= - -- TODO: STCAutocompSelection event is not tested yet.=0A= + -- TODO: STCAutocompSelection event is not tested yet.=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 562=0A= + startDrag evt =3D3D do=0A= + lin <- styledTextEventGetLine evt=0A= + car <- styledTextEventGetPosition evt=0A= + str <- styledTextEventGetDragText evt=0A= + return $ STCStartDrag lin car str=0A= + dragOver evt =3D3D do=0A= + x <- styledTextEventGetX evt=0A= + y <- styledTextEventGetY evt=0A= + res <- styledTextEventGetDragResult evt=0A= + return $ STCDragOver (point x y) $ toDragResult res=0A= + doDrop evt =3D3D do=0A= + str <- styledTextEventGetDragText evt=0A= + res <- styledTextEventGetDragResult evt=0A= + return $ STCDoDrop str $ toDragResult res=0A= }=0A= =0A= [Add tests for wxStyledTextCtrl=0A= shelarcy <she...@gm...>**20071124143323] {=0A= addfile ./samples/test/STC.hs=0A= hunk ./samples/test/STC.hs 1=0A= +=0A= +import Graphics.UI.WX=0A= +import Graphics.UI.WXCore=0A= +=0A= +main =3D3D start $ do=0A= + f <- frame [text :=3D3D "Scintilla Test"]=0A= + s <- styledTextCtrlCreate f 0 "bla" (Rect 0 0 500 500) 0=0A= + styledTextCtrlInsertText s 0 "hello world!"=0A= + return ()=0A= addfile ./samples/test/STC2.hs=0A= hunk ./samples/test/STC2.hs 1=0A= +=0A= +import Graphics.UI.WX=0A= +import Graphics.UI.WXCore=0A= +=0A= +main =3D3D start $ do=0A= + f <- frame [text :=3D3D "Scintilla Test"]=0A= + p <- panel f []=0A= + s <- styledTextCtrlCreate f 0 "bla" (Rect 0 0 500 500) 0=0A= + b <- button p [text:=3D3D "print text in console", =3D=0A= =0A= + on command :=3D3D styledTextCtrlGetText s >>=3D3D = putStrLn]=0A= +{- set f [ layout :=3D3D container p $ column 5 [ fill $ widget s, =3D=0A= =0A= + hfill $ widget b], clientSize :=3D3D sz 300 300]-}=0A= + return ()=0A= addfile ./samples/test/STCEvent.hs=0A= hunk ./samples/test/STCEvent.hs 1=0A= -=0A= +=0A= +import Graphics.UI.WX=0A= +import Graphics.UI.WXCore=0A= +=0A= +calltiptext =3D3D "I can write whatever I want here"=0A= +=0A= +main =3D3D start $ do=0A= + f <- frame [text :=3D3D "Scintilla Test"]=0A= + p <- panel f []=0A= + textlog <- textCtrl p [clientSize :=3D3D sz 500 200]=0A= + textCtrlMakeLogActiveTarget textlog=0A= + logMessage "logging enabled"=0A= + s <- styledTextCtrl p []=0A= + set s [on stcEvent :=3D3D handler s]=0A= + styledTextCtrlSetMouseDwellTime s 2000=0A= + set f [ layout :=3D3D container p $ =3D=0A= =0A= + column 5 $ [ fill $ widget s=0A= + , hfill $ widget textlog=0A= + ]=0A= + , clientSize :=3D3D sz 500 500=0A= + ]=0A= +=0A= +handler :: StyledTextCtrl a -> EventSTC -> IO ()=0A= +handler _ STCUpdateUI =3D3D return ()=0A= +handler _ STCStyleNeeded =3D3D return ()=0A= +handler _ STCPainted =3D3D return ()=0A= +handler stc e =3D3D do logMessage $ show e=0A= + case e of=0A= + (STCDwellStart xy) -> do =3D=0A= =0A= + pos <- styledTextCtrlPositionFromPoint stc xy=0A= + styledTextCtrlCallTipShow stc pos calltiptext=0A= + (STCDwellEnd xy) -> do=0A= + active <- styledTextCtrlCallTipActive stc=0A= + when active $ styledTextCtrlCallTipCancel stc=0A= + _ -> return ()=0A= addfile ./samples/test/STCLexer.hs=0A= hunk ./samples/test/STCLexer.hs 1=0A= +module Main where=0A= +=0A= +import Graphics.UI.WX=0A= +import Graphics.UI.WXCore=0A= +=0A= +colorscheme =3D3D [ ( wxSTC_HA_DEFAULT, rgb 0 0 0 )=0A= + , ( wxSTC_HA_IDENTIFIER, rgb 0 0 0 )=0A= + , ( wxSTC_HA_KEYWORD, rgb 0 0 255 )=0A= + , ( wxSTC_HA_NUMBER, rgb 100 100 100 )=0A= + , ( wxSTC_HA_STRING, rgb 100 100 200 )=0A= + , ( wxSTC_HA_CHARACTER, rgb 0 100 200 )=0A= + , ( wxSTC_HA_CLASS, rgb 255 0 255 )=0A= + , ( wxSTC_HA_MODULE, rgb 255 0 0 )=0A= + , ( wxSTC_HA_CAPITAL, rgb 0 255 0 )=0A= + , ( wxSTC_HA_DATA, rgb 255 0 0 )=0A= + , ( wxSTC_HA_IMPORT, rgb 150 0 200 )=0A= + , ( wxSTC_HA_OPERATOR, rgb 256 0 0 )=0A= + , ( wxSTC_HA_INSTANCE, rgb 150 61 90 )=0A= + , ( wxSTC_HA_COMMENTLINE, rgb 10 80 100 )=0A= + , ( wxSTC_HA_COMMENTBLOCK, rgb 0 60 0 )=0A= + , ( wxSTC_HA_COMMENTBLOCK2, rgb 0 30 0 )=0A= + , ( wxSTC_HA_COMMENTBLOCK3, rgb 0 10 0 )=0A= + ]=0A= +=0A= +keywords =3D3D "as case class data default deriving do else hiding if = import=3D=0A= " ++=0A= + "in infix infixl infixr instance let module newtype of = qualifie=3D=0A= d" ++=0A= + "then type where"=0A= +=0A= +main =3D3D start $ do=0A= + f <- frame [text :=3D3D "Scintilla Test", visible :=3D3D False]=0A= + p <- panel f []=0A= + s <- styledTextCtrl p [ clientSize :=3D3D sz 500 500]=0A= + styledTextCtrlLoadFile s "LexerTest.hs"=0A= + styledTextCtrlStyleClearAll s=0A= + styledTextCtrlSetLexer s wxSTC_LEX_HASKELL=0A= + styledTextCtrlSetKeyWords s 0 keywords=0A= + let fontstyle =3D3D fontFixed { _fontFace =3D3D "Monospace" }=0A= + (font, _) <- fontCreateFromStyle fontstyle=0A= + mapM_ (\style -> styledTextCtrlStyleSetFont s style font) = [0..wxSTC_ST=3D=0A= YLE_LASTPREDEFINED]=0A= + sequence_ [styledTextCtrlStyleSetForeground s k c | (k, c) <- = colorsch=3D=0A= eme]=0A= + set f [ layout :=3D3D container p $ fill $ widget s ]=0A= + set f [ visible :=3D3D True ]=0A= }=0A= =0A= [Fix typo and incorrect compilation flag in stc.cpp=0A= shelarcy <she...@gm...>**20071125021423] {=0A= hunk ./wxc/src/stc.cpp 517=0A= -EWXWEXPORT(void, wxStyledTextEvent_SetDragResult) (void* _obj, void* = val)=0A= +EWXWEXPORT(void, wxStyledTextEvent_SetDragResult) (void* _obj, int val)=0A= hunk ./wxc/src/stc.cpp 521=0A= -#else=0A= - return false;=0A= }=0A= =0A= Context:=0A= =0A= [Change VC 2.6 project to build contribs automatically (just support stc = cu=3D=0A= rrently)=0A= shelarcy <she...@gm...>**20071121131543] =3D=0A= =0A= [Update Build Instruction Document for GHC 6.6.x, GHC 6.8.x and latest = darc=3D=0A= s sources=0A= shelarcy <she...@gm...>**20071121130520] =3D=0A= =0A= [FIX #1721764: typo in Graphics.UI.WX.Dialogs's haddock documentation=0A= shelarcy <she...@gm...>**20071121125955] =3D=0A= =0A= [Changed Cursor_CreateLoad to return NULL for WXGTK, as WXGTK do yet = implem=3D=0A= ent this function=0A= Mads Lindstroem <mad...@ya...>**20070916170828] =3D=0A= =0A= [Rename wxcu-2.6.4.* to wxc-2.6.* as wxc-2.4 things=0A= shelarcy <she...@gm...>**20070821050957] =3D=0A= =0A= [Update VC++ project file to reflect updated DLL version supporting = wxWidge=3D=0A= ts 2.6.4=0A= shelarcy <she...@gm...>**20070821044612] =3D=0A= =0A= [Remove old wxc project files between 2.6.0 - 2.6.3=0A= shelarcy <she...@gm...>**20070821043754] =3D=0A= =0A= [Remove old wxh samples=0A= shelarcy <she...@gm...>**20070821043453] =3D=0A= =0A= [Remove auto-generated stc files.=0A= Eric Kow <eri...@lo...>**20070819205954=0A= Otherwise, you get annoying new changes in the working directory.=0A= ] =3D=0A= =0A= [Use Data.Time.getCurrentTime instead of (System.)Time.getClockTime=0A= shelarcy <she...@gm...>**20070819204230=0A= to avoid build failure by generated non-UTF8 String=0A= ] =3D=0A= =0A= [Add Drag & Drop and ClipBoard Support=0A= shelarcy <she...@gm...>**20070815175137] =3D=0A= =0A= [Add (Multi-)MediaCtrl Support=0A= shelarcy <she...@gm...>**20070811123742] =3D=0A= =0A= [Rework wxToolkit and isDefined by fixing *defs' char array to wxChar = array=0A= shelarcy <she...@gm...>**20070806121930] =3D=0A= =0A= [Change some str* functions or wcs* functions to wxStr* functions=0A= shelarcy <she...@gm...>**20070805112624] =3D=0A= =0A= [Remove unused wxh directory files=0A= shelarcy <she...@gm...>**20070803123528] =3D=0A= =0A= [Remove unused wxWidgets 2.5.x's VC project=0A= shelarcy <she...@gm...>**20070803120930] =3D=0A= =0A= [Add VC project for wxWidgets 2.6.4=0A= shelarcy <she...@gm...>**20070803120733] =3D=0A= =0A= [Fix broken wxc-2.4 Visual Studio Project=0A= shelarcy <she...@ho...>**20070723214850] =3D=0A= =0A= [polyline-64bit-compatibility-fix=0A= ar...@cs...**20070313080116=0A= Fixes a problem with the polyline function on a 64-bit platform.=0A= The wxDC_DrawLines function now properly indexes into the array=0A= with points.=0A= ] =3D=0A= =0A= [fix-polygon-behaviour-64=0A= ar...@cs...**20070202154517=0A= Fixed issue 'Strange polygon behaviour on 64-bit machines'=0A= reported by Chris Mears at 14 Dec 2006.=0A= =3D=0A= =0A= Problem: the arrays inspected by the wxDC_Polygon function=0A= are assumed to contain 32-bits ints. On 64-bit machines=0A= these are actually 64-bits ints.=0A= =3D=0A= =0A= Fix: (a bit of a hack...) the code now assumes that the=0A= arrays contain intptr_t values. This type represents ints=0A= of the same number of bits as the Haskell ints (on 32-bit=0A= and 64-bit machines). The code now dereferences each element=0A= in the array correctly, but still truncates the possibly=0A= 64-bit value to a 32-bit value. This is not a problem=0A= in practice.=0A= ] =3D=0A= =0A= [Announce new maintainers, darcs (homepage).=0A= Eric Kow <eri...@lo...>**20070120231403] =3D=0A= =0A= [Add miscellaneous other images (homepage).=0A= Eric Kow <eri...@lo...>**20070120224435] =3D=0A= =0A= [Add application screenshots (homepage).=0A= Eric Kow <eri...@lo...>**20070120224104] =3D=0A= =0A= [Add images used in quick start (homepage).=0A= Eric Kow <eri...@lo...>**20070120223650] =3D=0A= =0A= [Add images used for samples (homepage).=0A= Eric Kow <eri...@lo...>**20070120223301] =3D=0A= =0A= [Add images directory (and wxhaskell logo).=0A= Eric Kow <eri...@lo...>**20070120222724] =3D=0A= =0A= [Remove counter code from homepage.=0A= Eric Kow <eri...@lo...>**20070120221619=0A= =3D=0A= =0A= This counter has an pop-up ads, which is rather obnoxious.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Add wxhaskell homepage files (main html, css only).=0A= Eric Kow <eri...@lo...>**20070120221304=0A= =3D=0A= =0A= I took the liberty of running dos2unix on these.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Add some wxhaskell-specifile boring file regexps.=0A= Eric Kow <eri...@lo...>**20070120221235] =3D=0A= =0A= [Use a custom boring file. (Right now just the darcs default)=0A= Eric Kow <eri...@lo...>**20070120221223] =3D=0A= =0A= [Add an etc/ directory for misc use.=0A= Eric Kow <eri...@lo...>**20070120212146] =3D=0A= =0A= [Modify wx-install so it doesn't accidentally recompile things.=0A= Eric Kow <eri...@lo...>**20070120225914=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Merge wxStyledTextCntrl (Scintilla edit control wrapper) support from = Hast=3D=0A= e project=0A= shelarcy <she...@ca...>**20070111090641] =3D=0A= =0A= [Added #ifndef compilation flag around <inttypes.h> to avoid building = probl=3D=0A= em under Visual C++ (VC). (VC doesn't have <inttypes.h>.)=0A= she...@ca...**20061207005946] =3D=0A= =0A= [Correct previous patch for db.cpp=0A= she...@ca...**20061207004327] =3D=0A= =0A= [Add an eyeball test for Unicode strings.=0A= Eric Kow <eri...@lo...>**20061129042230] =3D=0A= =0A= [Use intptr_t to avoid assumption that integers are 32 bit.=0A= Arie Middelkoop <ar...@cs...>**20061125125628=0A= =3D=0A= =0A= Compiling wxHaskell on a 64bits platform fails, because there=0A= are some assumptions in the code that assume that integers are=0A= 32bits. For example, there are a couple of assignments of a=0A= pointer to an int.=0A= =3D=0A= =0A= This patch fixes these problems. Sometimes, after assigning a=0A= pointer to an integer, the int was used as a boolean value. In=0A= those cases, instead of returning a pointer p, I changed the=0A= code to return p !=3D3D NULL. In two other cases, a pointer is stored=0A= inside the int and in these cases I changed the type of the=0A= int to intptr_t, of which it is guaranteed that a pointer can be=0A= assigned to it and recovered from it.=0A= =3D=0A= =0A= Requires <inttypes.h>.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Added the -fPIC compiler flag to CXX options in the makefile.=0A= Arie Middelkoop <ar...@cs...>**20061115121006=0A= =3D=0A= =0A= Apparantly, my platform (gentoo x86_64 linux) required that .o files = are "=3D=0A= relocatable" when there =3D=0A= =0A= are linked into a dynamic library.=0A= =3D=0A= =0A= (It might be an idea to use libtool to hide this kind of = platform-specific=3D=0A= details)=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Tweak wx build target to depend on wxcore-clean.=0A= Eric Kow <eri...@lo...>**20061115002142=0A= =3D=0A= =0A= This avoids weird build errors with GHC 6.6 like=0A= wx/src/Graphics/UI/WX/Types.hs:94:0:=0A= Bad interface file: out/wx/imports/Graphics/UI/WXCore/Types.hi=0A= Something is amiss; requested module=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Update Windows/VC++ build for 0.10.1 (from jer...@gm...).=0A= Eric Kow <eri...@lo...>**20061029082957=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Separate make/make install for wxcore and wx.=0A= Eric Kow <eri...@lo...>**20061027201218=0A= =3D=0A= =0A= Now the user has to type=0A= make=0A= (sudo) make install=0A= make wx=0A= (sudo) make wx-install=0A= =3D=0A= =0A= This is a tweak of Shelarcy's patch for making wxhaskell compile on GHC = 6.=3D=0A= 6.=0A= The intention is to avoid the surprising behaviour of wxcore being = install=3D=0A= ed=0A= when the user types 'make'.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Add shelarcy patch for compile with GHC-6.6=0A= jer...@gm...**20061027102208] =3D=0A= =0A= [Add support for toolbar divider and other toolbar options (from = shelarcy@g=3D=0A= mail.com)=0A= jer...@gm...**20061023095411] =3D=0A= =0A= [Add support for toolbar divider (for she...@gm...)=0A= jer...@gm...**20061023094720] =3D=0A= =0A= [Add support for list item mask (from she...@gm...)=0A= jer...@gm...**20061023094528] =3D=0A= =0A= [Add support for Calendar events (from sha...@gm...)=0A= jer...@gm...**20061023094412] =3D=0A= =0A= [Add support for wxWidgets version >=3D3D 2.5 (Sound API, db API)=0A= jer...@gm...**20061023094049] =3D=0A= =0A= [Shelarcy patch: fix typos in wxHaskell samples/contrib=0A= jer...@gm...**20060830114937] =3D=0A= =0A= [(OS X) Skip intermediate step of compiling master.o.=0A= Eric Kow <eri...@lo...>**20060813212620=0A= =3D=0A= =0A= Removing this step (which compiles master.o, and combines it with other=0A= stuff to get the real library we want) avoids weird error messages like=0A= =3D=0A= =0A= ld: out/wxc/master.o undefined symbol 36218 (__ZdaPv) can't be a weak=0A= definition=0A= =3D=0A= =0A= It's quite possible that this breaks something else, though...=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Update VC++ project file to reflect new wxWidgets version support = (unteste=3D=0A= d)=0A= jer...@gm...**20060817170205] =3D=0A= =0A= [Update VC++ project file to reflect updated DLL version supporting = wxWidge=3D=0A= ts 2.6.3=0A= jer...@gm...**20060817170011] =3D=0A= =0A= [Update revision numbers and wxversion guesses for Windows / VC++ = (jeremy.o=3D=0A= don...@gm...)=0A= jer...@gm...**20060817165704] =3D=0A= =0A= [Shelarcy patch (VC project for wxWindows 2.6.3)=0A= jer...@gm...**20060816134707] =3D=0A= =0A= [Shelarcy patch (WxcTypes.hs)=0A= jer...@gm...**20060816115419] =3D=0A= =0A= [Shelarcy patch (eljdialup.cpp)=0A= jer...@gm...**20060816114418] =3D=0A= =0A= [Shelarcy patch (db.cpp)=0A= jer...@gm...**20060816113728] =3D=0A= =0A= [(wxc, Unicode) Files for compiling unicode version under Visual Studio.=0A= shelarcy <she...@ca...>**20060813212315=0A= =3D=0A= =0A= This is Eric Kow recording on Shelarcy's behalf. This corresponds to = vers=3D=0A= ion=0A= 08 of my Unicode patch.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Add a small makefile for compiling the samples.=0A= Eric Kow <eri...@lo...>**20060813211705=0A= =3D=0A= =0A= (This comes from version 08 of my Unicode patch).=0A= =3D=0A= =0A= ] =3D=0A= =0A= [(wxcore, Unicode) Add/use ability to interact with C wchar_t.=0A= Eric Kow <eri...@lo...>**20060813211211=0A= =3D=0A= =0A= This corresponds to the wxcore part of my Unicode patch, version 08=0A= modulo trailing whitespace.=0A= =3D=0A= =0A= I believe this would require for wxWidgets and wxhaskell to be compiled = wi=3D=0A= th=0A= Unicode enabled.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [(wxdirect, Unicode) Use the Haskell types for C wchar_t and friends.=0A= Eric Kow <eri...@lo...>**20060813210420=0A= =3D=0A= =0A= I believe this would require that wxWidgets be compiled with Unicode=0A= enabled.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [(wxc, Unicode) Use wxChar instead of char.=0A= Eric Kow <eri...@lo...>**20060813205557=0A= =3D=0A= =0A= wxChar is a C preprocessor macro that selects for char under=0A= --disable-unicode, and for wchar_t under --enable-unicode.=0A= =3D=0A= =0A= This corresponds to version 08 of my Unicode patch, but only the parts=0A= which affect wxc.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [[wxhaskell-from-cvs @ 2005-05-08 08:12:51 by dleijen]=0A= dleijen**20050508081251=0A= updated change log=0A= ] =3D=0A= =0A= [[wxhaskell-from-cvs @ 2005-05-08 07:24:23 by dleijen]=0A= dleijen**20050508072423=0A= Compile wx via -fvia-C to fix crash with ghci on windows=0A= ] =3D=0A= =0A= [TAG wxhakell-0-9-4=0A= Unknown tagger**20060712042545] =3D=0A= =0A= Patch bundle hash:=0A= db56123fbbbbb2d2e2452dc5af737684a1b8e0b5=0A= =0A= --=3D_--=0A= =0A= .=0A= =0A= |
From: Eric Y. K. <eri...@gm...> - 2007-11-24 23:19:07
|
This one gives me: wxc/src/stc.cpp: In function =E2=80=98void wxStyledTextEvent_SetDragResult(void*, void*)=E2=80=99: wxc/src/stc.cpp:522: error: return-statement with a value, in function returning 'void' --=20 Eric Kow http://www.loria.fr/~kow PGP Key ID: 08AC04F9 Merci de corriger mon fran=C3=A7ais. |
From: Eric Y. K. <eri...@gm...> - 2007-11-24 17:20:43
|
Hi, I'm sorry, I'm not sure I understood > So I want to know that do you update your OS and/or XCode? Only the incremental upgrade from 10.4.10 to 10.4.11 I am indeed using Intel. > Because I know that Mac OS X's different architecture cause problem on > wxHaskell, too. You just remove step that compiling master.o when fixing > building problem. So I think you are using Intel architecture. This patch gives me: /usr/bin/ld: can't locate file for: -lstdc++-static At first I thought that might have been a typo, so I tried changing the Makefile to say -lstdc++ -static, but that gave me /usr/bin/ld: incompatible flag -framework used (must specify "-dynamic" to be used) --=20 Eric Kow http://www.loria.fr/~kow PGP Key ID: 08AC04F9 Merci de corriger mon fran=E7ais. |
From: shelarcy <she...@gm...> - 2007-11-24 15:27:42
|
On Thu, 22 Nov 2007 09:23:54 +0900, Eric Y. Kow <eri...@gm...> wrote: > Note: I'm getting these erros recently... They don't seem related to the > patches I just pushed in, though. > > ld: /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit load > command 20 unknown cmd field > /usr/bin/libtool: internal link edit command failed I also tested my patches on PowerPC Mac OS X platform when my patch influence other platforms. And above problem doesn't occur my Mac environment (10.4.10 + XCode 2.5). So I want to know that do you update your OS and/or XCode? Okay, I know I have to update XCode. But I'm changing wxhaskell source code now. So I want to seprate problem from that. I'll update XCode. But I'm not sure whether same problem ocuur. Because I know that Mac OS X's different architecture cause problem on wxHaskell, too. You just remove step that compiling master.o when fixing building problem. So I think you are using Intel architecture. But this intermediate step is important for PowerPC platform. So I applied attached file when testing and using wxHaskell on my Mac. (I don't have Intel Mac. So I hesitated to send this patch to wxhaskell-users Mailing-list.) http://haskell.org/haskellwiki/WxHaskell/Install#PPC.2C_Tiger_.2810.4.7.29.2C_GHC_6.4.1.2C_wxWidgets_2.6.3.2C_wxHaskell_0.9.4 Best Regards, -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |
From: shelarcy <she...@gm...> - 2007-11-24 14:39:47
|
DarcsURL: C:/home/shelarcy/wxhaskell=0A= MIME-Version: 1.0=0A= Content-Type: multipart/mixed; boundary=3D"=3D_"=0A= =0A= --=3D_=0A= Content-Type: text/plain=0A= Content-Transfer-Encoding: quoted-printable=0A= =0A= Fri Nov 23 18:53:57 =3D93=3D8C=3D8B=3D9E (=3D95W=3D8F=3D80=3D8E=3D9E) = 2007 shelarcy <shelarc=3D=0A= y...@gm...>=0A= * Move drag-and-drop events to Graphics.UI.WCCore.Events=0A= =0A= Sat Nov 24 21:44:29 =3D93=3D8C=3D8B=3D9E (=3D95W=3D8F=3D80=3D8E=3D9E) = 2007 shelarcy <shelarc=3D=0A= y...@gm...>=0A= * Add drag and drop events to wxStyledTextCtrl=0A= =0A= Sat Nov 24 23:33:23 =3D93=3D8C=3D8B=3D9E (=3D95W=3D8F=3D80=3D8E=3D9E) = 2007 shelarcy <shelarc=3D=0A= y...@gm...>=0A= * Add tests for wxStyledTextCtrl=0A= =0A= --=3D_=0A= Content-Type: text/x-darcs-patch; = name=3D"move-drag_and_drop-events-to-graphics_ui_wccore_events.dpatch"=0A= Content-Transfer-Encoding: quoted-printable=0A= Content-Description: A darcs patch for your repository!=0A= =0A= =0A= New patches:=0A= =0A= [Move drag-and-drop events to Graphics.UI.WCCore.Events=0A= shelarcy <she...@gm...>**20071123095357] {=0A= hunk ./makefile 90=0A= - Graphics/UI/WXCore/DragAndDrop \=0A= hunk ./makefile 91=0A= + Graphics/UI/WXCore/DragAndDrop \=0A= hunk ./makefile 123=0A= - Graphics/UI/WXCore/DragAndDrop \=0A= hunk ./wxcore/src/Graphics/UI/WXCore/DragAndDrop.hs 16=0A= +=0A= hunk ./wxcore/src/Graphics/UI/WXCore/DragAndDrop.hs 22=0A= -=0A= - -- * Set event handlers=0A= - -- ** Drop Target events=0A= - , DragResult (..)=0A= - , dropTargetOnData=0A= - , dropTargetOnDrop=0A= - , dropTargetOnEnter=0A= - , dropTargetOnDragOver=0A= - , dropTargetOnLeave=0A= - =3D=0A= =0A= - -- ** On DragAndDropEvent=0A= - , DragMode (..)=0A= - , dragAndDrop=0A= - =3D=0A= =0A= - -- ** Special handler for Drop File event=0A= - , fileDropTarget=0A= - -- ** Special handler for Drop Text event =3D=0A= =0A= - , textDropTarget=0A= hunk ./wxcore/src/Graphics/UI/WXCore/DragAndDrop.hs 25=0A= +import Graphics.UI.WXCore.Events=0A= hunk ./wxcore/src/Graphics/UI/WXCore/DragAndDrop.hs 37=0A= -import Foreign.Marshal.Utils=0A= hunk ./wxcore/src/Graphics/UI/WXCore/DragAndDrop.hs 50=0A= -{-----------------------------------------------------------------------= --=3D=0A= ----------------=0A= - Drag and Drop events=0A= -------------------------------------------------------------------------= --=3D=0A= ---------------}=0A= --- | Drag results=0A= -data DragResult=0A= - =3D3D DragError=0A= - | DragNone=0A= - | DragCopy=0A= - | DragMove=0A= - | DragLink=0A= - | DragCancel=0A= - | DragUnknown=0A= - deriving (Eq,Show)=0A= -=0A= -dragResults :: [(Int, DragResult)]=0A= -dragResults=0A= - =3D3D [(wxDRAG_ERROR ,DragError)=0A= - ,(wxDRAG_NONE ,DragNone)=0A= - ,(wxDRAG_COPY ,DragCopy)=0A= - ,(wxDRAG_MOVE ,DragMove)=0A= - ,(wxDRAG_LINK ,DragLink)=0A= - ,(wxDRAG_CANCEL ,DragCancel)]=0A= -=0A= -fromDragResult :: DragResult -> Int=0A= -fromDragResult drag=0A= - =3D3D case drag of=0A= - DragError -> wxDRAG_ERROR=0A= - DragNone -> wxDRAG_NONE=0A= - DragCopy -> wxDRAG_COPY=0A= - DragMove -> wxDRAG_MOVE=0A= - DragLink -> wxDRAG_LINK=0A= - DragCancel -> wxDRAG_CANCEL=0A= - DragUnknown -> wxDRAG_ERROR=0A= -=0A= -toDragResult :: Int -> DragResult=0A= -toDragResult drag=0A= - =3D3D case lookup drag dragResults of=0A= - Just x -> x=0A= - Nothing -> DragError=0A= -=0A= --- | Set an event handler that is called when the drop target can be = fille=3D=0A= d with data.=0A= --- This function require to use 'dropTargetGetData' in your event = handler =3D=0A= to fill data.=0A= -dropTargetOnData :: DropTarget a -> (Point -> DragResult -> IO = DragResult)=3D=0A= -> IO ()=0A= -dropTargetOnData drop event =3D3D do=0A= - funPtr <- dragThreeFuncHandler event=0A= - wxcDropTargetSetOnData (objectCast drop) (toCFunPtr funPtr)=0A= -=0A= --- | Set an event handler for an drop command in a drop target.=0A= -dropTargetOnDrop :: DropTarget a -> (Point -> IO Bool) -> IO ()=0A= -dropTargetOnDrop drop event =3D3D do=0A= - funPtr <- dragTwoFuncHandler event=0A= - wxcDropTargetSetOnDrop (objectCast drop) (toCFunPtr funPtr)=0A= -=0A= --- | Set an event handler for an enter command in a drop target.=0A= -dropTargetOnEnter :: DropTarget a -> (Point -> DragResult -> IO = DragResult=3D=0A= ) -> IO ()=0A= -dropTargetOnEnter drop event =3D3D do=0A= - funPtr <- dragThreeFuncHandler event=0A= - wxcDropTargetSetOnEnter (objectCast drop) (toCFunPtr funPtr)=0A= -=0A= --- | Set an event handler for a drag over command in a drop target.=0A= -dropTargetOnDragOver :: DropTarget a -> (Point -> DragResult -> IO = DragRes=3D=0A= ult) -> IO ()=0A= -dropTargetOnDragOver drop event =3D3D do=0A= - funPtr <- dragThreeFuncHandler event=0A= - wxcDropTargetSetOnDragOver (objectCast drop) (toCFunPtr funPtr)=0A= -=0A= --- | Set an event handler for a leave command in a drop target.=0A= -dropTargetOnLeave :: DropTarget a -> (IO ()) -> IO ()=0A= -dropTargetOnLeave drop event =3D3D do=0A= - funPtr <- dragZeroFuncHandler event=0A= - wxcDropTargetSetOnLeave (objectCast drop) (toCFunPtr funPtr)=0A= -=0A= -dragZeroFuncHandler event =3D3D=0A= - dragZeroFunc $ \obj -> do=0A= - event=0A= -=0A= -dragTwoFuncHandler event =3D3D=0A= - dragTwoFunc $ \obj x y -> do=0A= - result <- event (point (fromIntegral x) (fromIntegral y))=0A= - return $ fromBool result=0A= -=0A= -dragThreeFuncHandler event =3D3D=0A= - dragThreeFunc $ \obj x y pre -> do=0A= - result <- event (point (fromIntegral x) (fromIntegral y)) = (toDragResul=3D=0A= t $ fromIntegral pre)=0A= - return $ fromIntegral $ fromDragResult result=0A= -=0A= --- | Set an event handler for a drag & drop command between drag source = wi=3D=0A= ndow and drop=0A= --- target. You must set 'dropTarget' before use this action.=0A= --- And If you use 'fileDropTarget' or 'textDropTarget', you need not = use t=3D=0A= his.=0A= -dragAndDrop :: DropSource a -> DragMode -> (DragResult -> IO ()) -> IO = ()=0A= -dragAndDrop drSrc flag event =3D3D do=0A= - result <- dropSourceDoDragDrop drSrc (fromDragMode flag)=0A= - case lookup result dragResults of=0A= - Just x -> event x=0A= - Nothing -> return ()=0A= -=0A= hunk ./wxcore/src/Graphics/UI/WXCore/DragAndDrop.hs 95=0A= --- | Set an event handler that is called when text is dropped in target = wi=3D=0A= ndow.=0A= -textDropTarget :: Window a -> TextDataObject b -> (Point -> String -> = IO (=3D=0A= )) -> IO ()=0A= -textDropTarget window textData event =3D3D do=0A= - funPtr <- dropTextHandler event=0A= - textDrop <- wxcTextDropTargetCreate nullPtr (toCFunPtr funPtr)=0A= - dropTargetSetDataObject textDrop textData=0A= - windowSetDropTarget window textDrop=0A= -=0A= -dropTextHandler event =3D3D=0A= - wrapTextDropHandler $ \obj x y cstr -> do=0A= - str <- peekCWString cstr=0A= - event (point (fromIntegral x) (fromIntegral y)) str=0A= -=0A= --- | Set an event handler that is called when files are dropped in = target =3D=0A= window.=0A= -fileDropTarget :: Window a -> (Point -> [String] -> IO ()) -> IO ()=0A= -fileDropTarget window event =3D3D do=0A= - funPtr <- dropFileHandler event=0A= - fileDrop <- wxcFileDropTargetCreate nullPtr (toCFunPtr funPtr)=0A= - windowSetDropTarget window fileDrop=0A= -=0A= -dropFileHandler event =3D3D=0A= - wrapFileDropHandler $ \obj x y carr size -> do=0A= - arr <- peekArray (fromIntegral size) carr=0A= - files <- mapM peekCWString arr=0A= - event (point (fromIntegral x) (fromIntegral y)) files=0A= -=0A= -data DragMode =3D3D CopyOnly | AllowMove | Default=0A= - deriving (Eq,Show)=0A= - -- deriving (Eq,Show,Read,Typeable)=0A= -=0A= -fromDragMode :: DragMode -> Int=0A= -fromDragMode mode=0A= - =3D3D case mode of=0A= - CopyOnly -> wxDRAG_COPYONLY=0A= - AllowMove -> wxDRAG_ALLOWMOVE=0A= - Default -> wxDRAG_DEFALUTMOVE=0A= -=0A= -foreign import ccall "wrapper" dragZeroFunc :: (Ptr obj -> IO ()) -> IO = (F=3D=0A= unPtr (Ptr obj -> IO ()))=0A= -foreign import ccall "wrapper" dragTwoFunc :: (Ptr obj -> CInt -> CInt = -> =3D=0A= IO CInt) -> IO (FunPtr (Ptr obj -> CInt -> CInt -> IO CInt))=0A= -foreign import ccall "wrapper" dragThreeFunc :: (Ptr obj -> CInt -> = CInt -=3D=0A= > CInt -> IO CInt) -> IO (FunPtr (Ptr obj -> CInt -> CInt -> CInt -> IO = CIn=3D=0A= t))=0A= -foreign import ccall "wrapper" wrapTextDropHandler :: (Ptr obj -> CInt = -> =3D=0A= CInt -> Ptr CWchar -> IO ()) -> IO (FunPtr (Ptr obj -> CInt -> CInt -> = Ptr =3D=0A= CWchar -> IO ()))=0A= -foreign import ccall "wrapper" wrapFileDropHandler :: (Ptr obj -> CInt = -> =3D=0A= CInt -> Ptr (Ptr CWchar) -> CInt -> IO ()) -> IO (FunPtr (Ptr obj -> = CInt -=3D=0A= > CInt -> Ptr (Ptr CWchar) -> CInt -> IO ()))=0A= -=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 154=0A= + -- * Set event handlers=0A= + -- ** Drop Target events=0A= + , DragResult (..)=0A= + , dropTargetOnData=0A= + , dropTargetOnDrop=0A= + , dropTargetOnEnter=0A= + , dropTargetOnDragOver=0A= + , dropTargetOnLeave=0A= + =3D=0A= =0A= + -- ** On DragAndDropEvent=0A= + , DragMode (..)=0A= + , dragAndDrop=0A= + =3D=0A= =0A= + -- ** Special handler for Drop File event=0A= + , fileDropTarget=0A= + -- ** Special handler for Drop Text event =3D=0A= =0A= + , textDropTarget=0A= +=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 236=0A= +import Foreign.Marshal.Utils=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 1884=0A= +{-----------------------------------------------------------------------= --=3D=0A= ----------------=0A= + Drag and Drop events=0A= +------------------------------------------------------------------------= --=3D=0A= ---------------}=0A= +-- | Drag results=0A= +data DragResult=0A= + =3D3D DragError=0A= + | DragNone=0A= + | DragCopy=0A= + | DragMove=0A= + | DragLink=0A= + | DragCancel=0A= + | DragUnknown=0A= + deriving (Eq,Show)=0A= +=0A= +dragResults :: [(Int, DragResult)]=0A= +dragResults=0A= + =3D3D [(wxDRAG_ERROR ,DragError)=0A= + ,(wxDRAG_NONE ,DragNone)=0A= + ,(wxDRAG_COPY ,DragCopy)=0A= + ,(wxDRAG_MOVE ,DragMove)=0A= + ,(wxDRAG_LINK ,DragLink)=0A= + ,(wxDRAG_CANCEL ,DragCancel)]=0A= +=0A= +fromDragResult :: DragResult -> Int=0A= +fromDragResult drag=0A= + =3D3D case drag of=0A= + DragError -> wxDRAG_ERROR=0A= + DragNone -> wxDRAG_NONE=0A= + DragCopy -> wxDRAG_COPY=0A= + DragMove -> wxDRAG_MOVE=0A= + DragLink -> wxDRAG_LINK=0A= + DragCancel -> wxDRAG_CANCEL=0A= + DragUnknown -> wxDRAG_ERROR=0A= +=0A= +toDragResult :: Int -> DragResult=0A= +toDragResult drag=0A= + =3D3D case lookup drag dragResults of=0A= + Just x -> x=0A= + Nothing -> DragError=0A= +=0A= +-- | Set an event handler that is called when the drop target can be = fille=3D=0A= d with data.=0A= +-- This function require to use 'dropTargetGetData' in your event = handler =3D=0A= to fill data.=0A= +dropTargetOnData :: DropTarget a -> (Point -> DragResult -> IO = DragResult)=3D=0A= -> IO ()=0A= +dropTargetOnData drop event =3D3D do=0A= + funPtr <- dragThreeFuncHandler event=0A= + wxcDropTargetSetOnData (objectCast drop) (toCFunPtr funPtr)=0A= +=0A= +-- | Set an event handler for an drop command in a drop target.=0A= +dropTargetOnDrop :: DropTarget a -> (Point -> IO Bool) -> IO ()=0A= +dropTargetOnDrop drop event =3D3D do=0A= + funPtr <- dragTwoFuncHandler event=0A= + wxcDropTargetSetOnDrop (objectCast drop) (toCFunPtr funPtr)=0A= +=0A= +-- | Set an event handler for an enter command in a drop target.=0A= +dropTargetOnEnter :: DropTarget a -> (Point -> DragResult -> IO = DragResult=3D=0A= ) -> IO ()=0A= +dropTargetOnEnter drop event =3D3D do=0A= + funPtr <- dragThreeFuncHandler event=0A= + wxcDropTargetSetOnEnter (objectCast drop) (toCFunPtr funPtr)=0A= +=0A= +-- | Set an event handler for a drag over command in a drop target.=0A= +dropTargetOnDragOver :: DropTarget a -> (Point -> DragResult -> IO = DragRes=3D=0A= ult) -> IO ()=0A= +dropTargetOnDragOver drop event =3D3D do=0A= + funPtr <- dragThreeFuncHandler event=0A= + wxcDropTargetSetOnDragOver (objectCast drop) (toCFunPtr funPtr)=0A= +=0A= +-- | Set an event handler for a leave command in a drop target.=0A= +dropTargetOnLeave :: DropTarget a -> (IO ()) -> IO ()=0A= +dropTargetOnLeave drop event =3D3D do=0A= + funPtr <- dragZeroFuncHandler event=0A= + wxcDropTargetSetOnLeave (objectCast drop) (toCFunPtr funPtr)=0A= +=0A= +dragZeroFuncHandler event =3D3D=0A= + dragZeroFunc $ \obj -> do=0A= + event=0A= +=0A= +dragTwoFuncHandler event =3D3D=0A= + dragTwoFunc $ \obj x y -> do=0A= + result <- event (point (fromIntegral x) (fromIntegral y))=0A= + return $ fromBool result=0A= +=0A= +dragThreeFuncHandler event =3D3D=0A= + dragThreeFunc $ \obj x y pre -> do=0A= + result <- event (point (fromIntegral x) (fromIntegral y)) = (toDragResul=3D=0A= t $ fromIntegral pre)=0A= + return $ fromIntegral $ fromDragResult result=0A= +=0A= +-- | Set an event handler for a drag & drop command between drag source = wi=3D=0A= ndow and drop=0A= +-- target. You must set 'dropTarget' before use this action.=0A= +-- And If you use 'fileDropTarget' or 'textDropTarget', you need not = use t=3D=0A= his.=0A= +dragAndDrop :: DropSource a -> DragMode -> (DragResult -> IO ()) -> IO = ()=0A= +dragAndDrop drSrc flag event =3D3D do=0A= + result <- dropSourceDoDragDrop drSrc (fromDragMode flag)=0A= + case lookup result dragResults of=0A= + Just x -> event x=0A= + Nothing -> return ()=0A= +=0A= +-- | Set an event handler that is called when text is dropped in target = wi=3D=0A= ndow.=0A= +textDropTarget :: Window a -> TextDataObject b -> (Point -> String -> = IO (=3D=0A= )) -> IO ()=0A= +textDropTarget window textData event =3D3D do=0A= + funPtr <- dropTextHandler event=0A= + textDrop <- wxcTextDropTargetCreate nullPtr (toCFunPtr funPtr)=0A= + dropTargetSetDataObject textDrop textData=0A= + windowSetDropTarget window textDrop=0A= +=0A= +dropTextHandler event =3D3D=0A= + wrapTextDropHandler $ \obj x y cstr -> do=0A= + str <- peekCWString cstr=0A= + event (point (fromIntegral x) (fromIntegral y)) str=0A= +=0A= +-- | Set an event handler that is called when files are dropped in = target =3D=0A= window.=0A= +fileDropTarget :: Window a -> (Point -> [String] -> IO ()) -> IO ()=0A= +fileDropTarget window event =3D3D do=0A= + funPtr <- dropFileHandler event=0A= + fileDrop <- wxcFileDropTargetCreate nullPtr (toCFunPtr funPtr)=0A= + windowSetDropTarget window fileDrop=0A= +=0A= +dropFileHandler event =3D3D=0A= + wrapFileDropHandler $ \obj x y carr size -> do=0A= + arr <- peekArray (fromIntegral size) carr=0A= + files <- mapM peekCWString arr=0A= + event (point (fromIntegral x) (fromIntegral y)) files=0A= +=0A= +data DragMode =3D3D CopyOnly | AllowMove | Default=0A= + deriving (Eq,Show)=0A= + -- deriving (Eq,Show,Read,Typeable)=0A= +=0A= +fromDragMode :: DragMode -> Int=0A= +fromDragMode mode=0A= + =3D3D case mode of=0A= + CopyOnly -> wxDRAG_COPYONLY=0A= + AllowMove -> wxDRAG_ALLOWMOVE=0A= + Default -> wxDRAG_DEFALUTMOVE=0A= +=0A= +foreign import ccall "wrapper" dragZeroFunc :: (Ptr obj -> IO ()) -> IO = (F=3D=0A= unPtr (Ptr obj -> IO ()))=0A= +foreign import ccall "wrapper" dragTwoFunc :: (Ptr obj -> CInt -> CInt = -> =3D=0A= IO CInt) -> IO (FunPtr (Ptr obj -> CInt -> CInt -> IO CInt))=0A= +foreign import ccall "wrapper" dragThreeFunc :: (Ptr obj -> CInt -> = CInt -=3D=0A= > CInt -> IO CInt) -> IO (FunPtr (Ptr obj -> CInt -> CInt -> CInt -> IO = CIn=3D=0A= t))=0A= +foreign import ccall "wrapper" wrapTextDropHandler :: (Ptr obj -> CInt = -> =3D=0A= CInt -> Ptr CWchar -> IO ()) -> IO (FunPtr (Ptr obj -> CInt -> CInt -> = Ptr =3D=0A= CWchar -> IO ()))=0A= +foreign import ccall "wrapper" wrapFileDropHandler :: (Ptr obj -> CInt = -> =3D=0A= CInt -> Ptr (Ptr CWchar) -> CInt -> IO ()) -> IO (FunPtr (Ptr obj -> = CInt -=3D=0A= > CInt -> Ptr (Ptr CWchar) -> CInt -> IO ()))=0A= +=0A= }=0A= =0A= [Add drag and drop events to wxStyledTextCtrl=0A= shelarcy <she...@gm...>**20071124124429] {=0A= hunk ./wxc/include/stc.h 45=0A= -=0A= +TClass(wxString) wxStyledTextEvent_GetDragText( = TSelf(wxStyledTextEvent) _=3D=0A= obj );=0A= hunk ./wxc/include/stc.h 47=0A= +int wxStyledTextEvent_GetDragResult( TSelf(wxStyledTextEvent) _obj );=0A= hunk ./wxc/include/stc.h 76=0A= -/* we have no wxDragResult */=0A= hunk ./wxc/include/stc.h 77=0A= +void wxStyledTextEvent_SetDragResult( TSelf(wxStyledTextEvent) _obj, = int v=3D=0A= al);=0A= hunk ./wxc/src/stc.cpp 304=0A= +EWXWEXPORT(void*, wxStyledTextEvent_GetDragText) (void* _obj)=0A= +{=0A= +#ifdef wxUSE_STC=0A= + wxString s =3D3D ((wxStyledTextEvent*) _obj)->GetDragText();=0A= + wxString* ss =3D3D new wxString(s);=0A= + return ss;=0A= +#else=0A= + return false;=0A= +#endif=0A= +}=0A= +=0A= hunk ./wxc/src/stc.cpp 324=0A= +EWXWEXPORT(int, wxStyledTextEvent_GetDragResult) (void* _obj)=0A= +{=0A= +#ifdef wxUSE_STC=0A= + return ((wxStyledTextEvent*) _obj)->GetDragResult();=0A= +#else=0A= + return false;=0A= +#endif=0A= +}=0A= +=0A= hunk ./wxc/src/stc.cpp 517=0A= -/* we have no wxDragResult=0A= hunk ./wxc/src/stc.cpp 525=0A= -*/=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 167=0A= - -- ** Special handler for Drop File event=0A= + -- *** Special handler for Drop File event=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 169=0A= - -- ** Special handler for Drop Text event =3D=0A= =0A= + -- *** Special handler for Drop Text event =3D=0A= =0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 405=0A= --- kolmodin 20050304:=0A= --- Drag and drop is not implemented in wxHaskell yet,=0A= --- events related to this is appear as STCUnknown instead.=0A= --- STCUnknown events are ignored and not passed along to the user.=0A= -=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 432=0A= --- | STCStartDrag -- ^ ** wxEVT_STC_START_DRAG.=0A= --- | STCDragOver -- ^ ** wxEVT_STC_DRAG_OVER=0A= --- | STCDoDrop -- ^ ** wxEVT_STC_DO_DROP=0A= + | STCStartDrag Int Int String -- ^ ! = wxEVT_STC_START_DRAG.=0A= + | STCDragOver Point DragResult -- ^ ! wxEVT_STC_DRAG_OVER=0A= + | STCDoDrop String DragResult -- ^ ! wxEVT_STC_DO_DROP=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 440=0A= - | STCUnknown -- ^ Unknown event. Should never occur.=0A= + | STCUnknown -- ^ Unknown event. Should never occur.=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 461=0A= --- show STCStartDrag =3D3D "(stc event: start drag)"=0A= --- show STCDragOver =3D3D "(stc event: drag over)"=0A= --- show STCDoDrop =3D3D "(stc event: do drop)"=0A= + show (STCStartDrag lin car str) =3D3D "(stc event: start drag, line = " ++=3D=0A= show lin ++ ", caret " ++ show car ++ ", text " ++ show str ++ ")"=0A= + show (STCDragOver p res) =3D3D "(stc event: drag over, (x,y) " ++ = show p=3D=0A= ++ ", dragResult " ++ show res ++ ")"=0A= + show (STCDoDrop str res) =3D3D "(stc event: do drop, text " ++ show = str =3D=0A= ++ ", dragResult " ++ show res ++ ")"=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 497=0A= - , (wxEVT_STC_START_DRAG, \_ -> return STCUnknown) = --STCStartDr=3D=0A= ag)=0A= - , (wxEVT_STC_DRAG_OVER, \_ -> return STCUnknown) = --STCDragOve=3D=0A= r)=0A= - , (wxEVT_STC_DO_DROP, \_ -> return STCUnknown) = --STCDoDrop)=0A= + , (wxEVT_STC_START_DRAG, startDrag)=0A= + , (wxEVT_STC_DRAG_OVER, dragOver)=0A= + , (wxEVT_STC_DO_DROP, doDrop)=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 503=0A= - -- TODO: STCAutocompSelection event is not tested yet.=0A= + -- TODO: STCAutocompSelection event is not tested yet.=0A= hunk ./wxcore/src/Graphics/UI/WXCore/Events.hs 562=0A= + startDrag evt =3D3D do=0A= + lin <- styledTextEventGetLine evt=0A= + car <- styledTextEventGetPosition evt=0A= + str <- styledTextEventGetDragText evt=0A= + return $ STCStartDrag lin car str=0A= + dragOver evt =3D3D do=0A= + x <- styledTextEventGetX evt=0A= + y <- styledTextEventGetY evt=0A= + res <- styledTextEventGetDragResult evt=0A= + return $ STCDragOver (point x y) $ toDragResult res=0A= + doDrop evt =3D3D do=0A= + str <- styledTextEventGetDragText evt=0A= + res <- styledTextEventGetDragResult evt=0A= + return $ STCDoDrop str $ toDragResult res=0A= }=0A= =0A= [Add tests for wxStyledTextCtrl=0A= shelarcy <she...@gm...>**20071124143323] {=0A= addfile ./samples/test/STC.hs=0A= hunk ./samples/test/STC.hs 1=0A= +=0A= +import Graphics.UI.WX=0A= +import Graphics.UI.WXCore=0A= +=0A= +main =3D3D start $ do=0A= + f <- frame [text :=3D3D "Scintilla Test"]=0A= + s <- styledTextCtrlCreate f 0 "bla" (Rect 0 0 500 500) 0=0A= + styledTextCtrlInsertText s 0 "hello world!"=0A= + return ()=0A= addfile ./samples/test/STC2.hs=0A= hunk ./samples/test/STC2.hs 1=0A= +=0A= +import Graphics.UI.WX=0A= +import Graphics.UI.WXCore=0A= +=0A= +main =3D3D start $ do=0A= + f <- frame [text :=3D3D "Scintilla Test"]=0A= + p <- panel f []=0A= + s <- styledTextCtrlCreate f 0 "bla" (Rect 0 0 500 500) 0=0A= + b <- button p [text:=3D3D "print text in console", =3D=0A= =0A= + on command :=3D3D styledTextCtrlGetText s >>=3D3D = putStrLn]=0A= +{- set f [ layout :=3D3D container p $ column 5 [ fill $ widget s, =3D=0A= =0A= + hfill $ widget b], clientSize :=3D3D sz 300 300]-}=0A= + return ()=0A= addfile ./samples/test/STCEvent.hs=0A= hunk ./samples/test/STCEvent.hs 1=0A= -=0A= +=0A= +import Graphics.UI.WX=0A= +import Graphics.UI.WXCore=0A= +=0A= +calltiptext =3D3D "I can write whatever I want here"=0A= +=0A= +main =3D3D start $ do=0A= + f <- frame [text :=3D3D "Scintilla Test"]=0A= + p <- panel f []=0A= + textlog <- textCtrl p [clientSize :=3D3D sz 500 200]=0A= + textCtrlMakeLogActiveTarget textlog=0A= + logMessage "logging enabled"=0A= + s <- styledTextCtrl p []=0A= + set s [on stcEvent :=3D3D handler s]=0A= + styledTextCtrlSetMouseDwellTime s 2000=0A= + set f [ layout :=3D3D container p $ =3D=0A= =0A= + column 5 $ [ fill $ widget s=0A= + , hfill $ widget textlog=0A= + ]=0A= + , clientSize :=3D3D sz 500 500=0A= + ]=0A= +=0A= +handler :: StyledTextCtrl a -> EventSTC -> IO ()=0A= +handler _ STCUpdateUI =3D3D return ()=0A= +handler _ STCStyleNeeded =3D3D return ()=0A= +handler _ STCPainted =3D3D return ()=0A= +handler stc e =3D3D do logMessage $ show e=0A= + case e of=0A= + (STCDwellStart xy) -> do =3D=0A= =0A= + pos <- styledTextCtrlPositionFromPoint stc xy=0A= + styledTextCtrlCallTipShow stc pos calltiptext=0A= + (STCDwellEnd xy) -> do=0A= + active <- styledTextCtrlCallTipActive stc=0A= + when active $ styledTextCtrlCallTipCancel stc=0A= + _ -> return ()=0A= addfile ./samples/test/STCLexer.hs=0A= hunk ./samples/test/STCLexer.hs 1=0A= +module Main where=0A= +=0A= +import Graphics.UI.WX=0A= +import Graphics.UI.WXCore=0A= +=0A= +colorscheme =3D3D [ ( wxSTC_HA_DEFAULT, rgb 0 0 0 )=0A= + , ( wxSTC_HA_IDENTIFIER, rgb 0 0 0 )=0A= + , ( wxSTC_HA_KEYWORD, rgb 0 0 255 )=0A= + , ( wxSTC_HA_NUMBER, rgb 100 100 100 )=0A= + , ( wxSTC_HA_STRING, rgb 100 100 200 )=0A= + , ( wxSTC_HA_CHARACTER, rgb 0 100 200 )=0A= + , ( wxSTC_HA_CLASS, rgb 255 0 255 )=0A= + , ( wxSTC_HA_MODULE, rgb 255 0 0 )=0A= + , ( wxSTC_HA_CAPITAL, rgb 0 255 0 )=0A= + , ( wxSTC_HA_DATA, rgb 255 0 0 )=0A= + , ( wxSTC_HA_IMPORT, rgb 150 0 200 )=0A= + , ( wxSTC_HA_OPERATOR, rgb 256 0 0 )=0A= + , ( wxSTC_HA_INSTANCE, rgb 150 61 90 )=0A= + , ( wxSTC_HA_COMMENTLINE, rgb 10 80 100 )=0A= + , ( wxSTC_HA_COMMENTBLOCK, rgb 0 60 0 )=0A= + , ( wxSTC_HA_COMMENTBLOCK2, rgb 0 30 0 )=0A= + , ( wxSTC_HA_COMMENTBLOCK3, rgb 0 10 0 )=0A= + ]=0A= +=0A= +keywords =3D3D "as case class data default deriving do else hiding if = import=3D=0A= " ++=0A= + "in infix infixl infixr instance let module newtype of = qualifie=3D=0A= d" ++=0A= + "then type where"=0A= +=0A= +main =3D3D start $ do=0A= + f <- frame [text :=3D3D "Scintilla Test", visible :=3D3D False]=0A= + p <- panel f []=0A= + s <- styledTextCtrl p [ clientSize :=3D3D sz 500 500]=0A= + styledTextCtrlLoadFile s "LexerTest.hs"=0A= + styledTextCtrlStyleClearAll s=0A= + styledTextCtrlSetLexer s wxSTC_LEX_HASKELL=0A= + styledTextCtrlSetKeyWords s 0 keywords=0A= + let fontstyle =3D3D fontFixed { _fontFace =3D3D "Monospace" }=0A= + (font, _) <- fontCreateFromStyle fontstyle=0A= + mapM_ (\style -> styledTextCtrlStyleSetFont s style font) = [0..wxSTC_ST=3D=0A= YLE_LASTPREDEFINED]=0A= + sequence_ [styledTextCtrlStyleSetForeground s k c | (k, c) <- = colorsch=3D=0A= eme]=0A= + set f [ layout :=3D3D container p $ fill $ widget s ]=0A= + set f [ visible :=3D3D True ]=0A= }=0A= =0A= Context:=0A= =0A= [Change VC 2.6 project to build contribs automatically (just support stc = cu=3D=0A= rrently)=0A= shelarcy <she...@gm...>**20071121131543] =3D=0A= =0A= [Update Build Instruction Document for GHC 6.6.x, GHC 6.8.x and latest = darc=3D=0A= s sources=0A= shelarcy <she...@gm...>**20071121130520] =3D=0A= =0A= [FIX #1721764: typo in Graphics.UI.WX.Dialogs's haddock documentation=0A= shelarcy <she...@gm...>**20071121125955] =3D=0A= =0A= [Changed Cursor_CreateLoad to return NULL for WXGTK, as WXGTK do yet = implem=3D=0A= ent this function=0A= Mads Lindstroem <mad...@ya...>**20070916170828] =3D=0A= =0A= [Rename wxcu-2.6.4.* to wxc-2.6.* as wxc-2.4 things=0A= shelarcy <she...@gm...>**20070821050957] =3D=0A= =0A= [Update VC++ project file to reflect updated DLL version supporting = wxWidge=3D=0A= ts 2.6.4=0A= shelarcy <she...@gm...>**20070821044612] =3D=0A= =0A= [Remove old wxc project files between 2.6.0 - 2.6.3=0A= shelarcy <she...@gm...>**20070821043754] =3D=0A= =0A= [Remove old wxh samples=0A= shelarcy <she...@gm...>**20070821043453] =3D=0A= =0A= [Remove auto-generated stc files.=0A= Eric Kow <eri...@lo...>**20070819205954=0A= Otherwise, you get annoying new changes in the working directory.=0A= ] =3D=0A= =0A= [Use Data.Time.getCurrentTime instead of (System.)Time.getClockTime=0A= shelarcy <she...@gm...>**20070819204230=0A= to avoid build failure by generated non-UTF8 String=0A= ] =3D=0A= =0A= [Add Drag & Drop and ClipBoard Support=0A= shelarcy <she...@gm...>**20070815175137] =3D=0A= =0A= [Add (Multi-)MediaCtrl Support=0A= shelarcy <she...@gm...>**20070811123742] =3D=0A= =0A= [Rework wxToolkit and isDefined by fixing *defs' char array to wxChar = array=0A= shelarcy <she...@gm...>**20070806121930] =3D=0A= =0A= [Change some str* functions or wcs* functions to wxStr* functions=0A= shelarcy <she...@gm...>**20070805112624] =3D=0A= =0A= [Remove unused wxh directory files=0A= shelarcy <she...@gm...>**20070803123528] =3D=0A= =0A= [Remove unused wxWidgets 2.5.x's VC project=0A= shelarcy <she...@gm...>**20070803120930] =3D=0A= =0A= [Add VC project for wxWidgets 2.6.4=0A= shelarcy <she...@gm...>**20070803120733] =3D=0A= =0A= [Fix broken wxc-2.4 Visual Studio Project=0A= shelarcy <she...@ho...>**20070723214850] =3D=0A= =0A= [polyline-64bit-compatibility-fix=0A= ar...@cs...**20070313080116=0A= Fixes a problem with the polyline function on a 64-bit platform.=0A= The wxDC_DrawLines function now properly indexes into the array=0A= with points.=0A= ] =3D=0A= =0A= [fix-polygon-behaviour-64=0A= ar...@cs...**20070202154517=0A= Fixed issue 'Strange polygon behaviour on 64-bit machines'=0A= reported by Chris Mears at 14 Dec 2006.=0A= =3D=0A= =0A= Problem: the arrays inspected by the wxDC_Polygon function=0A= are assumed to contain 32-bits ints. On 64-bit machines=0A= these are actually 64-bits ints.=0A= =3D=0A= =0A= Fix: (a bit of a hack...) the code now assumes that the=0A= arrays contain intptr_t values. This type represents ints=0A= of the same number of bits as the Haskell ints (on 32-bit=0A= and 64-bit machines). The code now dereferences each element=0A= in the array correctly, but still truncates the possibly=0A= 64-bit value to a 32-bit value. This is not a problem=0A= in practice.=0A= ] =3D=0A= =0A= [Announce new maintainers, darcs (homepage).=0A= Eric Kow <eri...@lo...>**20070120231403] =3D=0A= =0A= [Add miscellaneous other images (homepage).=0A= Eric Kow <eri...@lo...>**20070120224435] =3D=0A= =0A= [Add application screenshots (homepage).=0A= Eric Kow <eri...@lo...>**20070120224104] =3D=0A= =0A= [Add images used in quick start (homepage).=0A= Eric Kow <eri...@lo...>**20070120223650] =3D=0A= =0A= [Add images used for samples (homepage).=0A= Eric Kow <eri...@lo...>**20070120223301] =3D=0A= =0A= [Add images directory (and wxhaskell logo).=0A= Eric Kow <eri...@lo...>**20070120222724] =3D=0A= =0A= [Remove counter code from homepage.=0A= Eric Kow <eri...@lo...>**20070120221619=0A= =3D=0A= =0A= This counter has an pop-up ads, which is rather obnoxious.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Add wxhaskell homepage files (main html, css only).=0A= Eric Kow <eri...@lo...>**20070120221304=0A= =3D=0A= =0A= I took the liberty of running dos2unix on these.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Add some wxhaskell-specifile boring file regexps.=0A= Eric Kow <eri...@lo...>**20070120221235] =3D=0A= =0A= [Use a custom boring file. (Right now just the darcs default)=0A= Eric Kow <eri...@lo...>**20070120221223] =3D=0A= =0A= [Add an etc/ directory for misc use.=0A= Eric Kow <eri...@lo...>**20070120212146] =3D=0A= =0A= [Modify wx-install so it doesn't accidentally recompile things.=0A= Eric Kow <eri...@lo...>**20070120225914=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Merge wxStyledTextCntrl (Scintilla edit control wrapper) support from = Hast=3D=0A= e project=0A= shelarcy <she...@ca...>**20070111090641] =3D=0A= =0A= [Added #ifndef compilation flag around <inttypes.h> to avoid building = probl=3D=0A= em under Visual C++ (VC). (VC doesn't have <inttypes.h>.)=0A= she...@ca...**20061207005946] =3D=0A= =0A= [Correct previous patch for db.cpp=0A= she...@ca...**20061207004327] =3D=0A= =0A= [Add an eyeball test for Unicode strings.=0A= Eric Kow <eri...@lo...>**20061129042230] =3D=0A= =0A= [Use intptr_t to avoid assumption that integers are 32 bit.=0A= Arie Middelkoop <ar...@cs...>**20061125125628=0A= =3D=0A= =0A= Compiling wxHaskell on a 64bits platform fails, because there=0A= are some assumptions in the code that assume that integers are=0A= 32bits. For example, there are a couple of assignments of a=0A= pointer to an int.=0A= =3D=0A= =0A= This patch fixes these problems. Sometimes, after assigning a=0A= pointer to an integer, the int was used as a boolean value. In=0A= those cases, instead of returning a pointer p, I changed the=0A= code to return p !=3D3D NULL. In two other cases, a pointer is stored=0A= inside the int and in these cases I changed the type of the=0A= int to intptr_t, of which it is guaranteed that a pointer can be=0A= assigned to it and recovered from it.=0A= =3D=0A= =0A= Requires <inttypes.h>.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Added the -fPIC compiler flag to CXX options in the makefile.=0A= Arie Middelkoop <ar...@cs...>**20061115121006=0A= =3D=0A= =0A= Apparantly, my platform (gentoo x86_64 linux) required that .o files = are "=3D=0A= relocatable" when there =3D=0A= =0A= are linked into a dynamic library.=0A= =3D=0A= =0A= (It might be an idea to use libtool to hide this kind of = platform-specific=3D=0A= details)=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Tweak wx build target to depend on wxcore-clean.=0A= Eric Kow <eri...@lo...>**20061115002142=0A= =3D=0A= =0A= This avoids weird build errors with GHC 6.6 like=0A= wx/src/Graphics/UI/WX/Types.hs:94:0:=0A= Bad interface file: out/wx/imports/Graphics/UI/WXCore/Types.hi=0A= Something is amiss; requested module=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Update Windows/VC++ build for 0.10.1 (from jer...@gm...).=0A= Eric Kow <eri...@lo...>**20061029082957=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Separate make/make install for wxcore and wx.=0A= Eric Kow <eri...@lo...>**20061027201218=0A= =3D=0A= =0A= Now the user has to type=0A= make=0A= (sudo) make install=0A= make wx=0A= (sudo) make wx-install=0A= =3D=0A= =0A= This is a tweak of Shelarcy's patch for making wxhaskell compile on GHC = 6.=3D=0A= 6.=0A= The intention is to avoid the surprising behaviour of wxcore being = install=3D=0A= ed=0A= when the user types 'make'.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Add shelarcy patch for compile with GHC-6.6=0A= jer...@gm...**20061027102208] =3D=0A= =0A= [Add support for toolbar divider and other toolbar options (from = shelarcy@g=3D=0A= mail.com)=0A= jer...@gm...**20061023095411] =3D=0A= =0A= [Add support for toolbar divider (for she...@gm...)=0A= jer...@gm...**20061023094720] =3D=0A= =0A= [Add support for list item mask (from she...@gm...)=0A= jer...@gm...**20061023094528] =3D=0A= =0A= [Add support for Calendar events (from sha...@gm...)=0A= jer...@gm...**20061023094412] =3D=0A= =0A= [Add support for wxWidgets version >=3D3D 2.5 (Sound API, db API)=0A= jer...@gm...**20061023094049] =3D=0A= =0A= [Shelarcy patch: fix typos in wxHaskell samples/contrib=0A= jer...@gm...**20060830114937] =3D=0A= =0A= [(OS X) Skip intermediate step of compiling master.o.=0A= Eric Kow <eri...@lo...>**20060813212620=0A= =3D=0A= =0A= Removing this step (which compiles master.o, and combines it with other=0A= stuff to get the real library we want) avoids weird error messages like=0A= =3D=0A= =0A= ld: out/wxc/master.o undefined symbol 36218 (__ZdaPv) can't be a weak=0A= definition=0A= =3D=0A= =0A= It's quite possible that this breaks something else, though...=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Update VC++ project file to reflect new wxWidgets version support = (unteste=3D=0A= d)=0A= jer...@gm...**20060817170205] =3D=0A= =0A= [Update VC++ project file to reflect updated DLL version supporting = wxWidge=3D=0A= ts 2.6.3=0A= jer...@gm...**20060817170011] =3D=0A= =0A= [Update revision numbers and wxversion guesses for Windows / VC++ = (jeremy.o=3D=0A= don...@gm...)=0A= jer...@gm...**20060817165704] =3D=0A= =0A= [Shelarcy patch (VC project for wxWindows 2.6.3)=0A= jer...@gm...**20060816134707] =3D=0A= =0A= [Shelarcy patch (WxcTypes.hs)=0A= jer...@gm...**20060816115419] =3D=0A= =0A= [Shelarcy patch (eljdialup.cpp)=0A= jer...@gm...**20060816114418] =3D=0A= =0A= [Shelarcy patch (db.cpp)=0A= jer...@gm...**20060816113728] =3D=0A= =0A= [(wxc, Unicode) Files for compiling unicode version under Visual Studio.=0A= shelarcy <she...@ca...>**20060813212315=0A= =3D=0A= =0A= This is Eric Kow recording on Shelarcy's behalf. This corresponds to = vers=3D=0A= ion=0A= 08 of my Unicode patch.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Add a small makefile for compiling the samples.=0A= Eric Kow <eri...@lo...>**20060813211705=0A= =3D=0A= =0A= (This comes from version 08 of my Unicode patch).=0A= =3D=0A= =0A= ] =3D=0A= =0A= [(wxcore, Unicode) Add/use ability to interact with C wchar_t.=0A= Eric Kow <eri...@lo...>**20060813211211=0A= =3D=0A= =0A= This corresponds to the wxcore part of my Unicode patch, version 08=0A= modulo trailing whitespace.=0A= =3D=0A= =0A= I believe this would require for wxWidgets and wxhaskell to be compiled = wi=3D=0A= th=0A= Unicode enabled.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [(wxdirect, Unicode) Use the Haskell types for C wchar_t and friends.=0A= Eric Kow <eri...@lo...>**20060813210420=0A= =3D=0A= =0A= I believe this would require that wxWidgets be compiled with Unicode=0A= enabled.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [(wxc, Unicode) Use wxChar instead of char.=0A= Eric Kow <eri...@lo...>**20060813205557=0A= =3D=0A= =0A= wxChar is a C preprocessor macro that selects for char under=0A= --disable-unicode, and for wchar_t under --enable-unicode.=0A= =3D=0A= =0A= This corresponds to version 08 of my Unicode patch, but only the parts=0A= which affect wxc.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [[wxhaskell-from-cvs @ 2005-05-08 08:12:51 by dleijen]=0A= dleijen**20050508081251=0A= updated change log=0A= ] =3D=0A= =0A= [[wxhaskell-from-cvs @ 2005-05-08 07:24:23 by dleijen]=0A= dleijen**20050508072423=0A= Compile wx via -fvia-C to fix crash with ghci on windows=0A= ] =3D=0A= =0A= [TAG wxhakell-0-9-4=0A= Unknown tagger**20060712042545] =3D=0A= =0A= Patch bundle hash:=0A= 1fe4ea65edca80faafa6835c9116ff47ecdfa952=0A= =0A= --=3D_--=0A= =0A= .=0A= =0A= |
From: <jmv...@di...> - 2007-11-23 13:14:40
|
Hi all, I'm using an TextCtrl <cid:par...@di...> () and I would like to insert text (during the GUI computation) in the textCtrl. This is straightforward and is done. The problem is that both textCtrlAppendText and textCtrlWriteText always write the new pieces of text in the end of the previous text and I need to insert the text in the place where the TextCtrl cursor is. I also tried textCtrlSetInsertionPoint "DUMMY" 0 but that didn't change any behavior. It seems this function do nothing. I'm using the repository version of wxHaskell(updated two weeks ago) and ghc 6.6.1 on Kubuntu Gutsy (7.10). Thus anyone know or have any hints on how so solve this problem? Any help would be grateful. best Miguel Vilaca |
From: Eric Y. K. <eri...@gm...> - 2007-11-22 00:24:12
|
Pushed in. Note: I'm getting these erros recently... They don't seem related to the patches I just pushed in, though. ld: /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit load command 20 unknown cmd field /usr/bin/libtool: internal link edit command failed --=20 Eric Kow http://www.loria.fr/~kow PGP Key ID: 08AC04F9 Merci de corriger mon fran=E7ais. |
From: Eric Y. K. <eri...@gm...> - 2007-11-22 00:23:25
|
Pushed in. --=20 Eric Kow http://www.loria.fr/~kow PGP Key ID: 08AC04F9 Merci de corriger mon fran=E7ais. |
From: Andrew B. <And...@cs...> - 2007-11-21 17:02:16
|
shelarcy wrote: > Hi Andrew, > > I'm sorry about my reply is late. > Do you already solve this problem? > > On Thu, 08 Nov 2007 18:23:40 +0900, Andrew Butterfield <And...@cs...> wrote: > >> My code - for the relevant windows >> >> > -- Goal Window >> > gp <- panel h [] >> > g <- scrolledWindow gp [] >> >> Do I need to nest another window inside the scrolled window ? >> When I perform the right-arrow action (say), I repaint g, >> which renders the expression appropriately. >> > > Is gp a panel? > > I don't know why you don't want to set key events for panel > instead of scrolledWindow. I think you can skip key events > for scrolledWindow by propagateEvent, if you set key events > for panel. > OK - I see what you mean - I thought that as I had to paint to g that I needed to catch keystrokes there - but of course these are independent of the painting - so I see what you are suggesting. I solved the problem in a different way - I started experimenting in another window and discovered the following. If, in g (above) I handle arrow keys with individual handler like so: set g [ on downKey := .... ; on upKey := ... ... ] then hitting the down-arrow keys triggers my handler and that for the scrollbars. However if I set a single handler for all keys which then does a case analysis of keys, as follows:, then the scroll bars are not affected by the arrow keys. set g [ on anyKey := handleKeys ... ] handleKeys ... k = case k of KeyDown -> .... KeyUp -> ... -- -------------------------------------------------------------------- Andrew Butterfield Tel: +353-1-896-2517 Fax: +353-1-677-2204 Foundations and Methods Research Group Director. Course Director, B.A. (Mod.) in CS and ICT degrees, Year 4. Department of Computer Science, Room F.13, O'Reilly Institute, Trinity College, University of Dublin, Ireland. http://www.cs.tcd.ie/Andrew.Butterfield/ -------------------------------------------------------------------- |
From: shelarcy <she...@gm...> - 2007-11-21 13:22:31
|
DarcsURL: C:/home/shelarcy/wxhaskell=0A= MIME-Version: 1.0=0A= Content-Type: multipart/mixed; boundary=3D"=3D_"=0A= =0A= --=3D_=0A= Content-Type: text/plain=0A= Content-Transfer-Encoding: quoted-printable=0A= =0A= Wed Nov 21 22:15:43 =3D93=3D8C=3D8B=3D9E (=3D95W=3D8F=3D80=3D8E=3D9E) = 2007 shelarcy <shelarc=3D=0A= y...@gm...>=0A= * Change VC 2.6 project to build contribs automatically (just support = stc=3D=0A= currently)=0A= =0A= --=3D_=0A= Content-Type: text/x-darcs-patch; = name=3D"change-vc-2_6-project-to-build-contribs-automatically-_just-suppo= rt-stc-currently_.dpatch"=0A= Content-Transfer-Encoding: quoted-printable=0A= Content-Description: A darcs patch for your repository!=0A= =0A= =0A= New patches:=0A= =0A= [Change VC 2.6 project to build contribs automatically (just support stc = cu=3D=0A= rrently)=0A= shelarcy <she...@gm...>**20071121131543] {=0A= hunk ./wxc/wxc-2.6.dsw 14=0A= + Begin Project Dependency=3D0D=0A= + Project_Dep_Name stc=3D0D=0A= + End Project Dependency=3D0D=0A= hunk ./wxc/wxc-2.6.dsw 19=0A= +########################################################################= ##=3D=0A= #####=3D0D=0A= +=3D0D=0A= +Project: "stc"=3D3D"..\..\wxWidgets-2.6.4\contrib\build\stc\stc.dsp" - = Packa=3D=0A= ge Owner=3D3D<4>=3D0D=0A= +=3D0D=0A= +Package=3D3D<5>=3D0D=0A= +{{{=3D0D=0A= +}}}=3D0D=0A= +=3D0D=0A= +Package=3D3D<4>=3D0D=0A= +{{{=3D0D=0A= +}}}=3D0D=0A= +=3D0D=0A= +=3D0D=0A= }=0A= =0A= Context:=0A= =0A= [Changed Cursor_CreateLoad to return NULL for WXGTK, as WXGTK do yet = implem=3D=0A= ent this function=0A= Mads Lindstroem <mad...@ya...>**20070916170828] =3D=0A= =0A= [Rename wxcu-2.6.4.* to wxc-2.6.* as wxc-2.4 things=0A= shelarcy <she...@gm...>**20070821050957] =3D=0A= =0A= [Update VC++ project file to reflect updated DLL version supporting = wxWidge=3D=0A= ts 2.6.4=0A= shelarcy <she...@gm...>**20070821044612] =3D=0A= =0A= [Remove old wxc project files between 2.6.0 - 2.6.3=0A= shelarcy <she...@gm...>**20070821043754] =3D=0A= =0A= [Remove old wxh samples=0A= shelarcy <she...@gm...>**20070821043453] =3D=0A= =0A= [Remove auto-generated stc files.=0A= Eric Kow <eri...@lo...>**20070819205954=0A= Otherwise, you get annoying new changes in the working directory.=0A= ] =3D=0A= =0A= [Use Data.Time.getCurrentTime instead of (System.)Time.getClockTime=0A= shelarcy <she...@gm...>**20070819204230=0A= to avoid build failure by generated non-UTF8 String=0A= ] =3D=0A= =0A= [Add Drag & Drop and ClipBoard Support=0A= shelarcy <she...@gm...>**20070815175137] =3D=0A= =0A= [Add (Multi-)MediaCtrl Support=0A= shelarcy <she...@gm...>**20070811123742] =3D=0A= =0A= [Rework wxToolkit and isDefined by fixing *defs' char array to wxChar = array=0A= shelarcy <she...@gm...>**20070806121930] =3D=0A= =0A= [Change some str* functions or wcs* functions to wxStr* functions=0A= shelarcy <she...@gm...>**20070805112624] =3D=0A= =0A= [Remove unused wxh directory files=0A= shelarcy <she...@gm...>**20070803123528] =3D=0A= =0A= [Remove unused wxWidgets 2.5.x's VC project=0A= shelarcy <she...@gm...>**20070803120930] =3D=0A= =0A= [Add VC project for wxWidgets 2.6.4=0A= shelarcy <she...@gm...>**20070803120733] =3D=0A= =0A= [Fix broken wxc-2.4 Visual Studio Project=0A= shelarcy <she...@ho...>**20070723214850] =3D=0A= =0A= [polyline-64bit-compatibility-fix=0A= ar...@cs...**20070313080116=0A= Fixes a problem with the polyline function on a 64-bit platform.=0A= The wxDC_DrawLines function now properly indexes into the array=0A= with points.=0A= ] =3D=0A= =0A= [fix-polygon-behaviour-64=0A= ar...@cs...**20070202154517=0A= Fixed issue 'Strange polygon behaviour on 64-bit machines'=0A= reported by Chris Mears at 14 Dec 2006.=0A= =3D=0A= =0A= Problem: the arrays inspected by the wxDC_Polygon function=0A= are assumed to contain 32-bits ints. On 64-bit machines=0A= these are actually 64-bits ints.=0A= =3D=0A= =0A= Fix: (a bit of a hack...) the code now assumes that the=0A= arrays contain intptr_t values. This type represents ints=0A= of the same number of bits as the Haskell ints (on 32-bit=0A= and 64-bit machines). The code now dereferences each element=0A= in the array correctly, but still truncates the possibly=0A= 64-bit value to a 32-bit value. This is not a problem=0A= in practice.=0A= ] =3D=0A= =0A= [Announce new maintainers, darcs (homepage).=0A= Eric Kow <eri...@lo...>**20070120231403] =3D=0A= =0A= [Add miscellaneous other images (homepage).=0A= Eric Kow <eri...@lo...>**20070120224435] =3D=0A= =0A= [Add application screenshots (homepage).=0A= Eric Kow <eri...@lo...>**20070120224104] =3D=0A= =0A= [Add images used in quick start (homepage).=0A= Eric Kow <eri...@lo...>**20070120223650] =3D=0A= =0A= [Add images used for samples (homepage).=0A= Eric Kow <eri...@lo...>**20070120223301] =3D=0A= =0A= [Add images directory (and wxhaskell logo).=0A= Eric Kow <eri...@lo...>**20070120222724] =3D=0A= =0A= [Remove counter code from homepage.=0A= Eric Kow <eri...@lo...>**20070120221619=0A= =3D=0A= =0A= This counter has an pop-up ads, which is rather obnoxious.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Add wxhaskell homepage files (main html, css only).=0A= Eric Kow <eri...@lo...>**20070120221304=0A= =3D=0A= =0A= I took the liberty of running dos2unix on these.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Add some wxhaskell-specifile boring file regexps.=0A= Eric Kow <eri...@lo...>**20070120221235] =3D=0A= =0A= [Use a custom boring file. (Right now just the darcs default)=0A= Eric Kow <eri...@lo...>**20070120221223] =3D=0A= =0A= [Add an etc/ directory for misc use.=0A= Eric Kow <eri...@lo...>**20070120212146] =3D=0A= =0A= [Modify wx-install so it doesn't accidentally recompile things.=0A= Eric Kow <eri...@lo...>**20070120225914=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Merge wxStyledTextCntrl (Scintilla edit control wrapper) support from = Hast=3D=0A= e project=0A= shelarcy <she...@ca...>**20070111090641] =3D=0A= =0A= [Added #ifndef compilation flag around <inttypes.h> to avoid building = probl=3D=0A= em under Visual C++ (VC). (VC doesn't have <inttypes.h>.)=0A= she...@ca...**20061207005946] =3D=0A= =0A= [Correct previous patch for db.cpp=0A= she...@ca...**20061207004327] =3D=0A= =0A= [Add an eyeball test for Unicode strings.=0A= Eric Kow <eri...@lo...>**20061129042230] =3D=0A= =0A= [Use intptr_t to avoid assumption that integers are 32 bit.=0A= Arie Middelkoop <ar...@cs...>**20061125125628=0A= =3D=0A= =0A= Compiling wxHaskell on a 64bits platform fails, because there=0A= are some assumptions in the code that assume that integers are=0A= 32bits. For example, there are a couple of assignments of a=0A= pointer to an int.=0A= =3D=0A= =0A= This patch fixes these problems. Sometimes, after assigning a=0A= pointer to an integer, the int was used as a boolean value. In=0A= those cases, instead of returning a pointer p, I changed the=0A= code to return p !=3D3D NULL. In two other cases, a pointer is stored=0A= inside the int and in these cases I changed the type of the=0A= int to intptr_t, of which it is guaranteed that a pointer can be=0A= assigned to it and recovered from it.=0A= =3D=0A= =0A= Requires <inttypes.h>.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Added the -fPIC compiler flag to CXX options in the makefile.=0A= Arie Middelkoop <ar...@cs...>**20061115121006=0A= =3D=0A= =0A= Apparantly, my platform (gentoo x86_64 linux) required that .o files = are "=3D=0A= relocatable" when there =3D=0A= =0A= are linked into a dynamic library.=0A= =3D=0A= =0A= (It might be an idea to use libtool to hide this kind of = platform-specific=3D=0A= details)=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Tweak wx build target to depend on wxcore-clean.=0A= Eric Kow <eri...@lo...>**20061115002142=0A= =3D=0A= =0A= This avoids weird build errors with GHC 6.6 like=0A= wx/src/Graphics/UI/WX/Types.hs:94:0:=0A= Bad interface file: out/wx/imports/Graphics/UI/WXCore/Types.hi=0A= Something is amiss; requested module=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Update Windows/VC++ build for 0.10.1 (from jer...@gm...).=0A= Eric Kow <eri...@lo...>**20061029082957=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Separate make/make install for wxcore and wx.=0A= Eric Kow <eri...@lo...>**20061027201218=0A= =3D=0A= =0A= Now the user has to type=0A= make=0A= (sudo) make install=0A= make wx=0A= (sudo) make wx-install=0A= =3D=0A= =0A= This is a tweak of Shelarcy's patch for making wxhaskell compile on GHC = 6.=3D=0A= 6.=0A= The intention is to avoid the surprising behaviour of wxcore being = install=3D=0A= ed=0A= when the user types 'make'.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Add shelarcy patch for compile with GHC-6.6=0A= jer...@gm...**20061027102208] =3D=0A= =0A= [Add support for toolbar divider and other toolbar options (from = shelarcy@g=3D=0A= mail.com)=0A= jer...@gm...**20061023095411] =3D=0A= =0A= [Add support for toolbar divider (for she...@gm...)=0A= jer...@gm...**20061023094720] =3D=0A= =0A= [Add support for list item mask (from she...@gm...)=0A= jer...@gm...**20061023094528] =3D=0A= =0A= [Add support for Calendar events (from sha...@gm...)=0A= jer...@gm...**20061023094412] =3D=0A= =0A= [Add support for wxWidgets version >=3D3D 2.5 (Sound API, db API)=0A= jer...@gm...**20061023094049] =3D=0A= =0A= [Shelarcy patch: fix typos in wxHaskell samples/contrib=0A= jer...@gm...**20060830114937] =3D=0A= =0A= [(OS X) Skip intermediate step of compiling master.o.=0A= Eric Kow <eri...@lo...>**20060813212620=0A= =3D=0A= =0A= Removing this step (which compiles master.o, and combines it with other=0A= stuff to get the real library we want) avoids weird error messages like=0A= =3D=0A= =0A= ld: out/wxc/master.o undefined symbol 36218 (__ZdaPv) can't be a weak=0A= definition=0A= =3D=0A= =0A= It's quite possible that this breaks something else, though...=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Update VC++ project file to reflect new wxWidgets version support = (unteste=3D=0A= d)=0A= jer...@gm...**20060817170205] =3D=0A= =0A= [Update VC++ project file to reflect updated DLL version supporting = wxWidge=3D=0A= ts 2.6.3=0A= jer...@gm...**20060817170011] =3D=0A= =0A= [Update revision numbers and wxversion guesses for Windows / VC++ = (jeremy.o=3D=0A= don...@gm...)=0A= jer...@gm...**20060817165704] =3D=0A= =0A= [Shelarcy patch (VC project for wxWindows 2.6.3)=0A= jer...@gm...**20060816134707] =3D=0A= =0A= [Shelarcy patch (WxcTypes.hs)=0A= jer...@gm...**20060816115419] =3D=0A= =0A= [Shelarcy patch (eljdialup.cpp)=0A= jer...@gm...**20060816114418] =3D=0A= =0A= [Shelarcy patch (db.cpp)=0A= jer...@gm...**20060816113728] =3D=0A= =0A= [(wxc, Unicode) Files for compiling unicode version under Visual Studio.=0A= shelarcy <she...@ca...>**20060813212315=0A= =3D=0A= =0A= This is Eric Kow recording on Shelarcy's behalf. This corresponds to = vers=3D=0A= ion=0A= 08 of my Unicode patch.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Add a small makefile for compiling the samples.=0A= Eric Kow <eri...@lo...>**20060813211705=0A= =3D=0A= =0A= (This comes from version 08 of my Unicode patch).=0A= =3D=0A= =0A= ] =3D=0A= =0A= [(wxcore, Unicode) Add/use ability to interact with C wchar_t.=0A= Eric Kow <eri...@lo...>**20060813211211=0A= =3D=0A= =0A= This corresponds to the wxcore part of my Unicode patch, version 08=0A= modulo trailing whitespace.=0A= =3D=0A= =0A= I believe this would require for wxWidgets and wxhaskell to be compiled = wi=3D=0A= th=0A= Unicode enabled.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [(wxdirect, Unicode) Use the Haskell types for C wchar_t and friends.=0A= Eric Kow <eri...@lo...>**20060813210420=0A= =3D=0A= =0A= I believe this would require that wxWidgets be compiled with Unicode=0A= enabled.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [(wxc, Unicode) Use wxChar instead of char.=0A= Eric Kow <eri...@lo...>**20060813205557=0A= =3D=0A= =0A= wxChar is a C preprocessor macro that selects for char under=0A= --disable-unicode, and for wchar_t under --enable-unicode.=0A= =3D=0A= =0A= This corresponds to version 08 of my Unicode patch, but only the parts=0A= which affect wxc.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [[wxhaskell-from-cvs @ 2005-05-08 08:12:51 by dleijen]=0A= dleijen**20050508081251=0A= updated change log=0A= ] =3D=0A= =0A= [[wxhaskell-from-cvs @ 2005-05-08 07:24:23 by dleijen]=0A= dleijen**20050508072423=0A= Compile wx via -fvia-C to fix crash with ghci on windows=0A= ] =3D=0A= =0A= [TAG wxhakell-0-9-4=0A= Unknown tagger**20060712042545] =3D=0A= =0A= Patch bundle hash:=0A= 7937304342fb8b2711596b5b76d2175cc0cf76bc=0A= =0A= --=3D_--=0A= =0A= .=0A= =0A= |
From: shelarcy <she...@gm...> - 2007-11-21 13:12:18
|
DarcsURL: C:/home/shelarcy/wxhaskell=0A= MIME-Version: 1.0=0A= Content-Type: multipart/mixed; boundary=3D"=3D_"=0A= =0A= --=3D_=0A= Content-Type: text/plain=0A= Content-Transfer-Encoding: quoted-printable=0A= =0A= Wed Nov 21 21:59:55 =3D93=3D8C=3D8B=3D9E (=3D95W=3D8F=3D80=3D8E=3D9E) = 2007 shelarcy <shelarc=3D=0A= y...@gm...>=0A= * FIX #1721764: typo in Graphics.UI.WX.Dialogs's haddock documentation=0A= =0A= Wed Nov 21 22:05:20 =3D93=3D8C=3D8B=3D9E (=3D95W=3D8F=3D80=3D8E=3D9E) = 2007 shelarcy <shelarc=3D=0A= y...@gm...>=0A= * Update Build Instruction Document for GHC 6.6.x, GHC 6.8.x and = latest d=3D=0A= arcs sources=0A= =0A= --=3D_=0A= Content-Type: text/x-darcs-patch; = name=3D"fix-_1721764_-typo-in-graphics_ui_wx_dialogs_s-haddock-documentat= ion.dpatch"=0A= Content-Transfer-Encoding: quoted-printable=0A= Content-Description: A darcs patch for your repository!=0A= =0A= =0A= New patches:=0A= =0A= [FIX #1721764: typo in Graphics.UI.WX.Dialogs's haddock documentation=0A= shelarcy <she...@gm...>**20071121125955] {=0A= hunk ./wx/src/Graphics/UI/WX/Dialogs.hs 72=0A= --- > d <- dialog [text :=3D3D "Demo"]=0A= +-- > d <- dialog w [text :=3D3D "Demo"]=0A= }=0A= =0A= [Update Build Instruction Document for GHC 6.6.x, GHC 6.8.x and latest = darc=3D=0A= s sources=0A= shelarcy <she...@gm...>**20071121130520] {=0A= hunk ./homepage/building-msc.html 61=0A= +<p>If you want to use Visual C++ Express Edition, <a = href=3D3D"http://msdn2.=3D=0A= microsoft.com/express/aa700755.aspx">you must install Microsoft Platform = SD=3D=0A= K</a> before building wxWidgets or wxHaskell.</p>=0A= +=0A= hunk ./homepage/building-msc.html 66=0A= -Select menu "<code>Build/Set active configuration</code>" and select = "<cod=3D=0A= e>wxWidgets - win32 release</code>" to build the (static) library. After = co=3D=0A= mpilation, you can also select "<code>wxWidgets - win32 debug</code>" to = bu=3D=0A= ild=0A= +Select menu "<code>Build/Set active configuration</code>" and select = "<cod=3D=0A= e>wxWidgets - win32 release unicode</code>" to build the (static) = library. =3D=0A= After compilation, you can also select "<code>wxWidgets - win32 debug = unico=3D=0A= de</code>" to build=0A= hunk ./homepage/building-msc.html 68=0A= -<li><b>wxWidgets 2.5</b>: Open the <code>$wxwin/build/msw/wx.dsw</code> = wo=3D=0A= rkspace. Select=0A= +<li><b>wxWidgets 2.6</b>: Open the <code>$wxwin/build/msw/wx.dsw</code> = wo=3D=0A= rkspace. Select=0A= hunk ./homepage/building-msc.html 70=0A= -when you click a marker, all configurations are deselected. Next you = manua=3D=0A= lly select the "Release" and "Debug" versions of all projects and press = "Bu=3D=0A= ild". Afterwards, press "Save All" to save all your mouse clicking work = :-)=3D=0A= </li>=0A= +when you click a marker, all configurations are deselected. Next you = manua=3D=0A= lly select the "Unicode Release" and "Unicode Debug" versions of all = projec=3D=0A= ts and press "Build". Afterwards, press "Save All" to save all your = mouse c=3D=0A= licking work :-)</li>=0A= hunk ./homepage/building-msc.html 73=0A= +<p>If you want to use <a = href=3D3D"http://wxhaskell.sourceforge.net/doc/Gra=3D=0A= phics.UI.WXCore.Db.html">database access</a> and <a = href=3D3D"http://wxhaskel=3D=0A= l.sourceforge.net/doc/Graphics.UI.WXCore.OpenGL.html">openGL canvas</a>, = yo=3D=0A= u must edit <code>$wxwin/include/msw/setup.h</code>'s <code>#define = wxUSE_*=3D=0A= </code>(* is target feature name) from 0 to 1. </p>=0A= +=0A= hunk ./homepage/building-msc.html 86=0A= -<p>After configuration, first go the <code>$wxhaskell/wxc</code> = directory=3D=0A= . Here, you need to adapt the <code>wxc-<em>version</em>.dsp</code> = project=3D=0A= to reference the correct wxWidgets directory. Open the = <code>.dsp</code> f=3D=0A= ile in an editor and replace all occurrences of = "<code>..\..\wxWindows-2.4.=3D=0A= 2</code>" (or "<code>..\..\wxWindows-2.5.1</code>") or by the installed = wxW=3D=0A= idgets directory, i.e. <code>$wxwin</code>.=0A= +<p>After configuration, first run <code>make</code> command to generate = st=3D=0A= c_gen.* files.</p>=0A= +<pre>=0A= +> make=0A= +</pre>=0A= +=0A= +<p>Make will stop by following error.</p>=0A= +<pre>=0A= +> make: *** No rule to make target `out/wxc/wxc-msw2.6.4-0.10.1.dll', = need=3D=0A= ed by `wxc'. Stop.=0A= +</pre>=0A= +=0A= +<p>Then go <code>$wxhaskell/wxc</code> directory. Here, you need to = adapt =3D=0A= the <code>wxc-<em>version</em>.dsp</code> project to reference the = correct =3D=0A= wxWidgets directory. Open the <code>.dsp</code> file in an editor and = repla=3D=0A= ce all occurrences of "<code>..\..\wxWindows-2.4.2</code>" (or = "<code>..\..=3D=0A= \wxWindows-2.6.4</code>") or by the installed wxWidgets directory, i.e. = <co=3D=0A= de>$wxwin</code>.=0A= hunk ./homepage/building-msc.html 100=0A= -and build the release and debug versions of the C wrapper library.</p>=0A= +and build the release and debug versions of the C wrapper library (if = you =3D=0A= use wxWidgets 2.6.4, you must choose=0A= +"Unicode Release" or "Unicode Debug" instead of choosing just "Release" = or=3D=0A= "Debug").</p>=0A= hunk ./homepage/building-msc.html 109=0A= +> make wx=0A= +> make wx-install=0A= hunk ./homepage/building-msc.html 116=0A= -<a style=3D3D"float: right" href=3D3D"#body">top</a>last update: "Apr = 1 2004"=3D=0A= .=0A= +<a style=3D3D"float: right" href=3D3D"#body">top</a>last update: "Aug = 18 2007=3D=0A= ".=0A= hunk ./homepage/building.html 64=0A= - the Microsoft Visual C++ compiler version 6 and 7 = (<b>windows-msc<=3D=0A= /b>) and building with the=0A= + the Microsoft Visual C++ compiler version 6, 7 and 8 = (<b>windows-m=3D=0A= sc</b>) and building with the=0A= hunk ./homepage/building.html 81=0A= -<p>Ensure you have a recent <a = href=3D3D"http://www.haskell.org/ghc">GHC</a>=3D=0A= compiler – version 6.4 is recommended (but any version >=3D3D = 5.04.=3D=0A= 3 will work). In principle, any Haskell98 compiler that supports the = standa=3D=0A= rd FFI libraries will also work.</p>=0A= +<p>Ensure you have a recent <a = href=3D3D"http://www.haskell.org/ghc">GHC</a>=3D=0A= compiler – version 6.8.1 is recommended (but any version = >=3D3D 5.0=3D=0A= 4.3 will work). In principle, any Haskell98 compiler that supports the = stan=3D=0A= dard FFI libraries will also work.</p>=0A= hunk ./homepage/building.html 98=0A= -<p>Next, you should install the latest stable version (currently 2.6.0) = of=3D=0A= <a href=3D3D"http://www.wxwidgets.org">wxWidgets</a>=0A= -for your platform. We assume in this guide that the variable = <code>$wxwin<=3D=0A= /code> points to your=0A= -wxWidgets installation directory, for example: = <code>~/dev/wxGTK-2.6.0</co=3D=0A= de>.</p>=0A= +<p>Next, you should install the previous stable version (2.6.4) of <a = href=3D=0A= =3D3D"http://www.wxwidgets.org">wxWidgets</a>=0A= +for your platform. (wxHaskell doesn't support latest stable version = (curre=3D=0A= ntly 2.8.4) now.) We assume in this guide that the variable = <code>$wxwin</c=3D=0A= ode> points to your=0A= +wxWidgets installation directory, for example: = <code>~/dev/wxGTK-2.6.4</co=3D=0A= de>.</p>=0A= hunk ./homepage/building.html 106=0A= -<li><b>macosx</b>: MacOS X works best with wxWidgets 2.5.4. The latest = sta=3D=0A= ble release (currently wxMAC-2.6.0) does not display menus properly.=0A= +<li><b>macosx</b>: MacOS X works best with wxWidgets 2.5.4. The = previous s=3D=0A= table release (wxMAC-2.6.4) does not display menus properly.=0A= hunk ./homepage/building.html 117=0A= -<p>If you do not have a source release of wxHaskell, you need to check = it =3D=0A= out from the <a = href=3D3D"http://sourceforge.net/cvs/?group_id=3D3D73133">cvs r=3D=0A= epository</a>. CVS creates a=0A= +<p>(Note: GHC 6.6.x or higher can't build old source releases. So you = must=3D=0A= get source from darcs by below command.)</p>=0A= +=0A= +<p>If you do not have a source release of wxHaskell, you need to check = it =3D=0A= out from the <a href=3D3D"http://darcs.haskell.org/wxhaskell/">darcs = reposito=3D=0A= ry</a>. Darcs creates a=0A= hunk ./homepage/building.html 124=0A= -> cvs -d:pserver:ano...@cv...:/cvsroot/wxhaskell = login=0A= -> cvs -z3 = -d:pserver:ano...@cv...:/cvsroot/wxhaskell c=3D=0A= o -P wxhaskell=0A= +> darcs get --partial --set-scripts-executable = http://darcs.haskell.org=3D=0A= /wxhaskell/=0A= hunk ./homepage/building.html 126=0A= -=0A= -<p>You can check out a specific release version using the = <code>-r</code> =3D=0A= flag:</p>=0A= +<!--=0A= +<p>You can check out a specific release version using the = <code>--tag</cod=3D=0A= e> flag:</p>=0A= hunk ./homepage/building.html 129=0A= -> cvs -z3 -d:<as above> co -P -r wxhaskell-0-4 wxhaskell=0A= +> darcs get --tag "" http://darcs.haskell.org/wxhaskell/=0A= hunk ./homepage/building.html 131=0A= -=0A= -<p>You might need to try a few times as sourceforge has a limit on the=0A= -number of people that can log in anonymously.</p>=0A= +-->=0A= hunk ./homepage/building.html 146=0A= -> ../configure --disable-shared=0A= +> ../configure --enable-unicode --disable-shared=0A= +> make=0A= +> make install=0A= +> cd contrib/src=0A= hunk ./homepage/building.html 157=0A= -<ul><li><code>--disable-shared</code> to build a static library = (recommend=3D=0A= ed for wxHaskell version >=3D3D 0.7).</li>=0A= +<ul><li><code>--enable-unicode</code> to build a unicode library = (recommen=3D=0A= ded for latest darcs repository version).</li>=0A= + <li><code>--disable-shared</code> to build a static library = (recommend=3D=0A= ed for wxHaskell version >=3D3D 0.7).</li>=0A= hunk ./homepage/building.html 162=0A= - wxWidgets 2.4.x)</li>=0A= + wxWidgets 2.4.x. And this option is diffrent with below option. You = ca=3D=0A= n play sound without no-control by this feature.=0A= + But ... if you use below media control, it requires to make Control = on=3D=0A= your Window.)</li>=0A= + <li><code>--enable-mediactrl</code> to enable the media control. = (reco=3D=0A= mmended for wxWidgets version >=3D3D 2.6.x)</li>=0A= hunk ./homepage/building.html 169=0A= -<li><b>unix-gtk</b>: if you want to use the GTK-<b>2</b> toolkit, you = need=3D=0A= to configure without=0A= -unicode support since wxHaskell can not (yet) handle unicode. Try for = exam=3D=0A= ple:=0A= +<li>Do not forget to install 'contib' hierarchy libraries. Now latest = darc=3D=0A= s' source depends on=0A= +'contib' hierarchy libraries.</li>=0A= +<li><b>unix-gtk</b>: if you want to use the GTK-<b>2</b> toolkit, you = need=3D=0A= to configure with=0A= +unicode support since current wxHaskell can handle only unicode = library. T=3D=0A= ry for example:=0A= hunk ./homepage/building.html 174=0A= -../configure --with-gtk --enable-gtk2 --disable-unicode=0A= +../configure --with-gtk --enable-gtk2 --enable-unicode=0A= hunk ./homepage/building.html 187=0A= -> cd samples/controls=0A= +> cd ../../samples/controls=0A= hunk ./homepage/building.html 199=0A= +=0A= hunk ./homepage/building.html 219=0A= +<li>You should pass the <code>--with-stc</code> option to = <code>configure<=3D=0A= /code> if you also installed contrib's stc library after building=0A= +wxWidgets (or you will get link errors).</li>=0A= hunk ./homepage/building.html 231=0A= +> make wx=0A= +> make wx-install=0A= hunk ./homepage/building.html 288=0A= -<a style=3D3D"float: right" href=3D3D"#body">top</a>last update: "May = 8 2005"=3D=0A= .=0A= +<a style=3D3D"float: right" href=3D3D"#body">top</a>last update: "Aug = 18 2007=3D=0A= ".=0A= hunk ./homepage/documentation.html 58=0A= -<a = href=3D3D"http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/wxhaskell/wxhask= =3D=0A= ell/samples/wx/">examples</a> in the cvs repository. Documentation and = samp=3D=0A= les are also distributed as a single zip file on the=0A= +<a = href=3D3D"http://darcs.haskell.org/wxhaskell/samples/wx/">examples</a> = in=3D=0A= the darcs repository. Documentation and samples are also distributed as = a =3D=0A= single zip file on the=0A= hunk ./homepage/documentation.html 75=0A= -<dt><a href=3D3D"http://www.haskell.org/hawiki/WxHaskell">wxHaskell = Wiki</a>=3D=0A= </dt>=0A= +<dt><a href=3D3D"http://haskell.org/haskellwiki/WxHaskell">wxHaskell = Wiki</a=3D=0A= ></dt>=0A= hunk ./homepage/documentation.html 82=0A= -<a style=3D3D"float: right" href=3D3D"#body">top</a>last update: "May = 3 2005"=3D=0A= .=0A= +<a style=3D3D"float: right" href=3D3D"#body">top</a>last update: "Aug = 12 2007=3D=0A= ".=0A= }=0A= =0A= Context:=0A= =0A= [Changed Cursor_CreateLoad to return NULL for WXGTK, as WXGTK do yet = implem=3D=0A= ent this function=0A= Mads Lindstroem <mad...@ya...>**20070916170828] =3D=0A= =0A= [Rename wxcu-2.6.4.* to wxc-2.6.* as wxc-2.4 things=0A= shelarcy <she...@gm...>**20070821050957] =3D=0A= =0A= [Update VC++ project file to reflect updated DLL version supporting = wxWidge=3D=0A= ts 2.6.4=0A= shelarcy <she...@gm...>**20070821044612] =3D=0A= =0A= [Remove old wxc project files between 2.6.0 - 2.6.3=0A= shelarcy <she...@gm...>**20070821043754] =3D=0A= =0A= [Remove old wxh samples=0A= shelarcy <she...@gm...>**20070821043453] =3D=0A= =0A= [Remove auto-generated stc files.=0A= Eric Kow <eri...@lo...>**20070819205954=0A= Otherwise, you get annoying new changes in the working directory.=0A= ] =3D=0A= =0A= [Use Data.Time.getCurrentTime instead of (System.)Time.getClockTime=0A= shelarcy <she...@gm...>**20070819204230=0A= to avoid build failure by generated non-UTF8 String=0A= ] =3D=0A= =0A= [Add Drag & Drop and ClipBoard Support=0A= shelarcy <she...@gm...>**20070815175137] =3D=0A= =0A= [Add (Multi-)MediaCtrl Support=0A= shelarcy <she...@gm...>**20070811123742] =3D=0A= =0A= [Rework wxToolkit and isDefined by fixing *defs' char array to wxChar = array=0A= shelarcy <she...@gm...>**20070806121930] =3D=0A= =0A= [Change some str* functions or wcs* functions to wxStr* functions=0A= shelarcy <she...@gm...>**20070805112624] =3D=0A= =0A= [Remove unused wxh directory files=0A= shelarcy <she...@gm...>**20070803123528] =3D=0A= =0A= [Remove unused wxWidgets 2.5.x's VC project=0A= shelarcy <she...@gm...>**20070803120930] =3D=0A= =0A= [Add VC project for wxWidgets 2.6.4=0A= shelarcy <she...@gm...>**20070803120733] =3D=0A= =0A= [Fix broken wxc-2.4 Visual Studio Project=0A= shelarcy <she...@ho...>**20070723214850] =3D=0A= =0A= [polyline-64bit-compatibility-fix=0A= ar...@cs...**20070313080116=0A= Fixes a problem with the polyline function on a 64-bit platform.=0A= The wxDC_DrawLines function now properly indexes into the array=0A= with points.=0A= ] =3D=0A= =0A= [fix-polygon-behaviour-64=0A= ar...@cs...**20070202154517=0A= Fixed issue 'Strange polygon behaviour on 64-bit machines'=0A= reported by Chris Mears at 14 Dec 2006.=0A= =3D=0A= =0A= Problem: the arrays inspected by the wxDC_Polygon function=0A= are assumed to contain 32-bits ints. On 64-bit machines=0A= these are actually 64-bits ints.=0A= =3D=0A= =0A= Fix: (a bit of a hack...) the code now assumes that the=0A= arrays contain intptr_t values. This type represents ints=0A= of the same number of bits as the Haskell ints (on 32-bit=0A= and 64-bit machines). The code now dereferences each element=0A= in the array correctly, but still truncates the possibly=0A= 64-bit value to a 32-bit value. This is not a problem=0A= in practice.=0A= ] =3D=0A= =0A= [Announce new maintainers, darcs (homepage).=0A= Eric Kow <eri...@lo...>**20070120231403] =3D=0A= =0A= [Add miscellaneous other images (homepage).=0A= Eric Kow <eri...@lo...>**20070120224435] =3D=0A= =0A= [Add application screenshots (homepage).=0A= Eric Kow <eri...@lo...>**20070120224104] =3D=0A= =0A= [Add images used in quick start (homepage).=0A= Eric Kow <eri...@lo...>**20070120223650] =3D=0A= =0A= [Add images used for samples (homepage).=0A= Eric Kow <eri...@lo...>**20070120223301] =3D=0A= =0A= [Add images directory (and wxhaskell logo).=0A= Eric Kow <eri...@lo...>**20070120222724] =3D=0A= =0A= [Remove counter code from homepage.=0A= Eric Kow <eri...@lo...>**20070120221619=0A= =3D=0A= =0A= This counter has an pop-up ads, which is rather obnoxious.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Add wxhaskell homepage files (main html, css only).=0A= Eric Kow <eri...@lo...>**20070120221304=0A= =3D=0A= =0A= I took the liberty of running dos2unix on these.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Add some wxhaskell-specifile boring file regexps.=0A= Eric Kow <eri...@lo...>**20070120221235] =3D=0A= =0A= [Use a custom boring file. (Right now just the darcs default)=0A= Eric Kow <eri...@lo...>**20070120221223] =3D=0A= =0A= [Add an etc/ directory for misc use.=0A= Eric Kow <eri...@lo...>**20070120212146] =3D=0A= =0A= [Modify wx-install so it doesn't accidentally recompile things.=0A= Eric Kow <eri...@lo...>**20070120225914=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Merge wxStyledTextCntrl (Scintilla edit control wrapper) support from = Hast=3D=0A= e project=0A= shelarcy <she...@ca...>**20070111090641] =3D=0A= =0A= [Added #ifndef compilation flag around <inttypes.h> to avoid building = probl=3D=0A= em under Visual C++ (VC). (VC doesn't have <inttypes.h>.)=0A= she...@ca...**20061207005946] =3D=0A= =0A= [Correct previous patch for db.cpp=0A= she...@ca...**20061207004327] =3D=0A= =0A= [Add an eyeball test for Unicode strings.=0A= Eric Kow <eri...@lo...>**20061129042230] =3D=0A= =0A= [Use intptr_t to avoid assumption that integers are 32 bit.=0A= Arie Middelkoop <ar...@cs...>**20061125125628=0A= =3D=0A= =0A= Compiling wxHaskell on a 64bits platform fails, because there=0A= are some assumptions in the code that assume that integers are=0A= 32bits. For example, there are a couple of assignments of a=0A= pointer to an int.=0A= =3D=0A= =0A= This patch fixes these problems. Sometimes, after assigning a=0A= pointer to an integer, the int was used as a boolean value. In=0A= those cases, instead of returning a pointer p, I changed the=0A= code to return p !=3D3D NULL. In two other cases, a pointer is stored=0A= inside the int and in these cases I changed the type of the=0A= int to intptr_t, of which it is guaranteed that a pointer can be=0A= assigned to it and recovered from it.=0A= =3D=0A= =0A= Requires <inttypes.h>.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Added the -fPIC compiler flag to CXX options in the makefile.=0A= Arie Middelkoop <ar...@cs...>**20061115121006=0A= =3D=0A= =0A= Apparantly, my platform (gentoo x86_64 linux) required that .o files = are "=3D=0A= relocatable" when there =3D=0A= =0A= are linked into a dynamic library.=0A= =3D=0A= =0A= (It might be an idea to use libtool to hide this kind of = platform-specific=3D=0A= details)=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Tweak wx build target to depend on wxcore-clean.=0A= Eric Kow <eri...@lo...>**20061115002142=0A= =3D=0A= =0A= This avoids weird build errors with GHC 6.6 like=0A= wx/src/Graphics/UI/WX/Types.hs:94:0:=0A= Bad interface file: out/wx/imports/Graphics/UI/WXCore/Types.hi=0A= Something is amiss; requested module=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Update Windows/VC++ build for 0.10.1 (from jer...@gm...).=0A= Eric Kow <eri...@lo...>**20061029082957=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Separate make/make install for wxcore and wx.=0A= Eric Kow <eri...@lo...>**20061027201218=0A= =3D=0A= =0A= Now the user has to type=0A= make=0A= (sudo) make install=0A= make wx=0A= (sudo) make wx-install=0A= =3D=0A= =0A= This is a tweak of Shelarcy's patch for making wxhaskell compile on GHC = 6.=3D=0A= 6.=0A= The intention is to avoid the surprising behaviour of wxcore being = install=3D=0A= ed=0A= when the user types 'make'.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Add shelarcy patch for compile with GHC-6.6=0A= jer...@gm...**20061027102208] =3D=0A= =0A= [Add support for toolbar divider and other toolbar options (from = shelarcy@g=3D=0A= mail.com)=0A= jer...@gm...**20061023095411] =3D=0A= =0A= [Add support for toolbar divider (for she...@gm...)=0A= jer...@gm...**20061023094720] =3D=0A= =0A= [Add support for list item mask (from she...@gm...)=0A= jer...@gm...**20061023094528] =3D=0A= =0A= [Add support for Calendar events (from sha...@gm...)=0A= jer...@gm...**20061023094412] =3D=0A= =0A= [Add support for wxWidgets version >=3D3D 2.5 (Sound API, db API)=0A= jer...@gm...**20061023094049] =3D=0A= =0A= [Shelarcy patch: fix typos in wxHaskell samples/contrib=0A= jer...@gm...**20060830114937] =3D=0A= =0A= [(OS X) Skip intermediate step of compiling master.o.=0A= Eric Kow <eri...@lo...>**20060813212620=0A= =3D=0A= =0A= Removing this step (which compiles master.o, and combines it with other=0A= stuff to get the real library we want) avoids weird error messages like=0A= =3D=0A= =0A= ld: out/wxc/master.o undefined symbol 36218 (__ZdaPv) can't be a weak=0A= definition=0A= =3D=0A= =0A= It's quite possible that this breaks something else, though...=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Update VC++ project file to reflect new wxWidgets version support = (unteste=3D=0A= d)=0A= jer...@gm...**20060817170205] =3D=0A= =0A= [Update VC++ project file to reflect updated DLL version supporting = wxWidge=3D=0A= ts 2.6.3=0A= jer...@gm...**20060817170011] =3D=0A= =0A= [Update revision numbers and wxversion guesses for Windows / VC++ = (jeremy.o=3D=0A= don...@gm...)=0A= jer...@gm...**20060817165704] =3D=0A= =0A= [Shelarcy patch (VC project for wxWindows 2.6.3)=0A= jer...@gm...**20060816134707] =3D=0A= =0A= [Shelarcy patch (WxcTypes.hs)=0A= jer...@gm...**20060816115419] =3D=0A= =0A= [Shelarcy patch (eljdialup.cpp)=0A= jer...@gm...**20060816114418] =3D=0A= =0A= [Shelarcy patch (db.cpp)=0A= jer...@gm...**20060816113728] =3D=0A= =0A= [(wxc, Unicode) Files for compiling unicode version under Visual Studio.=0A= shelarcy <she...@ca...>**20060813212315=0A= =3D=0A= =0A= This is Eric Kow recording on Shelarcy's behalf. This corresponds to = vers=3D=0A= ion=0A= 08 of my Unicode patch.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [Add a small makefile for compiling the samples.=0A= Eric Kow <eri...@lo...>**20060813211705=0A= =3D=0A= =0A= (This comes from version 08 of my Unicode patch).=0A= =3D=0A= =0A= ] =3D=0A= =0A= [(wxcore, Unicode) Add/use ability to interact with C wchar_t.=0A= Eric Kow <eri...@lo...>**20060813211211=0A= =3D=0A= =0A= This corresponds to the wxcore part of my Unicode patch, version 08=0A= modulo trailing whitespace.=0A= =3D=0A= =0A= I believe this would require for wxWidgets and wxhaskell to be compiled = wi=3D=0A= th=0A= Unicode enabled.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [(wxdirect, Unicode) Use the Haskell types for C wchar_t and friends.=0A= Eric Kow <eri...@lo...>**20060813210420=0A= =3D=0A= =0A= I believe this would require that wxWidgets be compiled with Unicode=0A= enabled.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [(wxc, Unicode) Use wxChar instead of char.=0A= Eric Kow <eri...@lo...>**20060813205557=0A= =3D=0A= =0A= wxChar is a C preprocessor macro that selects for char under=0A= --disable-unicode, and for wchar_t under --enable-unicode.=0A= =3D=0A= =0A= This corresponds to version 08 of my Unicode patch, but only the parts=0A= which affect wxc.=0A= =3D=0A= =0A= ] =3D=0A= =0A= [[wxhaskell-from-cvs @ 2005-05-08 08:12:51 by dleijen]=0A= dleijen**20050508081251=0A= updated change log=0A= ] =3D=0A= =0A= [[wxhaskell-from-cvs @ 2005-05-08 07:24:23 by dleijen]=0A= dleijen**20050508072423=0A= Compile wx via -fvia-C to fix crash with ghci on windows=0A= ] =3D=0A= =0A= [TAG wxhakell-0-9-4=0A= Unknown tagger**20060712042545] =3D=0A= =0A= Patch bundle hash:=0A= e8fa496264b29f82b4d73160b98e1574a71b81bf=0A= =0A= --=3D_--=0A= =0A= .=0A= =0A= |
From: shelarcy <she...@gm...> - 2007-11-21 07:41:18
|
Hi Andrew, I'm sorry about my reply is late. Do you already solve this problem? On Thu, 08 Nov 2007 18:23:40 +0900, Andrew Butterfield <And...@cs...> wrote: > My code - for the relevant windows > > > -- Goal Window > > gp <- panel h [] > > g <- scrolledWindow gp [] > > Do I need to nest another window inside the scrolled window ? > When I perform the right-arrow action (say), I repaint g, > which renders the expression appropriately. Is gp a panel? I don't know why you don't want to set key events for panel instead of scrolledWindow. I think you can skip key events for scrolledWindow by propagateEvent, if you set key events for panel. > My biggest problem is that the documentation is very unclear. I think problems come from poor examples. Can you send us more complete - executable - example code? Your problem is unclear for me. Best Regards, -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |
From: <sl...@cn...> - 2007-11-15 08:16:50
|
uanTpqO6vPSw5bv6oaLV283ku/qhor7tsOW7+qGis+W0sqGi0KPGvbv6DQqwsrvVyqHI/cGmu/q0 stbG1OzT0M/euavLvqOsyvSwsrvVyqHD+8XGoaLD4rzssvrGt8n6svrG89K1o6ywsrvVyqG439DC vLzK9cbz0rWjrMLtsLDJvcrQobDXqKGivquhoszYoaLQwqGxxvPStaOswu2wsMm9ytDPwrjayqfS tdawuaTU2b7N0rW7+bXYo6y96dPaxM++qaGizt+6/tauvOSjrNf4wuTU2tb4w/u1xLjWs8fC7bCw yb3K0KOst+G4u7XEuNbM+tfK1LTOqrmry761xLei1bnM4bmpwcu1w8zstsC68bXE08XKxqGjuavL vtW8tdjD5rv9MTA4MDAwxr23vcPXo6zW99Kqyfqy+qGwtPPKoqGxxcbPtcHQvPSw5bv6oaLV283k u/qhor7tsOW7+qGiv+zL2dG5waa7+qGis+W0sqGiv6q+7dCjxr27+qGi0M2yxM3kx/q7+rW2xKO+ 37XIsvrGt6Os16jStc6qur2/1aGix+G5pKGi0rG98KGiu6+5pKGivajW/sb7s7WhorXnwaahotew 5Oq1yNDQ0rXM4bmpy/nQ6NKqtcTXqNPDu/rQtbrNs8nM18nosbijrLL6xrfP+s35yKu5+rj3tdi6 zcW3w8u8sLarxM/Rx7XYx/iyotS2z/rEz7fHoaMgoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGh oaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGh oaG5q8u+08PP1rT6xvPStbXEudzA7be9t6ihosGi1+PT2rL6xre53MDto6zS1Mbk08XQ47XExrfW yqOs0MLTsbXEyei8xqOsus/A7bXEvNu48aOszerJxrXEytu687f+zvHTrrXDwcu547Tzv827p7XE 0rvWwrrDxsCjrLG7xsDOqrCyu9XKoaGw1ti6z82soaLK2NDF08PPyL34taXOu6GxoaKwsrvVyqGh sNb4w/vJzLHqobGhorCyu9XKoaGww/vFxrL6xrehsaGiobDG89K1vfiz9r/a18q48dakobGhoqGw Q0W5+rzKyM/WpKGxsLK71cqhxanQ0KGwQUErvLbQxdPDxvPStaGxoaKwsrvVyqGhsNPF0OOzz9DF w/HTqsbz0rWhsaGisLK71cqhobCzz9DFtaXOu6GxoaKhsMLtsLDJvcrQz8i9+LyvzOWhsaGiobDC 7bCwyb3K0NPF0OPLvdOqxvPStaGxoaKhsMLtsLDJvcrQs8/QxcTJy7DIy6GxoaKhsMLtsLDJvcrQ 0vjQ0NDFtPuzz9DF1tDQocbz0rWhsaGiobDIq7n608O7p7L6xrfWysG/wvrS4qOsytu687f+zvHC +tLiyr63trWlzruhsaGiobBBQUG8ttbKwb+zz9DFu+HUsbWlzruhsaGiobDW0Ln61srBv7n907K3 xdDExrfFxqGxoaKhsNbQufrK0LOhuavIz7Opz/rGt8XGobGhoqGwyKu5+rv6tLLKrrzRw/vTxca3 xcahsbXIyNnT/rPGusUgoaGhocirzOXUsbmk0tTPyL34tcS8vMr1us3P1rT6u6+1xLncwO3K1rbO zqrXt8fzsvrGt7XEzerDwLb4srvQuMWswaaho7mry77T2jIwMDHE6jEw1MLIq8Pmzai5/UlTTzkw MDGjujIwMDDWysG/udzA7czlz7XIz9ako6wyMDAzxOo41MLNqLn9wcvI/by2vMbBv8i3yM+jrNO1 09DX1NOqvfiz9r/ayKijrM6qzOG437L6xre/xry8tcS6rL3wwb+8sLL6xrfQ1MTco6wyMDAzxOox MtTCuavLvtPrus+3yrmk0rW089Gnus/X97PJwaLBy6Gwu/q0srmks8y8vMr10dC+v9bQ0MShsaGj MjAwNMTqV0Y2N0vK/b/YsOXBz9XbzeS7+tDCxrfJ+rL6z9/P7sS/sbvIq8qht6LVubjEuO/Or9Sx u+HF+te8zqrKoaGwyP2436Gxz+7Ev6OssqKxu8HQyOvKoaGwODYxobG8xruu1ti1472oyejP7sS/ oaO5+rzS1srBv7zs0em87NLf19y+1tPaMjAwNsTqOdTCttTO0rmry761xFFDMTJZLTSjqjMyMDDS utG5sNrKvbz0sOW7+r340NDBy7L6xrfWysG/ufq80rzgtr2z6bLpoaPO0rmry76y+sa30ru0ztDU zai5/bj3z+7WuLHqvOzR6aOss8m8qMirsr+48aOovOzR6bGouOax4LrFo7pESi0xMDU1LUQwMS1R o6mho6GhoaGhoaGhoaGhoaGhoaGhocj9waay+sa3vqvS5sfzvqujrMj9wabIy72rsru2z7+qzdij rLK7ts+0tNDCo6yyotXms8+12NS40+u4973nxfPT0dCvyta5sr34o6y5ss2st6LVuaGjDQq1pc67 o7qwsrvVyqHI/cGmu/q0stbG1OzT0M/euavLvg0Ktee7sKO6MDU1NS02NzIxMjQ5ICAgtKvV5qO6 MDU1NS02NjEyODQ4DQp3d3cuY25qY3p6LmNvbQ0Kc2xAY25qY3p6LmNvbQ0KCqGqoaqhqqGqoaqh qqGqoaqhqqGqoaqhqqGqoaqhqqGqoaqhqqGqoaqhqqGqoaqhqqGqoaqhqqGqoaqhqgqhvtei0uKh v8nPw+a1xNPKvP7E2sjd0+vS1M/CzsTX1s7eudiho7G+yO28/r32z97T2rrPt6jTw82+IQq4w9PK vP7TyaG2Vm9sbGV5bWFpbNPKvP7Iurei16i80qG3yO28/reiy82ju7G7zfjT0cbAzqrX7sD3uqYK tcTTyrz+yLq3osjtvP62+LbgtM7Sqsfzxsa94qOhz9bD4rfRz8LU2KOszt7P3sqxvOTKudPDoaMK z+rH6cfrt8POys7Sw8e1xNb30rOjumh0dHA6Ly93d3cuY255c29mdC5jb20v |
From: <sl...@cn...> - 2007-11-12 07:25:51
|
uanTpqO6vPSw5bv6oaLV283ku/qhor7tsOW7+qGis+W0sqGi0KPGvbv6DQqwsrvVyqHI/cGmu/q0 stbG1OzT0M/euavLvqOsyvSwsrvVyqHD+8XGoaLD4rzssvrGt8n6svrG89K1o6ywsrvVyqG439DC vLzK9cbz0rWjrMLtsLDJvcrQobDXqKGivquhoszYoaLQwqGxxvPStaOswu2wsMm9ytDPwrjayqfS tdawuaTU2b7N0rW7+bXYo6y96dPaxM++qaGizt+6/tauvOSjrNf4wuTU2tb4w/u1xLjWs8fC7bCw yb3K0KOst+G4u7XEuNbM+tfK1LTOqrmry761xLei1bnM4bmpwcu1w8zstsC68bXE08XKxqGjuavL vtW8tdjD5rv9MTA4MDAwxr23vcPXo6zW99Kqyfqy+qGwtPPKoqGxxcbPtcHQvPSw5bv6oaLV283k u/qhor7tsOW7+qGiv+zL2dG5waa7+qGis+W0sqGiv6q+7dCjxr27+qGi0M2yxM3kx/q7+rW2xKO+ 37XIsvrGt6Os16jStc6qur2/1aGix+G5pKGi0rG98KGiu6+5pKGivajW/sb7s7WhorXnwaahotew 5Oq1yNDQ0rXM4bmpy/nQ6NKqtcTXqNPDu/rQtbrNs8nM18nosbijrLL6xrfP+s35yKu5+rj3tdi6 zcW3w8u8sLarxM/Rx7XYx/iyotS2z/rEz7fHoaMgoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGh oaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGh oaG5q8u+08PP1rT6xvPStbXEudzA7be9t6ihosGi1+PT2rL6xre53MDto6zS1Mbk08XQ47XExrfW yqOs0MLTsbXEyei8xqOsus/A7bXEvNu48aOszerJxrXEytu687f+zvHTrrXDwcu547Tzv827p7XE 0rvWwrrDxsCjrLG7xsDOqrCyu9XKoaGw1ti6z82soaLK2NDF08PPyL34taXOu6GxoaKwsrvVyqGh sNb4w/vJzLHqobGhorCyu9XKoaGww/vFxrL6xrehsaGiobDG89K1vfiz9r/a18q48dakobGhoqGw Q0W5+rzKyM/WpKGxsLK71cqhxanQ0KGwQUErvLbQxdPDxvPStaGxoaKwsrvVyqGhsNPF0OOzz9DF w/HTqsbz0rWhsaGisLK71cqhobCzz9DFtaXOu6GxoaKhsMLtsLDJvcrQz8i9+LyvzOWhsaGiobDC 7bCwyb3K0NPF0OPLvdOqxvPStaGxoaKhsMLtsLDJvcrQs8/QxcTJy7DIy6GxoaKhsMLtsLDJvcrQ 0vjQ0NDFtPuzz9DF1tDQocbz0rWhsaGiobDIq7n608O7p7L6xrfWysG/wvrS4qOsytu687f+zvHC +tLiyr63trWlzruhsaGiobBBQUG8ttbKwb+zz9DFu+HUsbWlzruhsaGiobDW0Ln61srBv7n907K3 xdDExrfFxqGxoaKhsNbQufrK0LOhuavIz7Opz/rGt8XGobGhoqGwyKu5+rv6tLLKrrzRw/vTxca3 xcahsbXIyNnT/rPGusUgoaGhocirzOXUsbmk0tTPyL34tcS8vMr1us3P1rT6u6+1xLncwO3K1rbO zqrXt8fzsvrGt7XEzerDwLb4srvQuMWswaaho7mry77T2jIwMDHE6jEw1MLIq8Pmzai5/UlTTzkw MDGjujIwMDDWysG/udzA7czlz7XIz9ako6wyMDAzxOo41MLNqLn9wcvI/by2vMbBv8i3yM+jrNO1 09DX1NOqvfiz9r/ayKijrM6qzOG437L6xre/xry8tcS6rL3wwb+8sLL6xrfQ1MTco6wyMDAzxOox MtTCuavLvtPrus+3yrmk0rW089Gnus/X97PJwaLBy6Gwu/q0srmks8y8vMr10dC+v9bQ0MShsaGj MjAwNMTqV0Y2N0vK/b/YsOXBz9XbzeS7+tDCxrfJ+rL6z9/P7sS/sbvIq8qht6LVubjEuO/Or9Sx u+HF+te8zqrKoaGwyP2436Gxz+7Ev6OssqKxu8HQyOvKoaGwODYxobG8xruu1ti1472oyejP7sS/ oaO5+rzS1srBv7zs0em87NLf19y+1tPaMjAwNsTqOdTCttTO0rmry761xFFDMTJZLTSjqjMyMDDS utG5sNrKvbz0sOW7+r340NDBy7L6xrfWysG/ufq80rzgtr2z6bLpoaPO0rmry76y+sa30ru0ztDU zai5/bj3z+7WuLHqvOzR6aOss8m8qMirsr+48aOovOzR6bGouOax4LrFo7pESi0xMDU1LUQwMS1R o6mho6GhoaGhoaGhoaGhoaGhoaGhocj9waay+sa3vqvS5sfzvqujrMj9wabIy72rsru2z7+qzdij rLK7ts+0tNDCo6yyotXms8+12NS40+u4973nxfPT0dCvyta5sr34o6y5ss2st6LVuaGjDQq1pc67 o7qwsrvVyqHI/cGmu/q0stbG1OzT0M/euavLvg0Ktee7sKO6MDU1NS02NzIxMjQ5ICAgtKvV5qO6 MDU1NS02NjEyODQ4DQp3d3cuY25qY3p6LmNvbQ0Kc2xAY25qY3p6LmNvbQ0KCqGqoaqhqqGqoaqh qqGqoaqhqqGqoaqhqqGqoaqhqqGqoaqhqqGqoaqhqqGqoaqhqqGqoaqhqqGqoaqhqgqhvtei0uKh v8nPw+a1xNPKvP7E2sjd0+vS1M/CzsTX1s7eudiho7G+yO28/r32z97T2rrPt6jTw82+IQq4w9PK vP7TyaG2Vm9sbGV5bWFpbNPKvP7Iurei16i80qG3yO28/reiy82ju7G7zfjT0cbAzqrX7sD3uqYK tcTTyrz+yLq3osjtvP62+LbgtM7Sqsfzxsa94qOhz9bD4rfRz8LU2KOszt7P3sqxvOTKudPDoaMK z+rH6cfrt8POys7Sw8e1xNb30rOjumh0dHA6Ly93d3cuY255c29mdC5jb20v |
From: Pavel S. <sh...@me...> - 2007-11-09 17:00:05
|
Debian package from [1] fail to install on unstable (and also outdated) So I've packaged current development version of wxHaskell (2007-09-16). It's located at [2]. Source with debian/ subdir may be found at [3, 4]. Is it possible to merge debian/ into darcs repo? It would be great if somebody test this package. Feedback will be apprichiated. Also suggestions about naming scheme and library location are welcome. Pavel P.S Package built against testing so don't be confused by 'unstable' :) -- [1] http://haskell-unsafe.alioth.debian.org/archive/i386/unstable/w/wxhaskell/ [2] http://grid.pp.ru/debian/pool/unstable/ [3] git://grid.pp.ru/psha/wxhaskell/ [4] http://grid.pp.ru/git/?p=psha/wxhaskell/.git |
From: Andrew B. <And...@cs...> - 2007-11-08 09:22:07
|
shelarcy wrote: > Hi Andrew, > > On Wed, 07 Nov 2007 21:39:44 +0900, Andrew Butterfield <And...@cs...> wrote: > >> However when I hit an arrow key, the expression navigation works fine, >> but the scrolled window also moves ! >> >> How do I stop these key events getting to the scrollbars ? >> >> (I only want to scroll using the mouse.) >> >> The wxWidgets documents talk about preventing event propagation >> using wxEvent::Skip, but I can't find a wxHaskell equivalent of this. >> > > wxHaskell has propagateEvent function that is wrapper function of wxEvent::Skip. > How about use it? > > http://wxhaskell.sourceforge.net/doc/Graphics.UI.WX.Events.html#v%3ApropagateEvent > because it says: *propagateEvent* :: IO () Pass the event on the next /wxWindows/ event handler, either on this window or its parent. Always call this method when you do not process the event. (This function just call skipCurrentEvent <http://wxhaskell.sourceforge.net/doc/Graphics.UI.WXCore.Events.html#v%3AskipCurrentEvent>). I want to do the opposite - handle the event in the frame where the expression is displayed, but not send it to whatever is handling the scroll bars My code - for the relevant windows > -- Goal Window > gp <- panel h [] > g <- scrolledWindow gp [] Do I need to nest another window inside the scrolled window ? When I perform the right-arrow action (say), I repaint g, which renders the expression appropriately. My biggest problem is that the documentation is very unclear. -- -------------------------------------------------------------------- Andrew Butterfield Tel: +353-1-896-2517 Fax: +353-1-677-2204 Foundations and Methods Research Group Director. Course Director, B.A. (Mod.) in CS and ICT degrees, Year 4. Department of Computer Science, Room F.13, O'Reilly Institute, Trinity College, University of Dublin, Ireland. http://www.cs.tcd.ie/Andrew.Butterfield/ -------------------------------------------------------------------- |
From: shelarcy <she...@gm...> - 2007-11-08 09:14:47
|
Hi Andrew, On Wed, 07 Nov 2007 21:39:44 +0900, Andrew Butterfield <And...@cs...> wrote: > However when I hit an arrow key, the expression navigation works fine, > but the scrolled window also moves ! > > How do I stop these key events getting to the scrollbars ? > > (I only want to scroll using the mouse.) > > The wxWidgets documents talk about preventing event propagation > using wxEvent::Skip, but I can't find a wxHaskell equivalent of this. wxHaskell has propagateEvent function that is wrapper function of wxEvent::Skip. How about use it? http://wxhaskell.sourceforge.net/doc/Graphics.UI.WX.Events.html#v%3ApropagateEvent Best Regards, -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |
From: Andrew B. <And...@cs...> - 2007-11-07 12:38:15
|
I have an application where I want to use the up/down/left/right arrow keys to navigate around an expression displayed on-screen. I also want the window to have scrollbars. However when I hit an arrow key, the expression navigation works fine, but the scrolled window also moves ! How do I stop these key events getting to the scrollbars ? (I only want to scroll using the mouse.) The wxWidgets documents talk about preventing event propagation using wxEvent::Skip, but I can't find a wxHaskell equivalent of this. -- -------------------------------------------------------------------- Andrew Butterfield Tel: +353-1-896-2517 Fax: +353-1-677-2204 Foundations and Methods Research Group Director. Course Director, B.A. (Mod.) in CS and ICT degrees, Year 4. Department of Computer Science, Room F.13, O'Reilly Institute, Trinity College, University of Dublin, Ireland. http://www.cs.tcd.ie/Andrew.Butterfield/ -------------------------------------------------------------------- |
From: Mads <mad...@ya...> - 2007-10-25 18:19:09
|
Hi all As this old post http://sourceforge.net/mailarchive/message.php?msg_id=54647.129.16.31.149.1111686341.squirrel%40webmail.chalmers.se describes, the function processExecAsyncTimed crashes when the created process finishes. At least it does on his and mine computer. The following error is written to std. out.: Process: Prelude.chr: bad argument I have investigated the problem, but I think I could benefit from some help. The Perlude.chr :: Int -> Char function maps integers to chars. It only accepts integers >= 0 and they must not be too big either (something like < 10^6). I suspected that EOF (= -1) might be passed on to Prelude.chr, I therefore changed the withCharResult function in file wxcore/src/Graphics/UI/WXCore/WxcTypes.hs to write the integer value before it was converted by Prelude.chr. To my surprise, Prelude.chr did not fail on -1 but on -74. Is there anybody who has an idea why it would -74? Note, that processExecAsyncTimed actually processes all the output it should before failing on -74. I also tried the exec-example from the WxWidgets 2.6.4 (see http://www.wxwidgets.org/downloads/#previous_stable) download. It did work. So it seems likely that it is WxHaskell or Haskell -related issue. Any suggestions are welcome. Greetings, Mads Lindstrøm |
From: Jeremy O'D. <jer...@gm...> - 2007-09-28 15:46:47
|
Hi Mads, Missed this one first time around. I have something which may help somewhat. It won't compile as it depends on an old version of the Fast Packed Sting library, but it may give you an idea of the structure. I'll put it into a more useable form when I finally finish working on the wxWidgets 2.8 support, but it may help for now. Regards Jeremy On 09/09/2007, Mads Lindstr=F8m <mad...@ya...> wrote: > Hi all > > I am trying to create a custom control. Thus I have looked at this > example http://darcs.haskell.org/wxhaskell/samples/wx/CustomControl.hs . > But it does not really help me. I also tried the WxWidgets site and it > did not help much either. > > What I would like is to take two textCtrl-s (or other controls) and > compose them into one bigger control. And still "inheriting" all the > functions/classes associated with `Window a`. And the new control should > also implement some classes which `Window a` do not, like Commanding. > > I can compose two textCtrl-s, but not while "inheriting" Window. Thus I > have to implement all the classes Window implements. And even worse, I > can see no way of making my custom control work with functions like > `focusOn`, as they are defined in a class. > > Anybody have such an example or some pointers? > > > Greetings, > > Mads Lindstr=F8m > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > |
From: Conal E. <co...@co...> - 2007-09-19 18:48:24
|
Is there a way to get keyboard events for MDI child frames? My "on keyboard" handlers never respond, though they work for widgets. - Conal |
From: Conal E. <co...@co...> - 2007-09-17 19:22:36
|
does anyone have code whipped up for float/double-valued sliders? i have a rudimentary version built on top of (the int-valued) "slider" and mapAttr, without visible bounds or current value. thanks, - conal |
From: Conal E. <co...@co...> - 2007-09-16 19:12:33
|
I'm trying to assign some keyboard shortcuts in a wxhaskell app (Eros). I can pick up the keyboard events in a subpanel, using "on keyboard := ...", but so far not in the containing (MDI child) frame or panel. Any ideas? Thanks much, - Conal |
From: Eric Y. K. <eri...@gm...> - 2007-09-16 19:02:01
|
Hi Mads, > Sun Sep 16 19:08:28 CEST 2007 Mads Lindstroem <mad...@ya...> > * Changed Cursor_CreateLoad to return NULL for WXGTK, as WXGTK do yet i= mplement this function Works fine now. Pushed. Many thanks! By the way, in the future, we should probably try to keep our short patch names short (< 72 chars). For example, I would have probably put the WXGTK reasoning in the long comment. Best, --=20 Eric Kow http://www.loria.fr/~kow PGP Key ID: 08AC04F9 Merci de corriger mon fran=E7ais. |