Translated by google
-------------------------------------------------- --------------------
Hi.
I just upgraded to SpiroLive branch as directed by Sorin, with which I
agree. Containing historical remains above 11,864 revision behavior.
For a lack of knowledge on how to mine working with Bazaar, are not
available, this time, the various revisions between one version and
another.
I made a change to code that I would like, in the files
"pen-context.cpp", "pen-context.h", "draw-context.cpp" and
"widgets /
pencil-toolbar-cpp" is used function called
"sp_pen_context_set_polyline_mode" that is developed in the
pen-context.cpp file.
This function is used to change the mode (polyline, paraxial ...). I
have seen fit to extend its scope to also define whether we are in
"Spiro" or, in the future, whether we are in "BSpline".
To this I added a boolean property to the object "SPPenContext" called
"spiro" (pc-> spiro) and changed the name of the function in the three
previous files "sp_pen_context_set_polyline_mode" a
"sp_pen_context_set_mode".
On the use of the tool, I had to update the message status bar with the
string "SHIFT for cusp node" and see how they manage the translations.
Usage is simple, clicks create SYMM nodes with "SHIFT" are created but
are mode CUSP.
I ask you to try the code, especially continuing existing lines and / or
closing them.
Greetings.
----------------------------------------------------------------------
Hola.
Acabo de actualizar el branch de SpiroLive siguiendo las indicaciones de
Sorin, con las que estoy de acuerdo. Queda como histórico conteniendo el
anterior comportamiento la revisión 11864 .
Por una falta de conocimientos mios en la manera de trabajar con Bazaar,
no están disponibles, esta vez, las distintas revisiones entre una
versión y la otra.
He realizado un cambio en código que me gustaría comentar, en los
archivos "pen-context.cpp", "pen-context.h",
"draw-context.cpp" y
"widgets/pencil-toolbar-cpp" se utiliza una función llamada
"sp_pen_context_set_polyline_mode" que está desarrollada en el archivo
pen-context.cpp.
Esta función sirve para cambiar el modo (polilinea,paraxial...). He
creído conveniente ampliar su alcance para definir también si estamos en
modo "Spiro" o para, en el futuro, saber si estamos en modo "BSpline".
Para ello he añadido una propiedad booleana a el objeto "SPPenContext"
llamada "spiro" (pc->spiro) y he cambiado el nombre de la función en los
tres archivos anteriores de "sp_pen_context_set_polyline_mode" a
"sp_pen_context_set_mode".
En cuanto al uso de la herramienta, me falta actualizar los mensajes de
la barra de estado con el string "SHIFT for cusp node" y ver como se
gestionan las traducciones. El uso es simple, los clics crean nodos
SYMM, con la tecla "SHIFT" se crean pero son de modo CUSP.
Os pido que probéis el código, especialmente continuando líneas
existentes y/o cerrándolas.
Saludos.