leksah-0.10.0.4: Haskell IDE written in HaskellSource codeContentsIndex
IDE.Pane.SourceBuffer
Description
The source editor part of Leksah
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
allBuffers :: IDEM [IDEBuffer]
maybeActiveBuf :: IDEM (Maybe IDEBuffer)
selectSourceBuf :: FilePath -> IDEM (Maybe IDEBuffer)
goToSourceDefinition :: FilePath -> Maybe Location -> IDEAction
goToDefinition :: Descr -> IDEAction
insertInBuffer :: Descr -> IDEAction
fileNew :: IDEAction
fileOpenThis :: FilePath -> IDEAction
fileOpen :: IDEAction
fileRevert :: IDEAction
fileClose :: IDEM Bool
fileCloseAll :: (IDEBuffer -> IDEM Bool) -> IDEM Bool
fileCloseAllButPackage :: IDEAction
fileCloseAllButWorkspace :: IDEAction
fileSave :: Bool -> IDEM Bool
fileSaveAll :: (IDEBuffer -> IDEM Bool) -> IDEM Bool
fileSaveBuffer :: Bool -> Notebook -> EditorBuffer -> IDEBuffer -> Int -> IDEM Bool
fileCheckAll :: (IDEBuffer -> IDEM (Maybe alpha)) -> IDEM [alpha]
editUndo :: IDEAction
editRedo :: IDEAction
editCut :: IDEAction
editCopy :: IDEAction
editPaste :: IDEAction
editDelete :: IDEAction
editSelectAll :: IDEAction
editComment :: IDEAction
editUncomment :: IDEAction
editShiftRight :: IDEAction
editShiftLeft :: IDEAction
editToCandy :: IDEAction
editFromCandy :: IDEAction
editKeystrokeCandy :: Maybe Char -> IDEAction
editCandy :: ReaderT IDERef IO ()
markRefInSourceBuf :: Int -> IDEBuffer -> LogRef -> Bool -> IDEAction
inBufContext :: alpha -> IDEBuffer -> (Notebook -> EditorBuffer -> IDEBuffer -> Int -> IDEM alpha) -> IDEM alpha
inActiveBufContext :: alpha -> (Notebook -> EditorBuffer -> IDEBuffer -> Int -> IDEM alpha) -> IDEM alpha
align :: Char -> IDEAction
startComplete :: IDEAction
selectedText :: IDEM (Maybe String)
selectedTextOrCurrentLine :: IDEM (Maybe String)
insertTextAfterSelection :: String -> IDEAction
selectedModuleName :: IDEM (Maybe String)
selectedLocation :: IDEM (Maybe (Int, Int))
recentSourceBuffers :: IDEM [PaneName]
newTextBuffer :: PanePath -> String -> Maybe FilePath -> IDEM (Maybe IDEBuffer)
belongsToPackage :: IDEBuffer -> IDEM (Maybe IDEPackage)
belongsToWorkspace :: IDEBuffer -> ReaderT IDERef IO Bool
Documentation
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
allBuffers :: IDEM [IDEBuffer]Source
maybeActiveBuf :: IDEM (Maybe IDEBuffer)Source
selectSourceBuf :: FilePath -> IDEM (Maybe IDEBuffer)Source
goToSourceDefinition :: FilePath -> Maybe Location -> IDEActionSource
goToDefinition :: Descr -> IDEActionSource
insertInBuffer :: Descr -> IDEActionSource
fileNew :: IDEActionSource
fileOpenThis :: FilePath -> IDEActionSource
fileOpen :: IDEActionSource
fileRevert :: IDEActionSource
fileClose :: IDEM BoolSource
fileCloseAll :: (IDEBuffer -> IDEM Bool) -> IDEM BoolSource
fileCloseAllButPackage :: IDEActionSource
fileCloseAllButWorkspace :: IDEActionSource
fileSave :: Bool -> IDEM BoolSource
fileSaveAll :: (IDEBuffer -> IDEM Bool) -> IDEM BoolSource
fileSaveBuffer :: Bool -> Notebook -> EditorBuffer -> IDEBuffer -> Int -> IDEM BoolSource
fileCheckAll :: (IDEBuffer -> IDEM (Maybe alpha)) -> IDEM [alpha]Source
editUndo :: IDEActionSource
editRedo :: IDEActionSource
editCut :: IDEActionSource
editCopy :: IDEActionSource
editPaste :: IDEActionSource
editDelete :: IDEActionSource
editSelectAll :: IDEActionSource
editComment :: IDEActionSource
editUncomment :: IDEActionSource
editShiftRight :: IDEActionSource
editShiftLeft :: IDEActionSource
editToCandy :: IDEActionSource
editFromCandy :: IDEActionSource
editKeystrokeCandy :: Maybe Char -> IDEActionSource
editCandy :: ReaderT IDERef IO ()Source
markRefInSourceBuf :: Int -> IDEBuffer -> LogRef -> Bool -> IDEActionSource
inBufContext :: alpha -> IDEBuffer -> (Notebook -> EditorBuffer -> IDEBuffer -> Int -> IDEM alpha) -> IDEM alphaSource
inActiveBufContext :: alpha -> (Notebook -> EditorBuffer -> IDEBuffer -> Int -> IDEM alpha) -> IDEM alphaSource
align :: Char -> IDEActionSource
startComplete :: IDEActionSource
selectedText :: IDEM (Maybe String)Source
selectedTextOrCurrentLine :: IDEM (Maybe String)Source
insertTextAfterSelection :: String -> IDEActionSource
selectedModuleName :: IDEM (Maybe String)Source
selectedLocation :: IDEM (Maybe (Int, Int))Source
recentSourceBuffers :: IDEM [PaneName]Source
newTextBuffer :: PanePath -> String -> Maybe FilePath -> IDEM (Maybe IDEBuffer)Source
belongsToPackage :: IDEBuffer -> IDEM (Maybe IDEPackage)Source
Returns the package, to which this buffer belongs, if possible
belongsToWorkspace :: IDEBuffer -> ReaderT IDERef IO BoolSource
Produced by Haddock version 2.6.1