Code

inkscape.git
16 years agosimplify SPCurve::penultimate_point and return 2geom type
johanengelen [Mon, 30 Jun 2008 20:02:10 +0000 (20:02 +0000)]
simplify SPCurve::penultimate_point and return 2geom type

16 years agopencil tool: don't use sp_curve_length macro but good function ;)
johanengelen [Mon, 30 Jun 2008 19:42:01 +0000 (19:42 +0000)]
pencil tool: don't use sp_curve_length macro but good function ;)

16 years agoadd SPCurve::get_segment_count
johanengelen [Mon, 30 Jun 2008 19:41:29 +0000 (19:41 +0000)]
add SPCurve::get_segment_count

16 years agoTemporary "fix" for the recent pattern crash caused by invalid path data - please...
cilix42 [Mon, 30 Jun 2008 17:01:29 +0000 (17:01 +0000)]
Temporary "fix" for the recent pattern crash caused by invalid path data - please review and insert correct values for the missing coordinates!

16 years agoPrevent 'title', 'desc' and 'metadata' elements being moved to 'defs' when ungrouping...
sasilver [Mon, 30 Jun 2008 12:22:10 +0000 (12:22 +0000)]
Prevent 'title', 'desc' and 'metadata' elements being moved to 'defs' when ungrouping (fixes bug 243720).

16 years agoApproximately closed test for path parsing now looks at the absolute coordinate value...
jaspervdg [Mon, 30 Jun 2008 08:33:46 +0000 (08:33 +0000)]
Approximately closed test for path parsing now looks at the absolute coordinate values again (in accordance with how PathString used to work before and relative coordinates, and how it works now).

16 years agoInitial cut of sliders in toolbars
joncruz [Mon, 30 Jun 2008 07:40:18 +0000 (07:40 +0000)]
Initial cut of sliders in toolbars

16 years agoFixed i18n for overflow menu items.
joncruz [Mon, 30 Jun 2008 05:38:10 +0000 (05:38 +0000)]
Fixed i18n for overflow menu items.

16 years agofix the snapindicator stealing release event by grabbing the acetate on click, not...
buliabyak [Mon, 30 Jun 2008 04:56:49 +0000 (04:56 +0000)]
fix the snapindicator stealing release event by grabbing the acetate on click, not on motion

16 years agoeven with zero opacity, paths must be selectable in outline mode
buliabyak [Sun, 29 Jun 2008 17:21:58 +0000 (17:21 +0000)]
even with zero opacity, paths must be selectable in outline mode

16 years agoreturn results from 2geom path instead of old path
johanengelen [Sun, 29 Jun 2008 13:56:28 +0000 (13:56 +0000)]
return results from 2geom path instead of old path

16 years agoremove unused function first_bpath
johanengelen [Sun, 29 Jun 2008 13:50:12 +0000 (13:50 +0000)]
remove unused function first_bpath

16 years agopen tool: use SPCurve::last_segment in favor of last_bpath
johanengelen [Sun, 29 Jun 2008 13:40:21 +0000 (13:40 +0000)]
pen tool: use SPCurve::last_segment in favor of last_bpath

16 years agoadd SPCurve::first_segment and last_segment
johanengelen [Sun, 29 Jun 2008 13:29:23 +0000 (13:29 +0000)]
add SPCurve::first_segment and last_segment

16 years agoreplace some spcurve->last_bpath calls with spcurve->is_empty
johanengelen [Sun, 29 Jun 2008 13:15:53 +0000 (13:15 +0000)]
replace some spcurve->last_bpath calls with spcurve->is_empty

16 years agorecognize HLineSegment and VLineSegment while looping through curves
johanengelen [Sun, 29 Jun 2008 12:37:25 +0000 (12:37 +0000)]
recognize HLineSegment and VLineSegment while looping through curves

16 years agorecognize HLineSegment and VLineSegment in feeding paths to cairo
johanengelen [Sun, 29 Jun 2008 11:41:26 +0000 (11:41 +0000)]
recognize HLineSegment and VLineSegment in feeding paths to cairo

