| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
Verb::set_tip takes a borrowed string pointer. This line in Effect::check() is
invalid if getErrorReason() returns a temporary:
_verb.set_tip(Extension::getErrorReason().c_str());
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Instead of removing them from the menu, they're now shown as
inactive (greyed out), so users have a chance to know they even
exists, without having to know about extension-errors.log
Unfortunately tooltips seem to be hidden for insensitive menuitems
as well, so we currently have no way of informing the user directly
in the UI about the problem.
Fixes https://gitlab.com/inkscape/inkscape/issues/470
|
| |
|
|
|
|
|
|
| |
This improves the fix for
https://bugs.launchpad.net/inkscape/+bug/1307554
Also fixes a potential crashing issue when an .inx includes
invalid XML.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
|
| |
(std::ostream is not properly portable unfortunately)
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Will allow extensions to ship their own message catalog used for
translation of the extension#s strings.
Needs to be set on the root <inkscape-extension> element of the .inx
Currently supported values:
- unset: use default textdomain (which happens to be 'inkscape')
- 'inkscape': use Inkscape's message catalog
- 'none': disable translation for the extension's strings
|
| |
|
|
| |
We used to fail silently, crashing later-on.
|
| |
|
|
|
|
|
| |
Many fixes, improvements and simplifications to existing code.
Implements the first part of the changes discussed in
https://gitlab.com/inkscape/inkscape/issues/333
|
| | |
|
| |
|
|
| |
See also https://gitlab.com/inkscape/inkscape/merge_requests/698
|
| | |
|
| |
|
|
|
|
| |
- 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
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
This replaces all NULL or 0 with nullptr when assigned to or returned as
a pointer.
|
| |
|
| |
Found via `codespell`
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
that behaves more consistent and predictable than before.
- Every "Parameter" now has an "_indent" member variable (specifying the indentation level; set in "Parameter::make()", see parameter.cpp)
- Indentation is achieved by using "set_margin_left()" on the parameter's widget. This fixes bug #1662035 (comment #4 contains some more details about this patch).
- Specifying "indent" on a parameter will now work consistently for all parameters. Previously the "indent" attribute often had no effect at all, e.g. for notebooks but also for parameters with 'appearance="full"' which was reasonable in most cases but made the outcome of using this attribute often unpredictable and is unnecessarily restrictive.
- Most visible change: "description"s always used an indentation level of at least one (even if no indentation was specified). For the sake of consistency this discrepancy was dropped. Previous appearance can easily be restored by setting 'indent="1"'.
Fixed bugs:
- https://launchpad.net/bugs/1662035
(bzr r15508)
|
| |
|
| |
(bzr r15023.2.5)
|
| |
|
|
|
|
|
|
| |
message, localization context needed) by Yuri Chornoivan.
Fixed bugs:
- https://launchpad.net/bugs/1236382
(bzr r12673)
|
| |
|
|
|
|
|
|
|
|
| |
The functions changed to const:
* get_param_color
* get_param_enum
* get_param_optiongroup
* get_param_enum_contains
(bzr r12349)
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
From the patch's author:
Additional command line option added to export to different PDF-versions
supported by cairo (currently only "PDF 1.4" and "PDF 1.5"). The user must
provide the exact string found in the PDF-export dialog of Inkscape. This
feature was previously only accessible via the GUI of Inkscape. This option is
useful for people opting for PDF-a conformance in their PDFs. Moreover, the
Extension and Parameter classes are extended by setters for enum parameters
(used in combo boxes).
(bzr r12348)
|
| |
|
|
|
| |
forward declarations
(bzr r12203)
|
| |
|
| |
(bzr r12180)
|
| |
|
| |
(bzr r12119)
|
| |
|
| |
(bzr r11030)
|
| |
|
| |
(bzr r10961)
|
| |
|
|
|
|
| |
Fixed bugs:
- https://launchpad.net/bugs/893146
(bzr r10783)
|
| |
|
| |
(bzr r10665)
|
| |\
| |
| | |
(bzr r9508.1.89)
|
| | |
| |
| |
| |
| |
| |
| | |
opt-out of displaying the "working, please wait" dialog.
Extensions that are tipically slow can still have the dialog show up by simply not adding this attribute to the inx file.
(bzr r10240)
|
| |/
|
| |
(bzr r9508.1.82)
|
| |
|
| |
(bzr r9933)
|
| |
|
|
|
| |
"float", "enum" etc. wrappers.
(bzr r9201)
|
| |
|
| |
(bzr r9143)
|
| |
|
|
|
| |
which cannot be fixed easily.
(bzr r8422)
|
| |
|
| |
(bzr r8406)
|
| |
|
|
|
| |
version string on Linux.
(bzr r7123)
|
| |
|
| |
(bzr r6744)
|
| |
|
|
|
|
|
|
|
| |
Core of having a real namespace for Inkscape extensions.
r19077@shi: ted | 2008-04-21 15:50:12 -0700
First layer of adding NS
r19078@shi: ted | 2008-04-21 15:56:03 -0700
Whew, doing the rest of them.
(bzr r5483)
|