Re: [gui-dev] Search columns

"Sam Berlin" <[email protected]> Thu, 16 Sep 2004 12:21:26 -0400
Newsgroups gmane.network.gnutella.limewire.gui.devel
Message-ID <[email protected]>
Hi M Vernier,

It would indeed be a valuable addition if the default visible columns for specific kinds of searches were different.  I don't know if this should extend to being the only visible columns -- perhaps the 'Any Type' search should remain having all of them available.

You're correct in that AudioSearchTableColumns, VideoSearchTableColumns, etc... would be a good way of doing it.  Keep in mind that almost all of this information is extensible (via dropping new XSD schemas in), so perhaps a better way to do it would be having an XMLSearchTableColumns that took an XSD schema and internally created only the columns for that schema, and then having multiple instances of that object with different schemas sent to the constructors.

I'm not certain if extending ResultPanelModel or ResultPanel is necessary.  What do you have in mind for these classes?

The only catch I can think of that you'll run into is the saving of the column widths/order/visibility between sessions.  You'll have to come up with a way to give a unique name to each different kind of search.

Having a more reasonable default order would be excellent.  The catch with that is that many results may come in that do not have the metadata completed, and thus the filename is the only resource left.  Perhaps the filename could be parsed for guessing at the metadata?  Or the Title column could contain the filename if there was no other metadata (or just the title) available?

We have planned this kind of change for a while, so it would be truly wonderful to see it added.

Thanks,
 Sam

---------- Original Message ----------------------------------
From: "M. Vernier" <[email protected]>
Reply-To: [email protected]
Date: Thu, 16 Sep 2004 15:53:58 +0200

>Hello,
>
>I would like to implement search columns specific to each type of 
>search so that Audio columns only appear for an Audio search and
>Video columns only appear for a Video search. Also, I would like to
>provide reasonable default values for the column order. 
>Eg. Title, Artist and Album would come first for an audio search
>because they are more pertinent for the end user.
>
>I have looked at the code and as I understand things, I would need 
>to:
>
>- extend ResultPanel: AudioResultPanel, VideoResultPanel...
>- extend either ResultPanelModel or BasicDataLineModel in order to
>benefit from specific SearchTableColumns: AudioSearchTableColumns,
>VideoSearchTableColumns...
>
>Am I right and would that make a valuable contribution?
>
>M. Vernier
>
>
>_______________________________________________
>gui-dev mailing list
>[email protected]
>http://www.limewire.org/mailman/listinfo/gui-dev
>
_______________________________________________
gui-dev mailing list
[email protected]
http://www.limewire.org/mailman/listinfo/gui-dev