Style
This commit is contained in:
parent
1ca38186e8
commit
d39180a723
@ -15,8 +15,8 @@ data DiagProp = MkProp {
|
|||||||
|
|
||||||
-- |Create the Diagram from the VTable.
|
-- |Create the Diagram from the VTable.
|
||||||
diagFromVTable :: DiagProp -> VTable -> Diagram Cairo R2
|
diagFromVTable :: DiagProp -> VTable -> Diagram Cairo R2
|
||||||
diagFromVTable prop meshArr
|
diagFromVTable prop vt
|
||||||
= position (zip (map mkPoint . filter (inRange 0 500) $ meshArr)
|
= position (zip (map mkPoint . filter (inRange 0 500) $ vt)
|
||||||
(repeat dot)) # moveTo (p2(-250, -250))
|
(repeat dot)) # moveTo (p2(-250, -250))
|
||||||
`atop` square 500 # lwG 0.05 # bg white
|
`atop` square 500 # lwG 0.05 # bg white
|
||||||
where dot = (circle $
|
where dot = (circle $
|
||||||
|
2
Gtk.hs
2
Gtk.hs
@ -41,7 +41,7 @@ makeGUI startFile = do
|
|||||||
-- callbacks
|
-- callbacks
|
||||||
_ <- onDestroy window mainQuit
|
_ <- onDestroy window mainQuit
|
||||||
_ <- onClicked drawButton $ onClickedDrawButton fileButton
|
_ <- onClicked drawButton $ onClickedDrawButton fileButton
|
||||||
da hscale
|
da hscale
|
||||||
_ <- onClicked saveButton $ onClickedSaveButton fileButton
|
_ <- onClicked saveButton $ onClickedSaveButton fileButton
|
||||||
_ <- onClicked quitButton mainQuit
|
_ <- onClicked quitButton mainQuit
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user