summaryrefslogtreecommitdiffstats
path: root/src/extension/implementation (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: Switch .xslt file look-up to dependency logic as wellPatrick Storz2-21/+4
2019-10-14Extensions: Improve logic to lookup script extensionsPatrick Storz2-133/+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-08-31cleanup includes a bitPatrick Storz2-12/+19
2019-08-31Switch Inkscape::Extension to use InxWidgets instead of InxParametersPatrick Storz1-1/+1
2019-07-01Fix various minor typosYuri Chornoivan1-1/+1
2019-05-10Remove support for saving as JavaFX 1.x script (*.fx)Karl Cheng1-1/+12
JavaFX 1.x is long obsolete (since 2012-12-20) and the code for it has not been maintained. There have been no end user comments/reports since 2012 and a few bugs that would be important remain unfixed. Given that this is not an import format, the impact of removing this should be extremely low. Refs: https://www.oracle.com/technetwork/java/javafx/overview/faq-1446554.html#8 Refs: http://web.archive.org/web/20170316051832/http://blogs.oracle.com/javafx/entry/javafx_1_2_and_javafx Refs: https://stackoverflow.com/q/18865774/2074608
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 Bah2-2/+2
Makes searching through code for them easier.
2019-01-02modernize loopsMarc Jeanmougin2-6/+6
2018-11-08Clarify licensesMax Gaukler6-7/+13
- 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-11-07fix clipboard URL rebasingThomas Holder1-0/+5
2018-10-13Move some files to 'io' directory.Tavmjong Bah1-1/+1
2018-10-01Remove #include "config.h" wherever possibleEduard Braun2-7/+0
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 Peyrot4-8/+8
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 Peyrot2-4/+3
This replaces empty constructors and destructors with the default keyword.
2018-06-18Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot4-54/+54
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 Peyrot3-19/+19
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 Cenoz3-25/+12
2018-05-14Source typosluz.paz1-11/+11
2018-05-09Apply fixedJabier Arraiza3-104/+39
2018-05-09Reset old code to reaply fixedJabier Arraiza3-39/+107
2018-05-09fix compiling bugsJabier Arraiza1-1/+1
2018-05-09fix compiling bugsJabier Arraiza2-16/+19
2018-05-09fix https://gitlab.com/inkscape/inkscape/merge_requests/208#note_60694271Jabier Arraiza1-0/+11
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 Jeanmougin3-22/+22
This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
2018-04-29Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin3-22/+22
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 Braun2-5/+22
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 Facchini2-13/+12
2017-10-19Remove all unused makefile.inStefano Facchini1-17/+0
2017-07-02Move directory scanners to new get_filenames(...) callsMartin Owens2-38/+6
2017-02-07fix two memory leaksperegrine1-0/+3
Fixed bugs: - https://launchpad.net/bugs/1662686 - https://launchpad.net/bugs/1662683 (bzr r15493)
2016-08-08Remove deprecated Autotools and btool files. Please use CMake insteadAlex Valavanis1-9/+0
(bzr r15046)
2016-08-03Removed unused includes, decreased compilation time. Once againAdrian Boguszewski2-5/+2
(bzr r15034)
2016-07-28Reverted changes to r15024 after many building problemsAdrian Boguszewski2-2/+5
(bzr r15027)
2016-07-28extensions: Drop GTKMM2 fallbacksAlex Valavanis1-5/+1
(bzr r15023.2.5)