16 years agoadd commented HLineSegment and VLineSegment to svg writer
johanengelen [Sun, 29 Jun 2008 11:31:37 +0000 (11:31 +0000)]
add commented HLineSegment and VLineSegment to svg writer

16 years agowarning cleanup
JucaBlues [Sat, 28 Jun 2008 20:13:29 +0000 (20:13 +0000)]
warning cleanup

16 years agoremove unused function
buliabyak [Sat, 28 Jun 2008 03:08:35 +0000 (03:08 +0000)]
remove unused function

16 years agoUse Python script instead of shell script for .fig import (fixes bug 240889).
sasilver [Fri, 27 Jun 2008 20:43:58 +0000 (20:43 +0000)]
Use Python script instead of shell script for .fig import (fixes bug 240889).

16 years agosodipodi:docname is obsolete
mental [Fri, 27 Jun 2008 12:59:03 +0000 (12:59 +0000)]
sodipodi:docname is obsolete

16 years agoAdded conditional fallback for call in GLib 2.14+
joncruz [Fri, 27 Jun 2008 08:23:07 +0000 (08:23 +0000)]
Added conditional fallback for call in GLib 2.14+

16 years agouse spcurve methods instead of macro (which references to old nartbpath) to determine...
johanengelen [Thu, 26 Jun 2008 23:26:08 +0000 (23:26 +0000)]
use spcurve methods instead of macro (which references to old nartbpath) to determine first and second nodal points

16 years agonoop: be more consistent with function names (get_pathvector => set_pathvector)
johanengelen [Thu, 26 Jun 2008 23:16:23 +0000 (23:16 +0000)]
noop: be more consistent with function names (get_pathvector => set_pathvector)

