Code

inkscape.git
17 years agodue to the order of processing events, we must disable lmb handling in children conte...
buliabyak [Sun, 29 Jul 2007 19:18:19 +0000 (19:18 +0000)]
due to the order of processing events, we must disable lmb handling in children contexts so that parent event context can handle it for space panning

17 years agooptional panning by space
buliabyak [Sun, 29 Jul 2007 05:30:40 +0000 (05:30 +0000)]
optional panning by space

17 years agodifferentiate the SP_ITEM_REFERENCE_FLAGS, even though it is not currently used
buliabyak [Sun, 29 Jul 2007 05:30:04 +0000 (05:30 +0000)]
differentiate the SP_ITEM_REFERENCE_FLAGS, even though it is not currently used

17 years agonow this is the correct way to avoid nested updates, instead of the hack i recently...
buliabyak [Sun, 29 Jul 2007 05:27:33 +0000 (05:27 +0000)]
now this is the correct way to avoid nested updates, instead of the hack i recently removed from sptspan set method

17 years agoadd setter for first x/y pair
buliabyak [Sun, 29 Jul 2007 05:26:04 +0000 (05:26 +0000)]
add setter for first x/y pair

17 years agoFilter effects dialog:
nicholasbishop [Sun, 29 Jul 2007 05:09:02 +0000 (05:09 +0000)]
Filter effects dialog:

Removed debug cout

17 years agoFilter effects dialog:
nicholasbishop [Sun, 29 Jul 2007 04:48:08 +0000 (04:48 +0000)]
Filter effects dialog:

* feMergeNodes can be deleted by clicking the input without dragging.
* feMergeNodes can be added using a special empty input at the bottom of primitive.

17 years agoFilter effects dialog:
nicholasbishop [Sat, 28 Jul 2007 22:43:17 +0000 (22:43 +0000)]
Filter effects dialog:

* Added basic support for feMerge. Nodes can't be added or deleted yet, but the value of their "in" attributes can be edited using drag/drop as with other filters.

17 years agopass the geometric bbox flag when taking bbox for clipping; unfortunately this still...
buliabyak [Sat, 28 Jul 2007 21:03:56 +0000 (21:03 +0000)]
pass the geometric bbox flag when taking bbox for clipping; unfortunately this still does not fix the clip-by-clone crash, now it crashes in the show method instead of bbox...

17 years agoModification of the parameters/return value of SPDesktop::getToplevel
joelholdsworth [Sat, 28 Jul 2007 20:08:47 +0000 (20:08 +0000)]
Modification of the parameters/return value of SPDesktop::getToplevel

17 years ago1) Changes to snapping preferences dialog
dvlierop2 [Sat, 28 Jul 2007 15:47:49 +0000 (15:47 +0000)]
1) Changes to snapping preferences dialog
2) Strict snapping implemented, i.e. bbox only to bbox and nodes only to paths/nodes
3) Renaming of some constants to improve readability

17 years agoSet top-level groups as layers with the name of the PDF document
miklosh [Sat, 28 Jul 2007 14:31:25 +0000 (14:31 +0000)]
Set top-level groups as layers with the name of the PDF document

17 years agoReworked text state handling so that now SvgBuilder keeps track of the current text...
miklosh [Sat, 28 Jul 2007 13:49:57 +0000 (13:49 +0000)]
Reworked text state handling so that now SvgBuilder keeps track of the current text position

17 years agoGtkmm-ified the desktop window object, and modified the file dialogs so that they...
joelholdsworth [Sat, 28 Jul 2007 12:32:01 +0000 (12:32 +0000)]
Gtkmm-ified the desktop window object, and modified the file dialogs so that they are correctly parented

17 years agoFilter effects dialog:
nicholasbishop [Sat, 28 Jul 2007 08:51:54 +0000 (08:51 +0000)]
Filter effects dialog:

* Added settings for feDiffuseLighting.
* Added color buttons for feDiffuseLighting and feSpecularLighting.

17 years agoFilter effects dialog:
nicholasbishop [Sat, 28 Jul 2007 04:34:13 +0000 (04:34 +0000)]
Filter effects dialog:

* Changed lower limit of gaussian blur to 0.01, as the value 0 makes the result blank
* Corrected a couple of sp_document_done calls

17 years agofix off-by-one with line drawing
mental [Sat, 28 Jul 2007 03:03:40 +0000 (03:03 +0000)]
fix off-by-one with line drawing

17 years agonudge things over by a pixel to make them line up
mental [Sat, 28 Jul 2007 02:46:04 +0000 (02:46 +0000)]
nudge things over by a pixel to make them line up

17 years agoFilter effects dialog:
nicholasbishop [Sat, 28 Jul 2007 01:55:25 +0000 (01:55 +0000)]
Filter effects dialog:

* Limited the upper bounds of the feConvolveMatrix attributes targetX and targetY so that they match the value of Order.

17 years agoFilter effects dialog:
nicholasbishop [Sat, 28 Jul 2007 01:26:13 +0000 (01:26 +0000)]
Filter effects dialog:

* A couple corrections to the way the vertical inputs are displayed and handled.

17 years agoFilter effects dialog:
nicholasbishop [Sat, 28 Jul 2007 00:57:35 +0000 (00:57 +0000)]
Filter effects dialog:

* Added settings widgets for feConvolveMatrix's target attribute
* Changed the order attribute to show both spin widgets on the same row

17 years agoVarious small cleanups and optimizations to Paint Bucket tool.
johncoswell [Fri, 27 Jul 2007 23:29:21 +0000 (23:29 +0000)]
Various small cleanups and optimizations to Paint Bucket tool.

17 years agoFilter effects dialog:
nicholasbishop [Fri, 27 Jul 2007 22:09:16 +0000 (22:09 +0000)]
Filter effects dialog:

* Changed drawing of vertical input bars to make them stick to the right side of the treeview.

17 years agoFilter effects dialog:
nicholasbishop [Fri, 27 Jul 2007 21:49:35 +0000 (21:49 +0000)]
Filter effects dialog:

* For the Order attribute of feConvolveMatrix, show only the spin control, not the slider

17 years agoAdding a sample file demonstrating the use of tref to share/examples.
gbanaszk [Fri, 27 Jul 2007 15:58:56 +0000 (15:58 +0000)]
Adding a sample file demonstrating the use of tref to share/examples.

17 years agocosmetic improvement to standard filter input bar rendering
mental [Fri, 27 Jul 2007 07:39:39 +0000 (07:39 +0000)]
cosmetic improvement to standard filter input bar rendering

17 years agoFilter effects dialog:
nicholasbishop [Fri, 27 Jul 2007 05:44:24 +0000 (05:44 +0000)]
Filter effects dialog:

* Double-clicking a filter now applies it to the selection
* Updating filter settings widgets no longer updates the filter primitive

17 years agorefactoring: gathering some commonly copy'n'pasted functions on a common
jucablues [Fri, 27 Jul 2007 04:23:10 +0000 (04:23 +0000)]
refactoring: gathering some commonly copy'n'pasted functions on a common
header

17 years agoFilter effects dialog:
nicholasbishop [Fri, 27 Jul 2007 03:30:53 +0000 (03:30 +0000)]
Filter effects dialog:

First commit of improvements to the dialog discussed on the dev list. The dialog now tracks the selection and selects the appropriate filter, as well as displaying a small icon to indicate what filter(s) are applied to the selection.

17 years agopatch 1750206 by Bruno Dilly - bdilly
jucablues [Fri, 27 Jul 2007 03:18:38 +0000 (03:18 +0000)]
patch 1750206 by Bruno Dilly - bdilly
Remove "cout" from on_changed() of PrefCombo

17 years agoadded helper methods NumberOptNumber::numIsSet() and
jucablues [Fri, 27 Jul 2007 03:07:02 +0000 (03:07 +0000)]
added helper methods NumberOptNumber::numIsSet() and
NumberOptNumber::optNumIsSet()
using it for default attribute values in feTubulence and
feConvolvematrix

feDisplacementMap scale parameter variable is a double

