How OCAL search is implemented

Asked by Jakub T. Jankiewicz

I'm new to Inkscape and dind't read the source, How Open Clipart Search is implemented? Is it extension or writen as part of Inkscape Core? Do I need to recompile Inskcape if I want to change something in this function? Where can I found it?

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
su_v
Solved:
Last query:
Last reply:
Revision history for this message
Best su_v (suv-lp) said :
#1

Importing from Open Clipart is internal to Inkscape, coded in C++. For any changes to take effect, you need to recompile Inkscape.

Note: in the current development branch (heading towards 0.49), this dialog has been rewritten:
<https://bugs.launchpad.net/inkscape/+bug/734417>

You can view the source files via web interface to the bazaar repository, or checkout the source as described here:
<http://inkscape.org/bzr.php?lang=en>

The current source code for the dialog itself can be viewed via web interface here:
<http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/src/ui/dialog/ocaldialogs.h>
<http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/src/ui/dialog/ocaldialogs.cpp>
(Note: I don't know if these two files include everything ocal there is in Inkscape's code base (unlikely) - you would have to dig into that yourself.)

Current state in trunk: the new 'Import Clipart…' dialog works ok on Linux and AFAIK also on Windows, but not at all on OS X.
See also <https://bugs.launchpad.net/inkscape/+bug/943275> which tracks latest reported issues with the new version in trunk.

Revision history for this message
Jakub T. Jankiewicz (jcubic) said :
#2

Thanks ~suv, that solved my question.