diff options
| author | kr.angelov <kr.angelov@chalmers.se> | 2008-05-22 11:59:31 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@chalmers.se> | 2008-05-22 11:59:31 +0000 |
| commit | df0c4f81fa9c620d7c63af79c0b183a6beccf0bd (patch) | |
| tree | 0cdc80b29f8f5df0ad280f17be0ba9d46fbd948c /src-3.0/GF/Fudgets/FudgetOps.hs | |
| parent | 6394f3ccfbb9d14017393b433a38a3921f1083e5 (diff) | |
remove all files that aren't used in GF-3.0
Diffstat (limited to 'src-3.0/GF/Fudgets/FudgetOps.hs')
| -rw-r--r-- | src-3.0/GF/Fudgets/FudgetOps.hs | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/src-3.0/GF/Fudgets/FudgetOps.hs b/src-3.0/GF/Fudgets/FudgetOps.hs deleted file mode 100644 index 4aba5eec5..000000000 --- a/src-3.0/GF/Fudgets/FudgetOps.hs +++ /dev/null @@ -1,59 +0,0 @@ ----------------------------------------------------------------------- --- | --- Module : FudgetOps --- Maintainer : AR --- Stability : (stable) --- Portability : (portable) --- --- > CVS $Date: 2005/04/21 16:22:17 $ --- > CVS $Author: bringert $ --- > CVS $Revision: 1.4 $ --- --- auxiliary Fudgets for GF syntax editor ------------------------------------------------------------------------------ - -module GF.Fudgets.FudgetOps where - -import Fudgets - --- save and display - -showAndSaveF fud = (writeFileF >+< textWindowF) >==< saveF fud - -saveF :: F a String -> F (Either String a) (Either (String,String) String) -saveF fud = - absF (saveSP "EMPTY") - >==< - (popupStringInputF "Save" "foo.tmp" "Save to file:" >+< fud) - -saveSP :: String -> SP (Either String String) (Either (String,String) String) -saveSP contents = getSP $ \msg -> case msg of - Left file -> putSP (Left (file,contents)) (saveSP contents) - Right string -> putSP (Right string) (saveSP string) - -textWindowF = writeOutputF - --- | to replace stringInputF by a pop-up slot behind a button -popupStringInputF :: String -> String -> String -> F String String -popupStringInputF label deflt msg = - mapF snd - >==< - (popupSizeP $ stringPopupF deflt) - >==< - mapF (\_ -> (Just msg,Nothing)) - >==< - decentButtonF label - >==< - mapF (\_ -> Click) - -decentButtonF = spacerF (sizeS (Point 80 20)) . buttonF - -popupSizeP = spacerF (sizeS (Point 240 100)) - ---- the Unicode stuff should be inserted here - -writeOutputF = moreF >==< mapF lines - -writeInputF = stringInputF - - |
