Safe Haskell | None |
---|---|
Language | Haskell98 |
A generic graphical user interface.
- data GenGUI c
- newGenGUI :: CItem c => Maybe (GenGUIState c) -> Bool -> IO (GenGUI c)
- setStatus :: CItem c => GenGUI c -> String -> IO ()
- clearStatus :: CItem c => GenGUI c -> IO ()
- updateTextArea :: CItem c => GenGUI c -> [MarkupText] -> IO ()
- clearTextArea :: CItem c => GenGUI c -> IO ()
- genGUIMainMenu :: CItem c => GenGUI c -> Menu
- data NewItem c
- data Item c
- data Name = Name {}
- class Eq c => CItem c where
- root :: CItem c => GenGUI c -> IO (Item c)
- openedFolder :: CItem c => GenGUI c -> IO (Maybe (Item c))
- addItem :: CItem c => GenGUI c -> Item c -> NewItem c -> IO (Item c)
- children :: CItem c => Item c -> IO [Item c]
- content :: CItem c => Item c -> c
- data GenGUIEvent c
- = FocusTreeList (Maybe (Item c))
- | SelectTreeList (Maybe (Item c))
- | FocusNotepad (Item c, Bool)
- | Dropped (Item c, [Item c])
- | Doubleclick (Item c)
- | Rightclick [Item c]
- | Addition (Item c)
- | DroppedOnTextArea [Item c]
- bindGenGUIEv :: CItem c => GenGUI c -> IO (Event (GenGUIEvent c), IO ())
- type GenGUIState c = [NewItem c]
- exportGenGUIState :: CItem c => GenGUI c -> IO (GenGUIState c)
Documentation
The GenGUI
datatye.
CItem c => Eq (GenGUI c) Source # | Internal. |
CItem c => Destroyable (GenGUI c) Source # | A |
CItem c => Synchronized (GenGUI c) Source # | You can synchronize on a gengui object. |
CItem c => GUIObject (GenGUI c) Source # | Internal. |
CItem c => Window (GenGUI c) Source # | A |
:: CItem c | |
=> Maybe (GenGUIState c) | an optional GenGUI state to recover. |
-> Bool |
|
-> IO (GenGUI c) | A gui. |
Constructs a new gui and returns a handler.
updateTextArea :: CItem c => GenGUI c -> [MarkupText] -> IO () Source #
Displays the given markup text on the editor pane.
External representation of gengui objects.
internal object representation
openedFolder :: CItem c => GenGUI c -> IO (Maybe (Item c)) Source #
Gets the item that is currently open (displayed on notepad).
:: CItem c | |
=> GenGUI c | the concerned gui. |
-> Item c | the parent (folder) object. |
-> NewItem c | the external representation of the new object. |
-> IO (Item c) | the internal representation of the new object. |
Adds a gengui object.
data GenGUIEvent c Source #
The GenGUIEvent
datatype.
FocusTreeList (Maybe (Item c)) | |
SelectTreeList (Maybe (Item c)) | |
FocusNotepad (Item c, Bool) | |
Dropped (Item c, [Item c]) | |
Doubleclick (Item c) | |
Rightclick [Item c] | |
Addition (Item c) | |
DroppedOnTextArea [Item c] |
:: CItem c | |
=> GenGUI c | the concerned gui. |
-> IO (Event (GenGUIEvent c), IO ()) | A pair of (event, unbind action). |
Binds a listener for gengui events to the gengui and returns a corresponding event and an unbind action.
type GenGUIState c = [NewItem c] Source #
The gui's state.
:: CItem c | |
=> GenGUI c | the concerned GenGUI. |
-> IO (GenGUIState c) | the gui's state. |
Exports the gui's state.