leksah-0.10.0.4: Haskell IDE written in HaskellSource codeContentsIndex
IDE.BufferMode
Contents
Buffer Basics
Buffer Modes
Description
Synopsis
data IDEBuffer = IDEBuffer {
fileName :: Maybe FilePath
bufferName :: String
addedIndex :: Int
sourceView :: EditorView
scrolledWindow :: ScrolledWindow
modTime :: IORef (Maybe ClockTime)
mode :: Mode
}
data BufferState
= BufferState FilePath Int
| BufferStateTrans String String Int
maybeActiveBuf :: IDEM (Maybe IDEBuffer)
lastActiveBufferPane :: IDEM (Maybe PaneName)
recentSourceBuffers :: IDEM [PaneName]
getStartAndEndLineOfSelection :: EditorBuffer -> IDEM (Int, Int)
inBufContext :: alpha -> IDEBuffer -> (Notebook -> EditorBuffer -> IDEBuffer -> Int -> IDEM alpha) -> IDEM alpha
inActiveBufContext :: alpha -> (Notebook -> EditorBuffer -> IDEBuffer -> Int -> IDEM alpha) -> IDEM alpha
doForSelectedLines :: [a] -> (EditorBuffer -> Int -> IDEM a) -> IDEM [a]
data Mode = Mode {
modeName :: String
modeEditComment :: IDEAction
modeEditUncomment :: IDEAction
modeSelectedModuleName :: IDEM (Maybe String)
modeEditToCandy :: IDEAction
modeEditFromCandy :: IDEAction
modeEditKeystrokeCandy :: Maybe Char -> IDEAction
}
modFromFileName :: Maybe FilePath -> Mode
withCurrentMode :: alpha -> (Mode -> IDEM alpha) -> IDEM alpha
editComment :: IDEAction
editUncomment :: IDEAction
selectedModuleName :: IDEM (Maybe String)
editToCandy :: IDEAction
editFromCandy :: IDEAction
editKeystrokeCandy :: Maybe Char -> IDEAction
Buffer Basics
data IDEBuffer Source
A text editor pane description
Constructors
IDEBuffer
fileName :: Maybe FilePath
bufferName :: String
addedIndex :: Int
sourceView :: EditorView
scrolledWindow :: ScrolledWindow
modTime :: IORef (Maybe ClockTime)
mode :: Mode
show/hide Instances
data BufferState Source
Constructors
BufferState FilePath Int
BufferStateTrans String String Int
show/hide Instances
maybeActiveBuf :: IDEM (Maybe IDEBuffer)Source
lastActiveBufferPane :: IDEM (Maybe PaneName)Source
recentSourceBuffers :: IDEM [PaneName]Source
getStartAndEndLineOfSelection :: EditorBuffer -> IDEM (Int, Int)Source
inBufContext :: alpha -> IDEBuffer -> (Notebook -> EditorBuffer -> IDEBuffer -> Int -> IDEM alpha) -> IDEM alphaSource
inActiveBufContext :: alpha -> (Notebook -> EditorBuffer -> IDEBuffer -> Int -> IDEM alpha) -> IDEM alphaSource
doForSelectedLines :: [a] -> (EditorBuffer -> Int -> IDEM a) -> IDEM [a]Source
Buffer Modes
data Mode Source
Constructors
Mode
modeName :: String
modeEditComment :: IDEAction
modeEditUncomment :: IDEAction
modeSelectedModuleName :: IDEM (Maybe String)
modeEditToCandy :: IDEAction
modeEditFromCandy :: IDEAction
modeEditKeystrokeCandy :: Maybe Char -> IDEAction
modFromFileName :: Maybe FilePath -> ModeSource
Assumes
withCurrentMode :: alpha -> (Mode -> IDEM alpha) -> IDEM alphaSource
editComment :: IDEActionSource
editUncomment :: IDEActionSource
selectedModuleName :: IDEM (Maybe String)Source
editToCandy :: IDEActionSource
editFromCandy :: IDEActionSource
editKeystrokeCandy :: Maybe Char -> IDEActionSource
Produced by Haddock version 2.6.1