16 years agouse 2geom path for bbox calculation. (gets rid of yet another reference to old nartbp...
johanengelen [Thu, 26 Jun 2008 23:09:58 +0000 (23:09 +0000)]
use 2geom path for bbox calculation. (gets rid of yet another reference to old nartbpath in spcurve!)

16 years agodon't use splivarot to get livarot path, use livarot's LoadPathVector method instead
johanengelen [Thu, 26 Jun 2008 22:57:43 +0000 (22:57 +0000)]
don't use splivarot to get livarot path, use livarot's LoadPathVector method instead

16 years agouse CairoRenderContext::renderPathVector
johanengelen [Thu, 26 Jun 2008 15:37:26 +0000 (15:37 +0000)]
use CairoRenderContext::renderPathVector

16 years agoadd CairoRenderContext::renderPathVector
johanengelen [Thu, 26 Jun 2008 15:32:30 +0000 (15:32 +0000)]
add CairoRenderContext::renderPathVector

16 years agodon't use splivarot to get livarot path, just use LoadPathVector method
johanengelen [Thu, 26 Jun 2008 15:17:50 +0000 (15:17 +0000)]
don't use splivarot to get livarot path, just use LoadPathVector method

16 years agouse all 2geom typed pathv_matrix_point_bbox_wind_distance
johanengelen [Thu, 26 Jun 2008 15:09:23 +0000 (15:09 +0000)]
use all 2geom typed pathv_matrix_point_bbox_wind_distance

16 years agoadd const to pointers that are not written to
johanengelen [Thu, 26 Jun 2008 15:06:10 +0000 (15:06 +0000)]
add const to pointers that are not written to

16 years agouse all 2geom typed pathv_matrix_point_bbox_wind_distance
johanengelen [Thu, 26 Jun 2008 15:03:47 +0000 (15:03 +0000)]
use all 2geom typed pathv_matrix_point_bbox_wind_distance

16 years agoadd const to references that are not written to
johanengelen [Thu, 26 Jun 2008 15:02:43 +0000 (15:02 +0000)]
add const to references that are not written to

16 years agouse pathv_matrix_point_bbox_wind_distance instead of nr_path_matrix_point_bbox_wind_d...
johanengelen [Thu, 26 Jun 2008 14:56:51 +0000 (14:56 +0000)]
use pathv_matrix_point_bbox_wind_distance instead of nr_path_matrix_point_bbox_wind_distance everywhere

16 years agorewrite nr_path_matrix_point_bbox_wind_distance in 2geom terms: pathv_matrix_point_bb...
johanengelen [Thu, 26 Jun 2008 14:52:09 +0000 (14:52 +0000)]
rewrite nr_path_matrix_point_bbox_wind_distance in 2geom terms: pathv_matrix_point_bbox_wind_distance. (still not 100% clear to me what this method does, but seemed not necessary for rewriting)

16 years agoFix for opening .eps/.ps/.cdr/etc files with % in their names.
sasilver [Thu, 26 Jun 2008 10:47:08 +0000 (10:47 +0000)]
Fix for opening .eps/.ps/.cdr/etc files with % in their names.

16 years agoDo not have menu entry for SVG Fonts if they are not enabled
joncruz [Thu, 26 Jun 2008 04:09:44 +0000 (04:09 +0000)]
Do not have menu entry for SVG Fonts if they are not enabled

16 years agomoving the fonts dialog to a more logical place (though it still does not work for me)
buliabyak [Thu, 26 Jun 2008 02:16:52 +0000 (02:16 +0000)]
moving the fonts dialog to a more logical place (though it still does not work for me)

16 years agoFixed compilation when the new SVG font stuff is not enabled.
joncruz [Thu, 26 Jun 2008 01:40:35 +0000 (01:40 +0000)]
Fixed compilation when the new SVG font stuff is not enabled.

16 years ago* remove g_warnings
JucaBlues [Thu, 26 Jun 2008 01:01:02 +0000 (01:01 +0000)]
* remove g_warnings
* add 2 experimental entry fields in SVGFonts dialog

16 years agofix bbox calculation for groups that contain groups with nothing in them (zero bbox...
johanengelen [Wed, 25 Jun 2008 21:40:04 +0000 (21:40 +0000)]
fix bbox calculation for groups that contain groups with nothing in them (zero bbox groups)

16 years agohelp detection of path read bug
johanengelen [Wed, 25 Jun 2008 19:50:01 +0000 (19:50 +0000)]
help detection of path read bug

16 years agoadding list of available SVGFonts to the SVGFonts dialog
JucaBlues [Wed, 25 Jun 2008 16:18:02 +0000 (16:18 +0000)]
adding list of available SVGFonts to the SVGFonts dialog

16 years agowarning cleanup
JucaBlues [Wed, 25 Jun 2008 03:02:27 +0000 (03:02 +0000)]
warning cleanup

16 years agomissing files from previous commit
JucaBlues [Wed, 25 Jun 2008 02:58:21 +0000 (02:58 +0000)]
missing files from previous commit

16 years agoadding a dialog for SVG Fonts
JucaBlues [Wed, 25 Jun 2008 02:53:34 +0000 (02:53 +0000)]
adding a dialog for SVG Fonts

16 years agoWarning cleanup
joncruz [Wed, 25 Jun 2008 02:14:41 +0000 (02:14 +0000)]
Warning cleanup

16 years agoadding ifdef HAVE_CONFIG_H
JucaBlues [Wed, 25 Jun 2008 00:23:00 +0000 (00:23 +0000)]
adding ifdef HAVE_CONFIG_H

16 years agowhitespace
buliabyak [Tue, 24 Jun 2008 21:37:50 +0000 (21:37 +0000)]
whitespace

16 years agoadded unicode block (codepoint ranges) lookups
ishmal [Tue, 24 Jun 2008 18:09:01 +0000 (18:09 +0000)]
added unicode block (codepoint ranges) lookups

16 years agoimprove speed of getting curves to cairo, the same way as boundingbox calculation...
johanengelen [Tue, 24 Jun 2008 17:54:19 +0000 (17:54 +0000)]
improve speed of getting curves to cairo, the same way as boundingbox calculation was optimized: do not create transformed path, transform the path's points instead

16 years agokill the green fish
buliabyak [Tue, 24 Jun 2008 16:24:02 +0000 (16:24 +0000)]
kill the green fish

16 years agoadd #include <string.h> for memset(), so that it is portable
ishmal [Tue, 24 Jun 2008 15:28:48 +0000 (15:28 +0000)]
add #include <string.h> for memset(), so that it is portable

16 years agoResolve ID clashes when pasting (fixes bug 165936).
sasilver [Tue, 24 Jun 2008 10:49:28 +0000 (10:49 +0000)]
Resolve ID clashes when pasting (fixes bug 165936).

16 years agoCmake: Add GSL to LIBS and Includes
verbalshadow [Tue, 24 Jun 2008 06:40:46 +0000 (06:40 +0000)]
Cmake: Add GSL to LIBS and Includes

16 years agoCmake: remove header files from source lists
verbalshadow [Tue, 24 Jun 2008 06:32:23 +0000 (06:32 +0000)]
Cmake: remove header files from source lists

16 years agodelivarotify, render with cairo; regression: cairo cannot do inverse
buliabyak [Tue, 24 Jun 2008 02:33:29 +0000 (02:33 +0000)]
delivarotify, render with cairo; regression: cairo cannot do inverse

16 years agodelivarotify, render with cairo, use nr_path functions for bbox and distance
buliabyak [Tue, 24 Jun 2008 02:32:23 +0000 (02:32 +0000)]
delivarotify, render with cairo, use nr_path functions for bbox and distance

16 years agodelivarotify, render with cairo
buliabyak [Tue, 24 Jun 2008 02:30:47 +0000 (02:30 +0000)]
delivarotify, render with cairo

16 years agoadd helpers for creating cairo_t for a canvas buf
buliabyak [Tue, 24 Jun 2008 02:28:57 +0000 (02:28 +0000)]
add helpers for creating cairo_t for a canvas buf

16 years agoupdate for 32 instead of 24 bpp canvas buf
buliabyak [Tue, 24 Jun 2008 02:26:17 +0000 (02:26 +0000)]
update for 32 instead of 24 bpp canvas buf

16 years agodelivarotify
buliabyak [Tue, 24 Jun 2008 02:23:44 +0000 (02:23 +0000)]
delivarotify

16 years agono more creating and looping over extra buffers for rendering canvas arena, draw...
buliabyak [Tue, 24 Jun 2008 02:23:03 +0000 (02:23 +0000)]
no more creating and looping over extra buffers for rendering canvas arena, draw to the canvas buf directly now that it's also 32bpp

16 years agoswitch to 32bpp canvasbuf, create cairo context for it, optionally output to screen...
buliabyak [Tue, 24 Jun 2008 02:18:57 +0000 (02:18 +0000)]
switch to 32bpp canvasbuf, create cairo context for it, optionally output to screen using cairo too (for now off, as it's slower than gdk)

16 years agoupdate for 32bpp canvas buf; delivarotify
buliabyak [Tue, 24 Jun 2008 02:15:31 +0000 (02:15 +0000)]
update for 32bpp canvas buf; delivarotify

16 years agouse light blue for text selection, at least until we can do inversion again
buliabyak [Tue, 24 Jun 2008 02:12:10 +0000 (02:12 +0000)]
use light blue for text selection, at least until we can do inversion again

16 years agospeed up bounds_exact for 2geom even more.
johanengelen [Mon, 23 Jun 2008 22:57:47 +0000 (22:57 +0000)]
speed up bounds_exact for 2geom even more.

16 years agouse exact bbox again in updating shapes
johanengelen [Mon, 23 Jun 2008 22:24:10 +0000 (22:24 +0000)]
use exact bbox again in updating shapes

16 years agoadd comment
johanengelen [Mon, 23 Jun 2008 22:20:59 +0000 (22:20 +0000)]
add comment

16 years agomake faster 2geom bbox calc.
johanengelen [Mon, 23 Jun 2008 22:17:42 +0000 (22:17 +0000)]
make faster 2geom bbox calc.

16 years agosorry to have broken build
johanengelen [Mon, 23 Jun 2008 21:51:35 +0000 (21:51 +0000)]
sorry to have broken build

16 years agoconvert optimizing check into 2geom terms. hopefully correct, please review if you...
johanengelen [Mon, 23 Jun 2008 21:06:21 +0000 (21:06 +0000)]
convert optimizing check into 2geom terms. hopefully correct, please review if you have time

16 years agoadd #include <string.h> for portability
ishmal [Mon, 23 Jun 2008 18:08:05 +0000 (18:08 +0000)]
add #include <string.h> for portability

16 years agoneed #include <typeinfo>
ishmal [Mon, 23 Jun 2008 16:54:27 +0000 (16:54 +0000)]
need #include <typeinfo>

16 years agotweak stdout/stderr piping
ishmal [Mon, 23 Jun 2008 16:51:13 +0000 (16:51 +0000)]
tweak stdout/stderr piping

16 years agoimplement kerning by glyph-name, g1 and g2 attributes
JucaBlues [Mon, 23 Jun 2008 02:47:44 +0000 (02:47 +0000)]
implement kerning by glyph-name, g1 and g2 attributes

16 years agowarning cleanup
JucaBlues [Sun, 22 Jun 2008 23:12:31 +0000 (23:12 +0000)]
warning cleanup

16 years agowarning cleanup
JucaBlues [Sun, 22 Jun 2008 22:57:26 +0000 (22:57 +0000)]
warning cleanup

16 years agoreintroducing code that initially committed in revision 18594 and the have been rever...
JucaBlues [Sun, 22 Jun 2008 22:48:08 +0000 (22:48 +0000)]
reintroducing code that initially committed in revision 18594 and the have been reverted on revision 18607.

* implemented handling of font-style, font-variant, font-weight, and
font-stretch attributes on font-face tags

This have been previously reverted because I thought they were already handled in node->style, but now I see that this code is needed for font description (used in the
font tag to declare font attributes to be stored in the user agent font database).

The node->style info is used for font specification (used by document authors with the purpose of declaring the properties of fonts that they would like in their SVG
documents).

16 years agoread PathVector instead of NArtBpath
johanengelen [Sun, 22 Jun 2008 22:28:03 +0000 (22:28 +0000)]
read PathVector instead of NArtBpath

16 years agoread PathVector instead of NArtBpath
johanengelen [Sun, 22 Jun 2008 22:23:00 +0000 (22:23 +0000)]
read PathVector instead of NArtBpath

16 years agosplit paths using 2geom PathVector
johanengelen [Sun, 22 Jun 2008 22:19:10 +0000 (22:19 +0000)]
split paths using 2geom PathVector

16 years agoLPE Spiro: don't catch all exceptions, only the ContinuityError
johanengelen [Sun, 22 Jun 2008 22:12:38 +0000 (22:12 +0000)]
LPE Spiro: don't catch all exceptions, only the ContinuityError

16 years agoremove obsolete LoadArtBPath from livarot
johanengelen [Sun, 22 Jun 2008 22:12:14 +0000 (22:12 +0000)]
remove obsolete LoadArtBPath from livarot

16 years agouse LoadPathVector instead of LoadArtBPath everywhere
johanengelen [Sun, 22 Jun 2008 22:03:10 +0000 (22:03 +0000)]
use LoadPathVector instead of LoadArtBPath everywhere

16 years agocreate method for Livarot paths to load PathVectors instead of NArtBpaths
johanengelen [Sun, 22 Jun 2008 21:56:33 +0000 (21:56 +0000)]
create method for Livarot paths to load PathVectors instead of NArtBpaths

16 years agouse pathvector directly from SPCurve in LPE path parameter.
johanengelen [Sun, 22 Jun 2008 17:32:08 +0000 (17:32 +0000)]
use pathvector directly from SPCurve in LPE path parameter.

16 years agobetter method to convert nartbpath to PathVector
johanengelen [Sun, 22 Jun 2008 17:28:29 +0000 (17:28 +0000)]
better method to convert nartbpath to PathVector

16 years ago * src/2geom/isnan.h, src/libcola/cola.cpp, src/style.cpp, src/seltrans.cpp,
mjwybrow [Sun, 22 Jun 2008 03:49:00 +0000 (03:49 +0000)]
  * src/2geom/isnan.h, src/libcola/cola.cpp, src/style.cpp, src/seltrans.cpp,
    src/libcola/gradient_projection.cpp, src/libvpsc/generate-constraints.cpp,
    src/libnr/nr-types.cpp, src/libnr/nr-point-fns-test.cpp, src/isnan.h,
    src/libnr/nr-point-fns.cpp, src/libnr/in-svg-plane-test.cpp,
    src/doxygen-main.cpp, src/display/nr-filter-composite.cpp,
    src/display/nr-filter-merge.cpp, src/display/nr-filter-gaussian.cpp,
    src/display/bezier-utils.cpp, src/Makefile_insert, src/eraser-context.cpp,
    src/dyna-draw-context.cpp, src/tweak-context.cpp, src/sp-namedview.cpp,
    src/libnr/in-svg-plane-test.h, src/libnr/nr-point-fns-test.h,
    src/mod360-test.h, src/CMakeLists.txt, src/2geom/linear.h:

    Properly fix the conflicting isnan.h problem:
      1) Update src/2geom/isnan.h to match newest Inkscape src/isnana.h
         (Also commited this change to lib2geom project repository)
      2) Remove Inkscape's src/isnan.h
      3) Update all files to include src/2geom/isnan.h instead of src/isnan.h