17 years agoFix Bug 1653629 : we can know start inkscape without key file
jrreinhard [Thu, 26 Jul 2007 20:25:47 +0000 (20:25 +0000)]
Fix Bug 1653629 : we can know start inkscape without key file

17 years agoImproved svg input and output for lighting effects and lights
jrreinhard [Thu, 26 Jul 2007 19:05:15 +0000 (19:05 +0000)]
Improved svg input and output for lighting effects and lights

17 years agoAdded support for feMerge filter priitive
kiirala [Thu, 26 Jul 2007 11:38:36 +0000 (11:38 +0000)]
Added support for feMerge filter priitive

17 years agoSpinSlider:
nicholasbishop [Thu, 26 Jul 2007 09:08:25 +0000 (09:08 +0000)]
SpinSlider:

If the digits value is set to zero, truncate the value when setting the attribute so it is an int, rather than a double.

17 years agoAdded attr-widgets, missing from my last commit
nicholasbishop [Thu, 26 Jul 2007 08:27:43 +0000 (08:27 +0000)]
Added attr-widgets, missing from my last commit

17 years agoboiler plate code for feTurbulence:
jucablues [Thu, 26 Jul 2007 08:02:07 +0000 (08:02 +0000)]
boiler plate code for feTurbulence:
*reading attributes and setting default values

same for some more attributes on convolve matrix filter

alphabetical ordering on Makefile_insert and on nr-filter.cpp #includes

17 years agoFilter effects dialog:
nicholasbishop [Thu, 26 Jul 2007 07:06:41 +0000 (07:06 +0000)]
Filter effects dialog:

This is a large commit that greatly simplifies the creation and use of all the filter settings in the dialog.

* Added AttrWidget class to provide an interface for the settings widgets. Allows the widget to read and write to an attribute.
* Modified the ComboBoxEnum, SpinSlider, and ConvolveMatrix widgets to use AttrWidget, more to follow.
* Removed lots of specific filter settings code in favor of the more generic system.

17 years agoadd 3d tool
buliabyak [Thu, 26 Jul 2007 05:23:20 +0000 (05:23 +0000)]
add 3d tool

17 years agoinkscape.xml and default.xml must be the same
buliabyak [Thu, 26 Jul 2007 05:05:53 +0000 (05:05 +0000)]
inkscape.xml and default.xml must be the same

17 years agofeImage boilerplate code.
jucablues [Thu, 26 Jul 2007 03:08:18 +0000 (03:08 +0000)]
feImage boilerplate code.

17 years agoimproving displacement map renderer.
jucablues [Thu, 26 Jul 2007 02:00:51 +0000 (02:00 +0000)]
improving displacement map renderer.

17 years agoReworked text output to create <text> nodes on text matrix changes rather than on...
miklosh [Wed, 25 Jul 2007 17:04:19 +0000 (17:04 +0000)]
Reworked text output to create <text> nodes on text matrix changes rather than on every font update

17 years agoAdd 2 new object snapping modes: bbox to bbox, and nodes to bbox
dvlierop2 [Wed, 25 Jul 2007 12:19:44 +0000 (12:19 +0000)]
Add 2 new object snapping modes: bbox to bbox, and nodes to bbox

17 years agoAdd a method to create a rectangular curve
dvlierop2 [Wed, 25 Jul 2007 12:12:23 +0000 (12:12 +0000)]
Add a method to create a rectangular curve

17 years agoSnapping the transformation origin should also work for paths, not only for shapes
dvlierop2 [Wed, 25 Jul 2007 12:07:39 +0000 (12:07 +0000)]
Snapping the transformation origin should also work for paths, not only for shapes

17 years agoRetrieve preferences outside the for-loop, not inside.
dvlierop2 [Wed, 25 Jul 2007 12:01:37 +0000 (12:01 +0000)]
Retrieve preferences outside the for-loop, not inside.

17 years agoAdded example of lighting effects
kiirala [Wed, 25 Jul 2007 08:35:40 +0000 (08:35 +0000)]
Added example of lighting effects

