Hi!

I'd like to post a video of a new swatches dialog[1]. It displays color swatches and patterns as preview tiles divided into palettes. The palettes
are read from .gpl and .svg files in stock directories. One category "Current document" is special, as it shows paint servers from currently opened document.
The dialog allows applying swatches to fill and stroke. It is also possible to create new swatches based on current object solid fill or stroke. New pattern can be created by invoking "object to pattern" command from add menu.

How do you like it?

I still have some issues to be implemented and I'd like to ask you some questions about it.

1) I would like to implement modifying existing patterns. My original idea was to create new dialog "swatch properties". Now I think using existing "object attributes" and "object properties" dialogs would be simpler and more versatile. After clicking a modify button a popup will appear [2]. Each option would show appropriate dialog.

The content of the property dialogs is based on current selection, and there is no option to display the properties of arbitrary objects. I have two possibilites:
* set selection to swatch element (having solidColor, gradient or pattern tag). Selection API allows it, but only visible objects are selected in inkscape so far.
* modify the property dialogs to enable editing arbitrary objects by adding a setObject(SPObject *) method.
Which of the options is favourable?

2) The dialog should enable removing swatches. I think placing, rather long, implementation of this feature in swatches dialog class might not be the best solution. Where else can I place the code?

3) Old swatches dialog supplies an "auto" palette. It consists of swatch objects from current document that have "obs:swatch" attribute defined. The new one displays all swatches from current document. Should I keep the the palette? 

Regards,
  Tomasz

[1] https://www.dropbox.com/s/80f9r6ct9w2fktx/swatches-dialog.mpeg
[2] https://www.dropbox.com/s/hn8cqvu64ke364b/modify_swatch.png