|
|
|
|
|
| Description |
| A generic graphical user interface. |
|
| Synopsis |
|
|
|
| Documentation |
|
| data GenGUI c |
| The GenGUI datatye. |
|
| newGenGUI |
| :: (CItem c) | | | => Maybe (GenGUIState c) | an optional GenGUI state to recover. | | -> Bool | True if lleaves should be
displayed in the tree list. | | -> IO (GenGUI c) | A gui. | | Constructs a new gui and returns a handler. |
|
|
| setStatus :: (CItem c) => GenGUI c -> String -> IO () |
| Sets the status label's text. |
|
| clearStatus :: (CItem c) => GenGUI c -> IO () |
| Clears the status label. |
|
| updateTextArea :: (CItem c) => GenGUI c -> [MarkupText] -> IO () |
| Displays the given markup text on the editor pane. |
|
| clearTextArea :: (CItem c) => GenGUI c -> IO () |
| Clears the editor pane. |
|
| genGUIMainMenu :: (CItem c) => GenGUI c -> Menu |
| Gets the gui's menu container. |
|
| data NewItem c |
| External representation of gengui objects. | | Constructors | | LeafItem c (Maybe (Position, Bool)) | | | FolderItem c [NewItem c] (Maybe (Bool, Bool)) | |
|
|
|
| data Item c |
| internal object representation |
|
| data Name |
| The Name datatype. | | Constructors | | Name | | | short :: (Int -> String) | | | full :: String | |
|
|
|
|
| class (Eq c) => CItem c where |
| Objects with a name and an icon. | | | Methods | | getName :: c -> IO Name | | Gets the object's name. | | | getIcon :: c -> IO Image | | Gets the object's icon. |
| | | Instances | |
|
|
| root :: (CItem c) => GenGUI c -> IO (Item c) |
| GenGUI's root object. |
|
| openedFolder :: (CItem c) => GenGUI c -> IO (Maybe (Item c)) |
| Gets the item that is currently open (displayed on notepad). |
|
| addItem |
| :: (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. |
|
|
| children :: (CItem c) => Item c -> IO [Item c] |
| Gets the children from a folder item. |
|
| content :: (CItem c) => Item c -> c |
| Returns the CItem content of an item. |
|
| data GenGUIEvent c |
|
|
| bindGenGUIEv |
| :: (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] |
| The gui's state. |
|
| exportGenGUIState |
|
|
| Produced by Haddock version 0.3 |