17 years agoDisplacementMap filter boilerplate code + renderer draft implementation.
jucablues [Wed, 25 Jul 2007 07:12:49 +0000 (07:12 +0000)]
DisplacementMap filter boilerplate code + renderer draft implementation.
General setting of attributes and default values.

renderer method is still not correct. Needs some more effort.

17 years agoSmall polishing.
cmarqu [Tue, 24 Jul 2007 22:22:08 +0000 (22:22 +0000)]
Small polishing.

17 years agoModified CSS font style and text matrix setting to work with TrueType fonts
miklosh [Tue, 24 Jul 2007 18:21:51 +0000 (18:21 +0000)]
Modified CSS font style and text matrix setting to work with TrueType fonts

17 years agoSet the xml:space attribute on <svg> once rather than on every <text>
miklosh [Tue, 24 Jul 2007 17:12:04 +0000 (17:12 +0000)]
Set the xml:space attribute on <svg> once rather than on every <text>

17 years agoFixed rendering glitch in bicubic scaler
kiirala [Tue, 24 Jul 2007 12:48:54 +0000 (12:48 +0000)]
Fixed rendering glitch in bicubic scaler

17 years agoFixed a memory leak in lighting effects rendering
kiirala [Tue, 24 Jul 2007 12:47:31 +0000 (12:47 +0000)]
Fixed a memory leak in lighting effects rendering

17 years agofix makefile for case change of CXX dir
johanengelen [Tue, 24 Jul 2007 09:20:38 +0000 (09:20 +0000)]
fix makefile for case change of CXX dir

17 years agoFilter effects dialog:
nicholasbishop [Tue, 24 Jul 2007 04:27:01 +0000 (04:27 +0000)]
Filter effects dialog:

* Added filtereffects to the preferences-skeleton so that the dialog size is saved and restored.

17 years agoFilter effects dialog:
nicholasbishop [Mon, 23 Jul 2007 21:26:50 +0000 (21:26 +0000)]
Filter effects dialog:

* Fixed misnamed primitive input (BackgroundImage was incorrectly called BackgroundGraphic)
* Removed the filter primitive input comboboxes in favor of drag-and-drop. The standard inputs are shown as vertical text to the right.
* Various minor improvements to the drawing of filter connections

17 years agoPatch by Felipe Sanches: fixed transparent lines in feConvolveMatrix output
kiirala [Mon, 23 Jul 2007 19:09:12 +0000 (19:09 +0000)]
Patch by Felipe Sanches: fixed transparent lines in feConvolveMatrix output

17 years agoAdded tiling pattern support
miklosh [Mon, 23 Jul 2007 18:02:43 +0000 (18:02 +0000)]
Added tiling pattern support

17 years agoRemoved transform from <svg> and corrected matrix multiplication order in PdfParser...
miklosh [Mon, 23 Jul 2007 14:05:39 +0000 (14:05 +0000)]
Removed transform from <svg> and corrected matrix multiplication order in PdfParser::opConcat

17 years agoPatch by Jean-René Reinhard: better SVG compliance for lighting effects
kiirala [Mon, 23 Jul 2007 08:12:06 +0000 (08:12 +0000)]
Patch by Jean-René Reinhard: better SVG compliance for lighting effects

17 years agoremoving kerns also trims multi-value x attribute; allow it to work on tspans as...
buliabyak [Mon, 23 Jul 2007 06:31:01 +0000 (06:31 +0000)]
removing kerns also trims multi-value x attribute; allow it to work on tspans as well

17 years agoremove age-old optimization which fails to update display when undoing removing manua...
buliabyak [Mon, 23 Jul 2007 06:00:22 +0000 (06:00 +0000)]
remove age-old optimization which fails to update display when undoing removing manual kerns

17 years agoAdded some heuristics to set CSS font-style and font-weight from PDF font names when...
miklosh [Sun, 22 Jul 2007 20:07:18 +0000 (20:07 +0000)]
Added some heuristics to set CSS font-style and font-weight from PDF font names when these properties are not available from poppler

17 years agoFilter effects dialog:
nicholasbishop [Sun, 22 Jul 2007 19:46:00 +0000 (19:46 +0000)]
Filter effects dialog:

