Re: [Inkscape-devel] Unit testing
by unknown@example.com
Quoting Josh Andler <scislac@...400...>:
> If it's already in use in 2geom and liked, I'd vote for it just
> because of that alone.
>
> Cheers,
> Josh
Yes, Google Test and Boost Test are close enough that the use by 2geom might be
a strong deciding factor.
To summarize some of the differences:
Google Test:
* does not use exceptions. Among other things this means that if a function is
called that might result in a test failing, the calling test will need to add
an extra line to check status afterwards.
* intended to be copied into the using project's source tree
* needs the additional 'Google Mock' library for certain things such as
comparing collections
Boost Test:
* uses exceptions to terminate tests
* use is with pre-built libs/source that are not copied in-tree (which is an
external dependency on that Boost library)
* does not have an academic/artificial distinction between 'Mock' objects and
general fakes/stubs
So as long as it looks good to switch to Google Test, I'd suggest copying in
Google Mock to our source, since it is a superset and contains a copy of the
full Google Test sources. We should keep the actual gmock use to a minimum
(even Google themselves warn against Mock overuse), but the collections support
alone is extremely useful.
9 years, 9 months
Re: [Inkscape-devel] Inkscape Website: Remaining webpage edits
by Jared Meidal
Here are some remaining edits I see on the staging website:
* Community
-Like the Develop parent page this need intro content to the Learn pages to welcome guest engagement
* About>>Overview
-I dropped some content here. I really needs reworking to form a cohesive voice. If we can formulate a vision for who the readers may be and what resources we want to highlight I think that would help.
* Learn
-Like the Develop parent page this need intro content to the Learn pages to welcome guest engagement
* Learn>>FAQ
-I cleaned up some HTML table code and added a few new items here, and need to query out here: do we want to keep the table of contents numbering system? There is a lot of legacy HTML tags associated with this content which was copied over. If this is an organization we want to maintain I can peek in further and try to keep things clean.
* Screenshots
- do we want this to be a gallery of entire-screen shots showing various work processes at various stages, or a highlight of latest features ordered by release versions (like the existing website), or focus on showcased types of media which can be created (such as the existing Showcase webpage http://inkscape.org/showcase/index.php?lang=en) ??
I've added a few notes in the blueprints of the pages to maintain a list of references content is being pulled from and for vision of the pages:
https://blueprints.launchpad.net/inkscape-web
Finally some of the "Banner Features" on the homepage require linking and content right? Such as the Features, Gallery and Learning Resources.
Sorry if this perhaps addresses too many areas at once.
--Jared
9 years, 9 months
Inkscape Website: Translation Instructions
by Martin Owens
Hey Devs and Users,
I've updated the wiki explaining the new Inkscape website's translation
instructions. New translations have accidentally overwritten the English
content in some places (especially the front page) so to avoid this I've
put together a brief explanation of why the front page is hard to edit.
http://wiki.inkscape.org/wiki/index.php/WebSite#Translations
Please do copy plugins into your local language instead of editing the
English versions. All editors are reminded that each language can have
different plugins for the same content-location if they wish.
Website: http://staging.inkscape.org
If you don't have an account and would like to help get content ready,
login and send me an email so I can enable staff privileges for you and
have you editing the CMS.
Happy Editing, Martin Owens
9 years, 9 months
removing overlapping lines
by Andrew Baxter
Hi,
I have an SVG file which I want to burn using a laser cutter, and I was
hoping to use inkscape to remove the overlapping line segments which are
causing a problem with the laser cutter. (Where two lines in different
shapes overlap, the line is cut once for each shape, leaving a heavier
line). See here for details of my project:
http://blog.highfellow.org/?p=37
There is already an inkscape plugin for removing double lines, but it's
not working for the complex shapes in this file. (Inkscape crashes). See
this forum post for the plugin:
http://www.inkscapeforum.com/viewtopic.php?f=5&t=9578 .
I was thinking of trying to fix or rewrite the plugin, but could do with
some help getting started. The plugin is implemented as a filter in
python, using this inx file:
<inkscape-extension>
<_name>Remove redundant edges</_name>
<id>org.novalis.filter.removeredundant</id>
<dependency type="executable"
location="extensions">removeredundant.py</dependency>
<dependency type="executable"
location="extensions">inkex.py</dependency>
<effect>
<object-type>path</object-type>
<effects-menu>
<submenu _name="Modify Path"/>
</effects-menu>
</effect>
<script>
<command reldir="extensions"
interpreter="python">removeredundant.py</command>
</script>
</inkscape-extension>
I was thinking it might work better to implement the plugin as a python
language binding extension, rather than as a filter, so that I can use
functions and methods from the native inkscape API.
One question is where I would start doing it this way; another specific
question is whether inkscape has a 'is point on line/curve', or 'nearest
point on line/curve' function built in? If so, this would save me a lot
of hassle trying to write one.
Thanks,
andrew baxter
9 years, 9 months
[CAD] Status
by Sebastian Götte
Hi,
This week I mainly squashed some bugs. The current code [0] still requires -std=c++11 in the CXXFLAGS.
Connector creation is working properly now, without stray points left over afterwards. Points can be selected in groups which can be transformed (scale, shear, rotate, translate etc.). Simple orthogonal routing and straight routing work. Libavoid routing works as far as there are no objects to be avoided (I did not yet test it with objects to be avoided). Multiple connectors can be connected to the same endpoint.
Remaining problems are:
* When moving a connector in selection mode ([F1]), sometimes a stray point appears somewhere inside the bounding box of the original connector (strange one!).
* Connector aborting does not work yet. I deactivated these 10 lines for now.
* There are some open UI questions:
- How to disconnect connectors?
- How to re-connect connectors to different endpoints?
- How to edit SPPoints as parts of groups? How to move them into groups?
- Probably some more which I forgot
* Libavoid routing is still untested.
* Sporadically, I manage to get the UI into some infinite recursion.
I am looking into these issues.
Best regards,
Sebastian
[0] https://code.launchpad.net/~h-e-6/inkscape/connector-wip
9 years, 9 months
[Templates] Report
by Jan Darowski
Hi!
Now all the static templates support is ready and working. I've been
working for some time now on understanding extensions. Soon first commits
for this part should appear.
Slagvi, Jan Darowski
9 years, 9 months
[CAD] Comments and SVG Connector proposal
by Tavmjong Bah
Sebastian,
Good to see you're making some progress squashing bugs.
I've played around a little bit with the code. Here are a few
observations:
1. Points (ports) need to be shown on the screen independent of whether
or not they are attached to connectors.
2. Creating a connector should use a pre-existing point (port) if the
cursor is near a point at the start or create a new point if it is not.
The same thing should happen for the end point.
3. A distinction needs to be made between dragging a freely movable
start/end point and moving a connector end from one port to another.
4. In your current code, drawing a simple connector creates a start
point and an end point at the beginning of creating a connector. At the
end, a new end point is created but doesn't seem to be actually used.
5. There needs to be one final redraw at the end of creating a
connector.
Since getting something out of Doug is like pulling teeth, I've put
together a page on what I envision SVG 2 connectors to look like.[1] The
key point (no pun intended) is that connection points can be defined
using percentage values related to the objects they are part of or to
the connector end points themselves. The one problem I have is how to
specify a connection point inside a <symbol>. I hope to discuss this at
the next SVG Working Group meeting. Your feedback (or anybody else's
feedback) is welcome.
Tav
[1] http://tavmjong.free.fr/SVG/CONNECTORS/index.xhtml
9 years, 9 months
crash revovry
by younes mesbah
Hi,
I've made a dialog box in GTK,i need to knew from wich file i can call my dialog box (inkscape's code files) with "dt->_dlg_mgr->showDialog("mydialog")".thinks.
9 years, 9 months