Copyright | (c) 2011-2015 Ian-Woo Kim |
---|---|
License | BSD3 |
Maintainer | Ian-Woo Kim <ianwookim@gmail.com> |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell98 |
- data HoodleState
- data HoodleModeState
- = ViewAppendState { }
- | SelectState { }
- data UnitHoodle
- data IsOneTimeSelectMode
- data Settings
- data UIComponentSignalHandler
- data FileStore
- unitKey :: Simple Lens UnitHoodle Int
- unitUUID :: Simple Lens UnitHoodle UUID
- unitButton :: Simple Lens UnitHoodle Button
- hoodleModeState :: Simple Lens UnitHoodle HoodleModeState
- hoodleFileControl :: Simple Lens UnitHoodle HoodleFileControl
- cvsInfoMap :: Simple Lens UnitHoodle CanvasInfoMap
- currentCanvas :: Simple Lens UnitHoodle (CanvasId, CanvasInfoBox)
- isOneTimeSelectMode :: Simple Lens UnitHoodle IsOneTimeSelectMode
- frameState :: Simple Lens UnitHoodle WindowConfig
- rootWindow :: Simple Lens UnitHoodle Widget
- unitHoodles :: Simple Lens HoodleState (Int, IntMap UnitHoodle)
- rootNotebook :: Simple Lens HoodleState Notebook
- rootContainer :: Simple Lens UnitHoodle Box
- rootOfRootWindow :: Simple Lens HoodleState Window
- currentPenDraw :: Simple Lens HoodleState PenDraw
- callBack :: Simple Lens HoodleState (AllEvent -> IO ())
- deviceList :: Simple Lens HoodleState DeviceList
- penInfo :: Simple Lens HoodleState PenInfo
- cursorInfo :: Simple Lens HoodleState (PenColor, Double, Bool)
- selectInfo :: Simple Lens HoodleState SelectInfo
- gtkUIManager :: Simple Lens HoodleState UIManager
- isSaved :: Simple Lens UnitHoodle Bool
- undoTable :: Simple Lens UnitHoodle (UndoTable HoodleModeState)
- backgroundStyle :: Simple Lens HoodleState BackgroundStyle
- isFullScreen :: Simple Lens HoodleState Bool
- settings :: Simple Lens HoodleState Settings
- uiComponentSignalHandler :: Simple Lens HoodleState UIComponentSignalHandler
- lastTimeCanvasConfigure :: Simple Lens HoodleState (Maybe UTCTime)
- hookSet :: Simple Lens HoodleState (Maybe Hook)
- tempLog :: Simple Lens HoodleState (String -> String)
- tempQueue :: Simple Lens HoodleState (Queue (Either (ActionOrder AllEvent) AllEvent))
- statusBar :: Simple Lens HoodleState (Maybe Statusbar)
- renderCacheVar :: Simple Lens HoodleState (TVar RenderCache)
- pdfRenderQueue :: Simple Lens HoodleState PDFCommandQueue
- genRenderQueue :: Simple Lens HoodleState GenCommandQueue
- doesNotInvalidate :: Simple Lens HoodleState Bool
- nextPdfBkgPageNum :: Simple Lens HoodleState (Maybe Int)
- hoodleFileName :: Simple Lens HoodleFileControl FileStore
- lastSavedTime :: Simple Lens HoodleFileControl (Maybe UTCTime)
- syncMD5History :: Simple Lens HoodleFileControl [Text]
- doesUseXInput :: Simple Lens Settings Bool
- doesUseTouch :: Simple Lens Settings Bool
- doesUsePopUpMenu :: Simple Lens Settings Bool
- doesEmbedImage :: Simple Lens Settings Bool
- doesEmbedPDF :: Simple Lens Settings Bool
- doesFollowLinks :: Simple Lens Settings Bool
- doesKeepAspectRatio :: Simple Lens Settings Bool
- doesUseVariableCursor :: Simple Lens Settings Bool
- newPageMode :: Simple Lens Settings NewPageModeType
- networkEditSourceInfo :: Simple Lens Settings (Maybe ThreadId)
- penModeSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId RadioAction))
- pageModeSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId RadioAction))
- penPointSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId RadioAction))
- penColorSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId RadioAction))
- newPageModeSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId RadioAction))
- switchTabSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId Notebook))
- emptyUnitHoodle :: IO UnitHoodle
- emptyHoodleState :: IO HoodleState
- defaultSettings :: Settings
- defaultUIComponentSignalHandler :: UIComponentSignalHandler
- getHoodle :: UnitHoodle -> Hoodle EditMode
- setCanvasInfoMap :: CanvasInfoMap -> UnitHoodle -> Maybe UnitHoodle
- getCurrentCanvasId :: UnitHoodle -> CanvasId
- setCurrentCanvasId :: CanvasId -> UnitHoodle -> Maybe UnitHoodle
- currentCanvasInfo :: Simple Lens UnitHoodle CanvasInfoBox
- resetHoodleModeStateBuffers :: CanvasId -> HoodleModeState -> Renderer ()
- getCanvasInfo :: CanvasId -> UnitHoodle -> CanvasInfoBox
- setCanvasInfo :: (CanvasId, CanvasInfoBox) -> UnitHoodle -> UnitHoodle
- updateFromCanvasInfoAsCurrentCanvas :: CanvasInfoBox -> UnitHoodle -> UnitHoodle
- setCanvasId :: CanvasId -> CanvasInfoBox -> CanvasInfoBox
- modifyCanvasInfo :: CanvasId -> (CanvasInfoBox -> CanvasInfoBox) -> UnitHoodle -> UnitHoodle
- hoodleModeStateEither :: HoodleModeState -> Either (Hoodle EditMode) (Hoodle SelectMode)
- getCurrentPageFromHoodleModeState :: CanvasInfo a -> HoodleModeState -> Page EditMode
- getCurrentPageDimFromHoodleModeState :: CanvasInfo a -> HoodleModeState -> PageDimension
- currentUnit :: Simple Lens (Int, IntMap UnitHoodle) UnitHoodle
Documentation
data HoodleState Source #
data UnitHoodle Source #
data IsOneTimeSelectMode Source #
labels
unitButton :: Simple Lens UnitHoodle Button Source #
lens for unitKey
hoodleModeState :: Simple Lens UnitHoodle HoodleModeState Source #
lens for hoodleModeState
hoodleFileControl :: Simple Lens UnitHoodle HoodleFileControl Source #
cvsInfoMap :: Simple Lens UnitHoodle CanvasInfoMap Source #
lens for cvsInfoMap
currentCanvas :: Simple Lens UnitHoodle (CanvasId, CanvasInfoBox) Source #
lens for currentCanvas
isOneTimeSelectMode :: Simple Lens UnitHoodle IsOneTimeSelectMode Source #
lens for isOneTimeSelectMode
frameState :: Simple Lens UnitHoodle WindowConfig Source #
lens for frameState
rootWindow :: Simple Lens UnitHoodle Widget Source #
lens for rootWindow
unitHoodles :: Simple Lens HoodleState (Int, IntMap UnitHoodle) Source #
lens for unitHoodles
rootNotebook :: Simple Lens HoodleState Notebook Source #
lens for rootWindow
rootContainer :: Simple Lens UnitHoodle Box Source #
lens for rootContainer
rootOfRootWindow :: Simple Lens HoodleState Window Source #
lens for rootOfRootWindow
currentPenDraw :: Simple Lens HoodleState PenDraw Source #
lens for currentPenDraw
deviceList :: Simple Lens HoodleState DeviceList Source #
lens for deviceList
cursorInfo :: Simple Lens HoodleState (PenColor, Double, Bool) Source #
lens for cursorInfo
selectInfo :: Simple Lens HoodleState SelectInfo Source #
lens for selectInfo
gtkUIManager :: Simple Lens HoodleState UIManager Source #
lens for gtkUIManager
undoTable :: Simple Lens UnitHoodle (UndoTable HoodleModeState) Source #
lens for undoTable
backgroundStyle :: Simple Lens HoodleState BackgroundStyle Source #
background style = plain, lined, ruled, graph
isFullScreen :: Simple Lens HoodleState Bool Source #
lens for isFullScreen
lastTimeCanvasConfigure :: Simple Lens HoodleState (Maybe UTCTime) Source #
lens for lastTimeCanvasConfigure
tempQueue :: Simple Lens HoodleState (Queue (Either (ActionOrder AllEvent) AllEvent)) Source #
lens for tempQueue
doesUseXInput :: Simple Lens Settings Bool Source #
flag for XInput extension (needed for using full power of wacom)
doesEmbedPDF :: Simple Lens Settings Bool Source #
flag for embedding pdf background as base64 in hdl file
doesFollowLinks :: Simple Lens Settings Bool Source #
flag for embedding pdf background as base64 in hdl file
newPageMode :: Simple Lens Settings NewPageModeType Source #
new page mode: plain | last | cycle
penModeSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId RadioAction)) Source #
lens for penModeSignal
pageModeSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId RadioAction)) Source #
lens for pageModeSignal
penPointSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId RadioAction)) Source #
lens for penPointSignal
penColorSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId RadioAction)) Source #
lens for penColorSignal
newPageModeSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId RadioAction)) Source #
lens for newPageModeSignal
switchTabSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId Notebook)) Source #
lens for switchTabSignal
others
emptyHoodleState :: IO HoodleState Source #
default hoodle state
defaultSettings :: Settings Source #
default settings
additional lenses , getCanvasInfoMap
setCurrentCanvasId :: CanvasId -> UnitHoodle -> Maybe UnitHoodle Source #
resetHoodleModeStateBuffers :: CanvasId -> HoodleModeState -> Renderer () Source #
getCanvasInfo :: CanvasId -> UnitHoodle -> CanvasInfoBox Source #
setCanvasInfo :: (CanvasId, CanvasInfoBox) -> UnitHoodle -> UnitHoodle Source #
updateFromCanvasInfoAsCurrentCanvas :: CanvasInfoBox -> UnitHoodle -> UnitHoodle Source #
change current canvas. this is the master function
setCanvasId :: CanvasId -> CanvasInfoBox -> CanvasInfoBox Source #
modifyCanvasInfo :: CanvasId -> (CanvasInfoBox -> CanvasInfoBox) -> UnitHoodle -> UnitHoodle Source #
for debug , showCanvasInfoMapViewPortBBox , getTheUnit , putTheUnit
currentUnit :: Simple Lens (Int, IntMap UnitHoodle) UnitHoodle Source #
current unit