16 years agopatch 241565
buliabyak [Sun, 22 Jun 2008 02:20:08 +0000 (02:20 +0000)]
patch 241565

16 years agoadd todo comment to make code prettier
johanengelen [Fri, 20 Jun 2008 23:31:58 +0000 (23:31 +0000)]
add todo comment to make code prettier

16 years agosp_shape now uses 2geom PathVector for all marker positions
johanengelen [Fri, 20 Jun 2008 23:31:48 +0000 (23:31 +0000)]
sp_shape now uses 2geom PathVector for all marker positions

16 years agosp_shape_render for cairo-renderer extension now uses 2geom for marker positions
johanengelen [Fri, 20 Jun 2008 23:19:25 +0000 (23:19 +0000)]
sp_shape_render for cairo-renderer extension now uses 2geom for marker positions

16 years agoremove not used variable
johanengelen [Fri, 20 Jun 2008 22:31:29 +0000 (22:31 +0000)]
remove not used variable

16 years ago2geomify sp_shape_update_marker_view.
johanengelen [Fri, 20 Jun 2008 22:26:20 +0000 (22:26 +0000)]
2geomify sp_shape_update_marker_view.

16 years agopatch from 226459, approved by joel
buliabyak [Fri, 20 Jun 2008 16:38:39 +0000 (16:38 +0000)]
patch from 226459, approved by joel

16 years agoPartial fix (for preventing numerical issues) and restructuring for PathString, plus...
jaspervdg [Fri, 20 Jun 2008 11:11:50 +0000 (11:11 +0000)]
Partial fix (for preventing numerical issues) and restructuring for PathString, plus a small fix for the new 2geom sp_svg_write_curve.

16 years agoFix for sp-style-elem-test to make it work again with new code.
jaspervdg [Fri, 20 Jun 2008 11:09:25 +0000 (11:09 +0000)]
Fix for sp-style-elem-test to make it work again with new code.

16 years agocommenting out a g_warning
JucaBlues [Fri, 20 Jun 2008 04:50:33 +0000 (04:50 +0000)]
commenting out a g_warning