summaryrefslogtreecommitdiffstats
path: root/src/extension/implementation/script.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-10-19Extensions: Implement translationdomain functionalityPatrick Storz1-5/+8
Inkscape will read the "translationdomain" attribute from the <inkscape-extension> root element in the .inx file. It will then attempt to lookup a message catalog that matches this domain, register it with gettext, and use it for translations. Message catalogs may be located in either - the .inx file's location - the root of the "extensions" directory containing the .inx - the system location Inkscape's own catalog is loaded from To make this functionality available to script extensions, Inkscape will set the environment variables INKEX_GETTEXT_DOMAIN and INKEX_GETTEXT_DIRECTORY so extension scripts can then use something like bindtextdomain(INKEX_GETTEXT_DOMAIN, INKEX_GETTEXT_DIRECTORY) textdomain(INKEX_GETTEXT_DOMAIN) to enable the feature. See also https://gitlab.com/inkscape/inkscape/issues/333 https://gitlab.com/inkscape/extensions/issues/117
2019-10-14Extensions: Improve logic to lookup script extensionsPatrick Storz1-131/+14
- Use identical logic for looking up <dependency>s and <command>s. - Remove duplicate (but inconsistent and incomplete) logic from script.cpp that was used to search for the <command> again - Remove <check> element from .inx format It seems unused (at the very least by core extensions) and redundant to <dependency> checking - Deprecate the <command>-specific "reldir" attribute. Consistently use the functionally identical "location" attribute that was only used for <dependency>s before - Introduce the new relative location value location="inx", which looks up <dependencies> and <command>s relative to the .inx file's location.
2019-07-01Fix various minor typosYuri Chornoivan1-1/+1
2019-04-06More document.h cleanup.Tavmjong Bah1-1/+1
2019-03-29script.cpp: more cleanupPatrick Storz1-32/+19
2019-03-29script.cpp: Glib::spawn_async_with_pipes actually wants UTF-8Patrick Storz1-7/+0
2019-03-29Drop "RegistryTool" which is no longer in use.Patrick Storz1-1/+0
2019-02-26Extensions: Use wperl as default perl interpreter on WindowsPatrick Storz1-1/+2
This is the "GUI" version of the executable that does not have a console attached to itself and therefore doesn't flash a terminal whenever it's called by an extension. Functionality should be identical otherwise. Fixed issues: - https://gitlab.com/inkscape/inkscape/issues/66
2019-02-20Give more descriptive names to document file related variables and functions.Tavmjong Bah1-1/+1
Makes searching through code for them easier.
2019-01-02modernize loopsMarc Jeanmougin1-2/+2
2018-11-08Clarify licensesMax Gaukler1-1/+2
- add license headers to everything - convert a few files from public domain or LGPL2.1+ to GPL2+ - some archaeology to clarify which files are from which library
2018-10-13Move some files to 'io' directory.Tavmjong Bah1-1/+1
2018-10-01Use _WIN32 instead of WIN32Eduard Braun1-2/+2
The former is guaranteed to be set for any compiler targeting win32, the latter is implementation dependent (but works for gcc) See also http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system
2018-06-25Fix for bug 1777530 on masterJabier Arraiza1-12/+0
2018-06-19Run clang-tidy’s modernize-redundant-void-arg pass.Emmanuel Gil Peyrot1-2/+2
2018-06-18Run clang-tidy’s modernize-deprecated-headers pass.Emmanuel Gil Peyrot1-1/+1
This renames most C <*.h> includes into C++ <c*> includes.
2018-06-18Run clang-tidy’s modernize-use-equals-default pass.Emmanuel Gil Peyrot1-2/+1
This replaces empty constructors and destructors with the default keyword.
2018-06-18Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot1-29/+29
This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer.
2018-06-18Run clang-tidy’s modernize-use-override pass.Emmanuel Gil Peyrot1-1/+1
This adds the override specifier on all methods which override a virtual method, whether they were already virtual or missing this specifier.
2018-06-06Fixes to extension system and simplify the codeJabiertxo Arraiza Cenoz1-7/+11
2018-05-14Source typosluz.paz1-11/+11
2018-05-09Apply fixedJabier Arraiza1-99/+20
2018-05-09Reset old code to reaply fixedJabier Arraiza1-20/+102
2018-05-09Fix https://gitlab.com/inkscape/inkscape/merge_requests/208#note_60693688Jabier Arraiza1-19/+2
2018-05-09Start migrating 0.92 patch to masterJabier Arraiza1-101/+36
2018-05-04Revert "Fix include order with clang-tidy check llvm-include-order"Marc Jeanmougin1-14/+14
This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
2018-04-29Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin1-14/+14
2018-02-04Improve/fix error reporting when executing script extensionsEduard Braun1-9/+28
It could happen that we attempted to spawn "", see https://bugs.launchpad.net/inkscape/+bug/1747103 which obviously failed but did not explain why. While extensions still fail silently (UI-wise) if the interpreter can not be located a useful error message should now be output on console.
2018-01-30Move classes derived from SPObject to own directory.Tavmjong Bah1-1/+2
A lot of header clean-up.
2017-12-20Make script warnings transient for "Working..." dialogEduard Braun1-5/+13
This turned out to be a bit of a mess due to the interplay between the classes Script / ExecutionEnv / Effect / PrefDialog. (Basically they don't talk to each other much but all want to contribute to the GUI) Likely "Script" (and possibly "ExecutionEnv") should be refactored to let the other classes handle UI exclusively and throw errors where suitable.
2017-11-30Add a warning dialog for previous commitEduard Braun1-1/+5
2017-11-30Extensions: Don't crash on invalid effect extension outputEduard Braun1-3/+8
2017-11-07Misc. typosUnknown1-4/+4
Found using `codespell -q 3 -w --skip="*.svg,*.po,*.ts,./share/tutorials,./src/libavoid,./packaging/win32/languages,./man,./src/2geom" -I ../inkscape-whitelist.txt` whereby whitelist file contained: ``` dum iff glight substract te upto ```
2017-10-19Drop obsolete wrapper around Glib::file_open_tmpStefano Facchini1-11/+10
2017-07-02Move directory scanners to new get_filenames(...) callsMartin Owens1-19/+3
2017-02-07fix two memory leaksperegrine1-0/+3
Fixed bugs: - https://launchpad.net/bugs/1662686 - https://launchpad.net/bugs/1662683 (bzr r15493)
2016-07-28extensions: Drop GTKMM2 fallbacksAlex Valavanis1-5/+1
(bzr r15023.2.5)
2016-06-25Moved next functions, added namespace, renamed range functionsAdrian Boguszewski1-1/+1
(bzr r14954.1.10)
2016-06-03Fix guide placement when guides are generated by a template with ↵Tavmjong Bah1-24/+27
width/height/viewBox different from default SVG file. (bzr r14947)
2016-03-20[Bug #1558160] Move Script::file_listener methods to script.cpp source file.raphael02021-0/+38
Fixed bugs: - https://launchpad.net/bugs/1558160 (bzr r14727)
2016-03-18[Bug #1558177] Simplify if conditions in Script.cpp.raphael02021-5/+1
Fixed bugs: - https://launchpad.net/bugs/1558177 (bzr r14715)
2016-03-16[Bug #1558153] Typos and tabs instead of spaces in extension module.raphael02021-9/+9
Fixed bugs: - https://launchpad.net/bugs/1558153 (bzr r14713)
2016-02-09Allow python extensions to get the list of selected nodesMarc Jeanmougin1-3/+53
format : --selected-nodes=id:subpath:position cf https://bugs.launchpad.net/inkscape/+bug/171640 for a debug test extension Fixed bugs: - https://launchpad.net/bugs/171640 (bzr r14641)
2015-12-09Remove unused header file.Tavmjong Bah1-1/+0
(bzr r14522)
2015-12-07static code analysisKris De Gussem1-1/+1
(bzr r14510)
2015-05-08fixes a few of jenkins warningsMarc Jeanmougin1-6/+10
(bzr r14126)
2015-04-27Mainloop fix for possible data loss if closing before save has completed.Mark Harmer1-1/+4
Fixed bugs: - https://launchpad.net/bugs/967416 (bzr r14060)
2015-02-27corrected the casts (hopefully)Marc Jeanmougin1-1/+1
(bzr r13922.1.10)
2015-02-19Put a few std::vector<SPitem*>Marc Jeanmougin1-2/+2
(bzr r13922.1.5)
2015-02-17At first, I was thinking "I just have to go to the selection file, and ↵Marc Jeanmougin1-4/+3
change that GSList* with a std::list, then resolve the few problems" So, i tried that. And I will continue tomorrow, and the days after, on and on. (bzr r13922.1.1)