hoodle-core-0.13.0.0: Core library for hoodle

PortabilityGHC
Stabilityexperimental
MaintainerIan-Woo Kim <ianwookim@gmail.com>
Safe HaskellNone

Hoodle.ModelAction.File

Description

 

Synopsis

Documentation

checkVersionAndMigrate :: ByteString -> IO (Either String Hoodle)Source

check hoodle version and migrate if necessary

getFileContent :: Maybe FilePath -> HoodleState -> IO HoodleStateSource

get file content from xournal file and update xournal state

findFirstPDFFile :: [(Int, RPage)] -> Maybe ByteStringSource

this is very temporary, need to be changed.

makeNewHoodleWithPDFSource

Arguments

:: Bool

doesEmbedPDF

-> FilePath

pdf file

-> IO (Maybe Hoodle) 

createPageSource

Arguments

:: Bool

does embed pdf?

-> Dimension 
-> ByteString 
-> Int 
-> Page 

toggleSave :: UIManager -> Bool -> IO ()Source

this function must be moved to GUI.Reflect

makeNewItemImageSource

Arguments

:: Bool

isEmbedded?

-> FilePath 
-> IO Item