[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] class AddresseeList
From:       Jost Schenck <jost.schenck () gmx ! de>
Date:       2002-09-05 21:48:19
[Download RAW message or body]

On Thursday 05 September 2002 23:10, Cornelius Schumacher wrote:
> On Thursday 05 September 2002 20:26, Jost Schenck wrote:
> > as I needed it for a print style I finally sat down and wrote a small
> > class KABC::AddresseeList which is attached. I would be very happy if
> > you'd consider to put it into the KABC library after the release or
> > in some unstable development branch.
>
> Looks nice. Where is it used?

Up to now only in my printing style (which isn't committed, but it's already 
usable). It could very well be used for solving a problem with the other 
existing printing styles: if you print "Selection" the printed entries are 
sorted just like the view is sorted, but if you print "All entries" the 
sorting is undefined. Right now there's no really satisfying way to sort a 
list of addressees (the way I see it) except for the sorting eg the QListView 
does.

> How does this class fit with the sorting stuff which is in KAddressBook?

If I didn't get this wrong, the only sorting done in KAddressBook is done in 
the views. However, applications or printing styles may need to sort lists of 
addressees by different criteria without using a list view for it or caring 
about the order the user had in his view. 

Using qHeapSort would only work for at most one criterion, if operators< and > 
were implemented; however, you might want to sort by family name, given name 
etc.

The usage of QValueList<AddresseeList> that exists right now can easily be 
replaced by AddresseeList. The sorting stuff in the views doesn't have to be 
changed as it works just as well; however, for new types of views, which do 
not have a widget implementing sorting (like QListView) it might come handy.

-Jost.
_______________________________________________
kde-pim mailing list
kde-pim@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic