| Commit message (Collapse) | Author | Files | Lines |
|
A parameter with empty name (or name consisting of whitespace only)
can cause undefined behavior and should be avoided at all cost.
Empty translatable values like "gui-text"/"gui-description", while
not encouraged, might be acceptable. However they must not be
translated as gettext would return the full metadata of the .po file
in this case.
|
|
We use the user visible GUI text as value in this case, which may or
may not be translated.
For backwards-compatibility with enum items use the untranslated
value instead, if one of the deprecated tag-names is found.
Fixes https://gitlab.com/inkscape/inkscape/issues/399
|
|
* Similar to parameter's of type "string":
Has a text entry and stores a string preference
* Additionally offers a button to show a file chooser dialog
* The node's content is the initial (default) file path.
* Relative paths will be considered relative to the extension's .inx
file. This allows to reference files/folders shipped with the
extension in a portable way.
The stored value as well as the parameter value passed to the
script interpreter will always be absolute, though.
* The attribute "mode" controls what type(s) of paths the file
chooser allows to select. Valid values:
- 'file', 'files', 'folder', 'folder' (pick existing items)
- 'file_new', 'folder_new' (create a new file/folder)
* Note that manually entered values will be passed as-is without
checking for existence.
|
|
We were actually crashing for visible parameters without 'gui-text'
otherwise.
Also make sure we actually *do* bail out if we have parameters
missing required fields and throw/catch an exception instead of
producing broken instances.
|
|
|
|
|
|
|
|
For this take a first step towards properly tracking children
of each parameter and provide functions to look up all widgets.
|
|
Seems more consistent with "int" and "float" types and should likely
be preferred over the old "boolean"
|
|
Also rename overloaded string() functions, so it's clear what they
actually do, as it's not the same thing at all...
|
|
|
|
This improves consistency, as "description" parameter were not
actually parameters with a value that could be modified or saved.
The old syntax is deprecated but still supported for now.
|
|
|
|
|
|
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
|
|
|
|
|
|
Many fixes, improvements and simplifications to existing code.
Implements the first part of the changes discussed in
https://gitlab.com/inkscape/inkscape/issues/333
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- 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` and `grep`
|
|
This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
|
|
|
|
A lot of header clean-up.
|
|
http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/14978
http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/15047
(bzr r15638)
|
|
along the lines of r14955
- "gui-description" was always translated (as opposed to only "_gui-description")
- Added possibility to specify "msgctxt" for "_gui-description"
(bzr r15635)
|
|
http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/14955
http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/15047
Fixed bugs:
- https://launchpad.net/bugs/1669951
(bzr r15633)
|
|
(notably "gui_hidden" -> hidden", "guitext" -> "text", "desc" -> "description")
(bzr r15633.1.3)
|
|
(bzr r15633.1.2)
|
|
("gui_description" does now what "gui_tip" was supposed to do)
(bzr r15633.1.1)
|
|
It allows to create and add a clickable plain text link to extensions
The description parameter's text is escaped and converted to a URL as-is preventing potential security issues
The Scour extension shows a first example implementation
(bzr r15519)
|
|
do not store a value and therefore do not need to have a name)
(bzr r15515)
|
|
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)
|
|
Fixed bugs:
- https://launchpad.net/bugs/1589300
(bzr r14978)
|
|
- "gui-text" was always translated (as opposed to only "_gui-text")
- This made it impossible to have parameters without label (since the empty string returns the whole .po file header when translated), which caused an issue in restack extension
- Added possibility to specify "msgctxt" for "gui-text"
(bzr r14955)
|
|
(bzr r14546)
|
|
(bzr r13341.6.51)
|
|
(bzr r13341.6.28)
|
|
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)
|
|
(bzr r11030)
|
|
Fixed bugs:
- https://launchpad.net/bugs/893146
(bzr r10783)
|