leksah-0.15.2.0: Haskell IDE written in Haskell

Safe HaskellNone
LanguageHaskell2010

IDE.Utils.GUIUtils

Description

 

Synopsis

Documentation

chooseFile Source

Arguments

:: Window 
-> Text

Window title

-> Maybe FilePath

Start location

-> [(String, [String])]

File filters, e.g. [("Music Files", ["*.mp3", "*.wav"])]

-> IO (Maybe FilePath) 

Launch a "choose file" dialog

showDialog :: Text -> MessageType -> IO () Source

Show a text dialog with an Ok button and a specific messagetype

showErrorDialog :: Text -> IO () Source

Show an error dialog with an Ok button

showDialogOptions Source

Arguments

:: Text

the message

-> MessageType

type of dialog

-> [(Text, IO ())]

button text and corresponding actions

-> Maybe Int

index of button that has default focus (0-based)

-> IO () 

Show a dialog with custom buttons and callbacks

showInputDialog Source

Arguments

:: Text

The message text

-> Text

The default value

-> IO (Maybe Text) 

Show a simple dialog that asks the user for some text

setFullScreenState :: PaneMonad alpha => Bool -> alpha () Source

getDarkState :: PaneMonad alpha => alpha Bool Source

setDarkState :: PaneMonad alpha => Bool -> alpha () Source

setRunUnitTests :: PaneMonad alpha => Bool -> alpha () Source

setMakeModeToggled :: PaneMonad alpha => Bool -> alpha () Source

setDebugToggled :: PaneMonad alpha => Bool -> alpha () Source

treeViewToggleRow :: TreeViewClass self => self -> TreePath -> IO Bool Source

Toggles a row in a TreeView

treeViewContextMenu :: TreeViewClass treeView => treeView -> (Menu -> IO ()) -> IO (ConnectId treeView, ConnectId treeView) Source

treeViewContextMenu' Source

Arguments

:: TreeViewClass treeView 
=> treeView

The view

-> TreeStore a

The model

-> (a -> TreePath -> TreeStore a -> IDEM [[(Text, IDEAction)]])

Produces the menu items for the selected values when right clicking The lists are seperated by a seperator

-> IDEM (ConnectId treeView, ConnectId treeView) 

Sets the context menu for a treeView widget

__ :: Text -> Text Source

For i18n support. Not included in this build.