GNOME Bugzilla – Bug 119085
Sheet widget
Last modified: 2014-12-08 04:01:45 UTC
A 2-D spreadsheet like widget is a frequent request; while widget that could reproduce the capabilities of Excel or Gnumeric is a huge undertaking and would involve a giant API, something simple might be feasible and useful. There are threads on the topic from: http://mail.gnome.org/archives/gtk-devel-list/2002-March/msg00284.html http://mail.gnome.org/archives/gtk-devel-list/2003-July/msg00075.html I think there are other older discussions as well. GtkSheet in the GtkExtra library would serve as a possible prototype for what capabilities would be needed, though an API that fit in better with GtkTreeView and possibly reused GtkCellRenderer / GtkEntry would likely make sense.
*** Bug 118961 has been marked as a duplicate of this bug. ***
I'm writting a GtkGrid widget because I need it for my project but also because I think it may be a useful starting point for this bug. I'm trying to reuse GtkTreeView architecture as much as I can and so far I'm using GtkTreeModel and GtkCellRenderer / GtkEntry. I also has a new cell renderer called GtkCellRendererSpin for Spin Buttons and I'm trying to have a GtkCellRendererCombo working. For more info and the code please see http://www.sicem.biz/personal/lgs/projects/gtkgrid/view_project
*** Bug 169180 has been marked as a duplicate of this bug. ***
*** Bug 325309 has been marked as a duplicate of this bug. ***
Is there any progress to get a sheet widget for GKT+? The only thing I heard in this direction is, that Gnumeric will outsource their widget (no official information, http://ubuntuforums.org/showthread.php?t=13617#7) but I haven't heard of that plan again. Would be really cool to have a proper sheet widget some day before GTK 3.0.
I'd like to see a Sheet/Grid widget included in gtk+ as well. I wrote my own widget (in python) which I called FieldGrid: - Only for characters - quite horrible implementation, uses rows of GtkLabels - API is nicer, should be considered The source can be found here, http://svn.async.com.br/cgi-bin/viewvc.cgi/stoqlib/trunk/stoqlib/gui/fieldgrid.py?view=markup Screenshot here: http://async.com.br/~jdahlin/misc/invoice-layout-editor.png
We (Medsphere) ended up writing our own GridView (sheet, whatever) in C# for our use. It uses CellRenderers for drawing, allows you to switch the orientation, and have arbitrary number of column/row headers. It's backed by TreeModel, but does not support any sorting. For reference, here's a screenshot: http://medsphere.org/projects/widgets/wiki/GridView And the code: http://medsphere.org/projects/widgets/browser/trunk/src/GridView.cs The code there is under the LGPL-2
seems pretty clear that this is not going to happen