[Blobs] Customizing display of Node/Edge values

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Fri Nov 25 08:26:22 EST 2005

Einar Karttunen <ekarttun at cs.helsinki.fi> writes:

> I am thinking of extending the InfoKind to support types with
> a finite amount of values that should be edited from a
> dedicated dialog box rather than a text edit control 
> (for edge and node values).
> Does this make sense and what aproach do you think would
> be the most sensible for this kind of change?

The XTC (extended and typed controls) library might be useful here.
Some documentation is available at the Dazzle website:

If different information types should have different editing
interactions, one option is to add a new method to the InfoKind class,
indicating the appropriate interaction style.
e.g.  (based on the XTC styles)

    data InteractStyle
        = RadioView
        | SingleSelectionList
        | MulipleSelectionList
        | ChoiceView
        | ValueEntry

    class InfoKind a where
        interactStyle :: a -> InteractStyle

Incidentally, the version of XTC.hs currently distributed in Blobs
is older than the one on the Dazzle webpage, so it would be worth
updating that first.


More information about the Blobs mailing list