Hi!

Now it's time to write about week 5 of GSOC.

I've implemented pattern preview in fill and stroke dialog. It loads pattern files from inkscape stock directories, displays as tiles and allows selection. The screenshots [1,2] show the widget in action.

Regards,
  Tomasz

[1] https://www.dropbox.com/s/4c88d2qkb7s8yfq/pattern-selector.mpeg
[2] https://www.dropbox.com/s/kpbf9vqls5lxpf7/pattern_dialog_bg.png


On Mon, Jun 16, 2014 at 6:24 PM, Tomasz Boczkowski <penginsbacon@...360...400...> wrote:
Week 4:

This time I had to do a couple of tasks for my university, so the development has slowed down a little bit.

I managed to integrate the TileView widget with symbols dialog. Screencast [1] shows the dialog in action.

Another task I was involved in was creating a model for storing paints. This one should allow grouping
into categories, and manage such functions as reading the resource directory and reacting to the changes
in current document. I also considered the possibility for the model to store any kind of previewable elements,
including symbols. I had to do a few tries "from scratch", what took a lot of paper. The model will be ready tomorrow.

[1] https://www.dropbox.com/s/nn93i2cvdbnfk4y/symbols-dialog.mpeg


On Sat, Jun 14, 2014 at 1:06 PM, Tomasz Boczkowski <penginsbacon@...1857...00...> wrote:
> As you progress with converting existing dialogs to the TileView widget
> and adding new dialogs that use the widget, have a look at what
> behaviors should be common to all the dialogs. For example, I would
> think that users would want to control the size of the tile (as is done
> in the Symbols dialog).

I've noticed that symbols, patterns and swatches are very similar in the
way they can be stored, rendered and presented to the user. They are 
all fragments of SVG documents, usually stored in /shared directory.
When I finish implementing model for strong paints I'll see if it's usable
for symbols. It seems to me much of the code can be shared.

In addition to symbols dialog, size of the tile and fitting into tile will
be controlled in swatches dialog. TileView widget supports it. 
I have to choose what kind of UI to use for setting the size. Currently
the symbols dialog uses buttons at the bottom, while existing 
swatches dialog provides menu with options to control the look.
In addition to this, in my proposal [1] I sketched a dialog for TileView
configuration, but now I see it using it would mean a lot of clicking.


Tomasz