GtkTreeView colspan, rowspan

View: Old framed views
4 Messages — Rating Filter:   Alert me  
Iago Toral Quiroga
GtkTreeView colspan, rowspan
Reply More
Rate this Message:
Reply to author
Print
Show in thread view
Show in list view (by date)
Permalink
Hi all,

is it possible to create complex layouts using a GtkTreeView widget? I
mean, being able to expand rows or columns as in GtkTable to achieve
layouts like this one:

-----------------------------------------
| aa | bbbbbbbbbbb| ccccc |             |
---------------------------    IMAGE    | row 1
| ddddddddddddddddddddddd |             |
-----------------------------------------
-----------------------------------------
| aa | bbbbbbbbbbb| ccccc |             |
---------------------------    IMAGE    | row 2
| ddddddddddddddddddddddd |             |
-----------------------------------------
... More rows with the same layout ...

Thanks in advance for any feedback,

Iago


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Stefan Kost
Re: GtkTreeView colspan, rowspan
Reply More
Rate this Message:
Reply to author
Print
Show in thread view
Show in list view (by date)
Permalink
Hi,

Quoting Iago Toral Quiroga <itoral@...>:

> Hi all,
>
> is it possible to create complex layouts using a GtkTreeView widget? I
> mean, being able to expand rows or columns as in GtkTable to achieve
> layouts like this one:
>
> -----------------------------------------
> | aa | bbbbbbbbbbb| ccccc |             |
> ---------------------------    IMAGE    | row 1
> | ddddddddddddddddddddddd |             |
> -----------------------------------------
> -----------------------------------------
> | aa | bbbbbbbbbbb| ccccc |             |
> ---------------------------    IMAGE    | row 2
> | ddddddddddddddddddddddd |             |
> -----------------------------------------
> ... More rows with the same layout ...
>
Unfortunately it is not, although I really miss it.

Stefan

> Thanks in advance for any feedback,
>
> Iago
>
>
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@...
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
David Nečas (Yeti)-2
Re: GtkTreeView colspan, rowspan
Reply More
Rate this Message:
Reply to author
Print
Show in thread view
Show in list view (by date)
Permalink
On Thu, Mar 29, 2007 at 11:32:53AM +0200, Iago Toral Quiroga wrote:

> is it possible to create complex layouts using a GtkTreeView widget? I
> mean, being able to expand rows or columns as in GtkTable to achieve
> layouts like this one:
>
> -----------------------------------------
> | aa | bbbbbbbbbbb| ccccc |             |
> ---------------------------    IMAGE    | row 1
> | ddddddddddddddddddddddd |             |
> -----------------------------------------
> -----------------------------------------
> | aa | bbbbbbbbbbb| ccccc |             |
> ---------------------------    IMAGE    | row 2
> | ddddddddddddddddddddddd |             |
> -----------------------------------------
> ... More rows with the same layout ...
>
> Thanks in advance for any feedback,

The nearest approximation is writing a custom cell renderer
that renders the whole aaa bbb ccc ddd thing as a single
cell.  Of course, it will be still a signle cell from the
GtkTreeView point of view, with consequences for selections,
etc.

Yeti

--
http://gwyddion.net/
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Gabriel Schulhof
Re: GtkTreeView colspan, rowspan
Reply More
Rate this Message:
Reply to author
Print
Show in thread view
Show in list view (by date)
Permalink
Hi!

On Thu, March 29, 2007 14:40, Stefan Kost wrote:
> Unfortunately it is not, although I really miss it.

What about implementing your own cell renderer? You could make a fancier
version of GtkCellRendererText that can handle multiple text strings
arranged in a grid. Of course, if what you really want is multiple
GtkCellRendererText objects arranged both vertically and horizontally,
then it really /is/ impossible with the current GtkTreeView.

OTOH, I think you might be able to make each of the multiple text strings
editable, because cell renderers can control where the popup GtkEntry
shows up.

Gabriel
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list