Created simple controls for feConvolveMatrix. Currently only handles attributes order and kernelMatrix.

17 years agotspan statusbar description
buliabyak [Sun, 22 Jul 2007 18:04:51 +0000 (18:04 +0000)]
tspan statusbar description

17 years agotspan statusbar description
buliabyak [Sun, 22 Jul 2007 18:03:54 +0000 (18:03 +0000)]
tspan statusbar description

17 years agoAdded xml:space=preserve attribute on <text> nodes and sodipodi:role=line attribute...
miklosh [Sun, 22 Jul 2007 12:28:23 +0000 (12:28 +0000)]
Added xml:space=preserve attribute on <text> nodes and sodipodi:role=line attribute on <tspan> nodes to ease text editing

17 years agoUse the #RRGGBB color format instead of rgb() since most extensions don't support...
miklosh [Sun, 22 Jul 2007 11:08:27 +0000 (11:08 +0000)]
Use the #RRGGBB color format instead of rgb() since most extensions don't support the latter

17 years agoFurther development of the PDF import module: continued pruning of PdfParser.cpp...
miklosh [Sat, 21 Jul 2007 17:59:49 +0000 (17:59 +0000)]
Further development of the PDF import module: continued pruning of PdfParser.cpp, added basic text and image support and did some coding style
adjustments.

17 years agoAdded a missing link in making the filterRes attribute work
kiirala [Sat, 21 Jul 2007 07:00:28 +0000 (07:00 +0000)]
Added a missing link in making the filterRes attribute work

17 years agoPatch from Felipe Sanches: support for feConvolveMatrix filter primitive
kiirala [Fri, 20 Jul 2007 20:19:00 +0000 (20:19 +0000)]
Patch from Felipe Sanches: support for feConvolveMatrix filter primitive

17 years agoPatch from Jean-René Reinhard: support for feDiffuseLighting and
kiirala [Fri, 20 Jul 2007 19:50:41 +0000 (19:50 +0000)]
Patch from Jean-René Reinhard: support for feDiffuseLighting and
feSpecularLighting filter primitives

17 years agoUpdated the gtkmmified fill and stroke dialog with the filter effects
gustav_b [Fri, 20 Jul 2007 19:28:05 +0000 (19:28 +0000)]
Updated the gtkmmified fill and stroke dialog with the filter effects
changes done in the current f&s dialog. I'll probably make the gtkmmified one
default pretty soon to avoid double work...

17 years agoCleaned up logic of sp_te_delete to adhere to UI/logic layering.
gbanaszk [Wed, 18 Jul 2007 18:33:13 +0000 (18:33 +0000)]
Cleaned up logic of sp_te_delete to adhere to UI/logic layering.

