Re: Specialized TreeView.
- From: Bob Caryl <bob fis-cal com>
- To: Tristan Van Berkom <tristan van berkom gmail com>
- Cc: GTK app-devel <gtk-app-devel-list gnome org>
- Subject: Re: Specialized TreeView.
- Date: Wed, 05 Jan 2005 16:16:28 -0600
On Wed, 2005-01-05 at 16:16, Tristan Van Berkom wrote:
Hi all,
I would like to use a treeview (and mvc friends) to display a list
of musical content (album names, album covers, song names, artist
names etc), the lists may vary from 3 or 4 to 3000 or 4000 rows.
I think that the treeview solution is the right solution for this because
it will probably be the most efficient with system resources
(i.e. a GtkScrolledWindow with a 2000 member GtkVBox containing
images, labels and buttons just sounds insane to me).
I'm wondering if I can get a high enough level of versatility with the
treeview MVC thingamajig.
Here is a misc. example of the kind of feature I'll have to implement:
-----------------------------------------------------------------------------------------------
/----------------------------------------------\
| ### AC/DC: Thunderstruck 1/10 |
| ### (www.recordlabel.com) |
|----------------------------------------------|
| ### James Brown: Funky drummer 2/10 |
| ### (www.recordlabel.com) |
|----------------------------------------------|
| ### Beatles (the): Number 9 3/10 |
| ### (www.recordlabel.com) |
|----------------------------------------------|
| Featured albums ##### ##### ##### |
| from Beatles (the): ##### ##### ##### |
| ##### ##### ##### |
|----------------------------------------------|
| ### Herbie Hancock: Rock it 4/10 |
| ### (www.recordlabel.com) |
\----------------------------------------------/
Ok, lets pretend that your browser/mail client didn't evily garble up
my ascii with non-fixed fonts (like my gmail account/firefox does, grrrr),
The `#' groups are meant to represent a thumbnail of a album jacket
image.
The point is, I will inevidably need to display one row of a predefined
format:
[Pixbuf album cover, Text artist-song-label, Text Popularity]
And optionaly have the child expand in another format:
[Text: "Featured artist:", Pixbuf: album1, Pixbuf: album2, Pixbuf: album3....]
Cheers,
-Tristan
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Yes, GtkTreeView will definitely fill the bill.
See this URL for a really nice tutorial:
http://scentric.net/tutorial/treeview-tutorial.html
Ta!
Bob
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]