On Sep 27, 2005, at 10:10 PM, MenTaLguY wrote:
On Tue, 2005-09-27 at 00:01 -0700, Ted Gould wrote:
On Mon, 2005-09-26 at 11:25 -0700, Bryce Harrington wrote: I've been playing with this for the preferences dialogs, and I don't think anything is needed beyond the abstraction that GTKmm already provides. The one think that I haven't figured out how to do yet is to make a column a SPImage. I don't think that will be too hard once I dig into it though.
You'd need to write a custom CellRenderer, which is not a Widget. Sort of a Widget-lite.
When you look at that, try to keep swatches in the back of your mind.
Inkscape::UI::Previewable is intended to be a generic, placeable preview. At the moment it's only wrapping the colors in the color swatches dialog. However, it should be usable for many things, including layers. The need to make a column an SPImage could be one place to use this interface.
So... that could mean the interface itself needs to be tuned. Or perhaps just that we create some generic wrappers.
The trick here is to come up with some nice modular APIs so that we can abstract certain behavior.
The base concept goes along with that involved in not having a view class derive from Gtk::Window itself.
And plays a bit in parallel with http://wiki.inkscape.org/cgi-bin/ wiki.pl?DialogReplacement