17 years agomake all-inkscape-files the default filter instead of all-images (do we need that...
buliabyak [Wed, 18 Jul 2007 16:33:53 +0000 (16:33 +0000)]
make all-inkscape-files the default filter instead of all-images (do we need that at all? MIME has some pretty strange notions of what is an image and what not)

17 years agoUse Inkscape's own code to write coordinates to svg (much nicer fix than commit ...
cilix42 [Wed, 18 Jul 2007 02:23:47 +0000 (02:23 +0000)]
Use Inkscape's own code to write coordinates to svg (much nicer fix than commit #15449)

17 years agoMake string conversion of box coordinates locale-independent (fixes bug with language...
cilix42 [Wed, 18 Jul 2007 00:23:49 +0000 (00:23 +0000)]
Make string conversion of box coordinates locale-independent (fixes bug with languages that use comma instead of decimal point)

17 years agoAnother newly 'discovered' translator.
cmarqu [Tue, 17 Jul 2007 22:35:38 +0000 (22:35 +0000)]
Another newly 'discovered' translator.

17 years agoFilter effects dialog:
nicholasbishop [Tue, 17 Jul 2007 19:14:51 +0000 (19:14 +0000)]
Filter effects dialog:

* Enable duplicating filters (from the popup menu)

17 years agoA few additions to ensure that editing trefs is not allowed (and doesn't cause a...
gbanaszk [Tue, 17 Jul 2007 17:39:06 +0000 (17:39 +0000)]
A few additions to ensure that editing trefs is not allowed (and doesn't cause a crash).  Also allows all trefs within a selection to be 'unlinked'.

17 years agoUnfuzzied
luca_bruno [Tue, 17 Jul 2007 13:12:40 +0000 (13:12 +0000)]
Unfuzzied

17 years agoFilter effects dialog:
nicholasbishop [Tue, 17 Jul 2007 07:22:28 +0000 (07:22 +0000)]
Filter effects dialog:

* Enables drag-and-drop reordering for filter primitives. Removes any connection conflicts caused by reordering.

17 years agoFilter effects dialog:
nicholasbishop [Tue, 17 Jul 2007 02:27:39 +0000 (02:27 +0000)]
Filter effects dialog:

* Prevent filter primitive connections to primitives that come after the selected primitive.

17 years agoAdd two newly 'discovered' translators, sorry guys.
cmarqu [Mon, 16 Jul 2007 22:42:16 +0000 (22:42 +0000)]
Add two newly 'discovered' translators, sorry guys.

17 years agoFilter effects dialog:
nicholasbishop [Mon, 16 Jul 2007 22:24:23 +0000 (22:24 +0000)]
Filter effects dialog:

* A coule bug fixes; attempting to connect the first filter primitive to another is no longer allowed, same for attempting to connect the input of a filter primitive to its own result. Still todo is preventing a connection to a later primitive.

17 years agofix compiler warning on ordering of init in uri-references.cpp
johanengelen [Mon, 16 Jul 2007 18:55:32 +0000 (18:55 +0000)]
fix compiler warning on ordering of init in uri-references.cpp

17 years agoadd text replace
buliabyak [Mon, 16 Jul 2007 18:42:05 +0000 (18:42 +0000)]
add text replace

17 years agoFilter effects dialog:
nicholasbishop [Mon, 16 Jul 2007 06:58:23 +0000 (06:58 +0000)]
Filter effects dialog:

* Made a lot of strings translatable
* Fixed the filter primitive input settings to work more like other ComboBoxEnums.

17 years agosimplify
buliabyak [Sun, 15 Jul 2007 15:00:23 +0000 (15:00 +0000)]
simplify

17 years agofix crash with empty parameter string
buliabyak [Sun, 15 Jul 2007 14:49:36 +0000 (14:49 +0000)]
fix crash with empty parameter string

17 years agoUpdate.
cmarqu [Sun, 15 Jul 2007 14:37:03 +0000 (14:37 +0000)]
Update.

17 years agoUpdate with strings from current sources.
cmarqu [Sun, 15 Jul 2007 13:39:27 +0000 (13:39 +0000)]
Update with strings from current sources.

17 years agoMake strings translatable.
cmarqu [Sun, 15 Jul 2007 13:36:03 +0000 (13:36 +0000)]
Make strings translatable.

17 years agoadded forgotten text_replace.inx, added updated translation into Russian
prokoudine [Sun, 15 Jul 2007 13:22:14 +0000 (13:22 +0000)]
added forgotten text_replace.inx, added updated translation into Russian

17 years agofix replace to work with non-ascii text
buliabyak [Sun, 15 Jul 2007 05:39:21 +0000 (05:39 +0000)]
fix replace to work with non-ascii text

17 years agotext replace
buliabyak [Sun, 15 Jul 2007 03:29:51 +0000 (03:29 +0000)]
text replace

17 years agoAdd poppler
ishmal [Sun, 15 Jul 2007 00:45:31 +0000 (00:45 +0000)]
Add poppler

17 years agoUse poppler
ishmal [Sun, 15 Jul 2007 00:44:39 +0000 (00:44 +0000)]
Use poppler

17 years agoFixed assertion failure with some unset parameters for feComposite & feOffset
kiirala [Sat, 14 Jul 2007 21:54:16 +0000 (21:54 +0000)]
Fixed assertion failure with some unset parameters for feComposite & feOffset