User interaction

Cage Tool UI

Even if it’s not in my todo-list for midterm evaluation, I did a good progress on the interface part. It’s now possible to setup a cage, add point, remove the last (backspace key), and close the cage.

The reason why I did that is because I was really stuck in the project, and I needed to code a part a bit less difficult. It allows me as well to approach the core of the algorithm without worrying of the Gegl part, which was especially unclear to me at this time.

The target is now to tackle the exact opposite of the chain, ie the Gegl operator. This part is in progress. I will be able to test this part by using the menu ‘Tools/Gegl Operation’, with some cage defined directly on the code. The link with the interface will come later.

If you want to test that, even if there is not much to see, you could fetch and compile my branch (git://git.gnome.org/gimp, branch soc-2010-cage).

I’ll probably do compiled version when there will be much to test.

Subtlety, however, I had to make a small change in GEGL, but not yet integrated into the official Git repository. You will have to apply the following patch to Gegl in order to compile my branch:

diff --git a/gegl/Makefile.am b/gegl/Makefile.am
index 155758f..69a1916 100644
--- a/gegl/Makefile.am
+++ b/gegl/Makefile.am
@@ -36,6 +36,7 @@ GEGL_public_HEADERS = \
gegl-plugin.h                      \
gegl-version.h                     \
buffer/gegl-buffer.h               \
+    buffer/gegl-buffer-iterator.h              \
property-types/gegl-paramspecs.h   \
property-types/gegl-color.h                \
property-types/gegl-path.h         \

3 Responses to “User interaction”

  • you are implementing the tool as a gegl operation? Ouch… Good luck with this- The tools in GIMP are complex enough without “gegl”ing them.

    It’s nice to see a gui – I know what you mean about taking a break and coding something else, and I also switch to working on the user interface of my works when I need a rest from the core coding.

    BTW, I like how my icon integrates there – I know see that it should indeed be changed to blue, but otherwise I believe it fits the other icons.

    Good Luck! =)

    • Michael:

      Since Gimp is moving to Gegl, it wouldn’t be a good idea to implement my tool the old way.

      And indeed, the Gegl part is a bit obscur, since there is no transform tool already moved to Gegl. Fun is coming =)

      For your icon, I tried to change the colors, but it seems your science of inskape is better than mine :-)

  • The father:

    Not a surprise that you did it ! Good luck for next stages….

    Imagine that you could only be on holidays and finally decided to code for some weeks…!

    If you need help, give a ring to these experts !

    Julien

    Have a nice time in Prague: the other guy is working !

    Signé: the father