IDE.BufferMode
Contents
Description
- data IDEBuffer = IDEBuffer {
- fileName :: Maybe FilePath
- bufferName :: String
- addedIndex :: Int
- sourceView :: EditorView
- scrolledWindow :: ScrolledWindow
- modTime :: IORef (Maybe ClockTime)
- mode :: Mode
- data BufferState
- 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 {}
- 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
A text editor pane description
Constructors
IDEBuffer | |
Fields
|
data BufferState Source
Constructors
BufferState FilePath Int | |
BufferStateTrans String String Int |
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
Constructors
Mode | |
Fields |
modFromFileName :: Maybe FilePath -> ModeSource
Assumes
withCurrentMode :: alpha -> (Mode -> IDEM alpha) -> IDEM alphaSource