Ross Burton: Hito Lives!
Hito is alive!
I admit that the contact preview needs some work, there is some tasty code
in Contacts I need to refactor.
So, what is happening here? The tree view is a HitoContactView,
which subclasses GtkTreeView. This displays the contents of a
HitoContactStore, a subclass of GtkListStore which holds
the EContacts from an EBookView. In between the store
and the view is a HitoContactFilterModel, which can filter both
on groups (currently the most useful implementation is
HitoCategoryGroup, which groups on the CATEGORY vCard
field) and text, which does decomposed matches against the contact's name.
The combo box is a HitoGroupCombo, which controls the group being
filtered. The entry is the only widget which isn't a subclass (yet), and
controls the text being filtered. The final bit of magic is
HitoGroupStore, which collects categories from contacts and
creates HitoCategoryGroups as required (this is used as the model
for the combo).
Now for the hard work of writing a usable preview widget, and the
nightmare of a decent contact editor...
NP: Live At the Union Chapel, Damien Rice
I admit that the contact preview needs some work, there is some tasty code
in Contacts I need to refactor.
So, what is happening here? The tree view is a HitoContactView,
which subclasses GtkTreeView. This displays the contents of a
HitoContactStore, a subclass of GtkListStore which holds
the EContacts from an EBookView. In between the store
and the view is a HitoContactFilterModel, which can filter both
on groups (currently the most useful implementation is
HitoCategoryGroup, which groups on the CATEGORY vCard
field) and text, which does decomposed matches against the contact's name.
The combo box is a HitoGroupCombo, which controls the group being
filtered. The entry is the only widget which isn't a subclass (yet), and
controls the text being filtered. The final bit of magic is
HitoGroupStore, which collects categories from contacts and
creates HitoCategoryGroups as required (this is used as the model
for the combo).
Now for the hard work of writing a usable preview widget, and the
nightmare of a decent contact editor...
NP: Live At the Union Chapel, Damien Rice
I've arrived all well, only that I made the same mistake as always - leaving
the house without writing down (or even looking up) the precise address where
to go. Luckily the information centre at the EDI airport had a web browser.
(And they didn't get scared away by repeated "This page contains insecure
media" warnings on debconf.org.)