summaryrefslogtreecommitdiffstats
path: root/src/extension/CMakeLists.txt
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-08-12 20:49:30 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-08-31 14:50:39 +0000
commit10845e6925978cd9cf5bc9d0961802e06c9b3799 (patch)
treed9c6493e7198f1f8c6e94b010e7f03cb5401a893 /src/extension/CMakeLists.txt
parentAdjust <print> extensions for previous commit. (diff)
downloadinkscape-10845e6925978cd9cf5bc9d0961802e06c9b3799.tar.gz
inkscape-10845e6925978cd9cf5bc9d0961802e06c9b3799.zip
Add new parameter of type "path"
* 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.
Diffstat (limited to 'src/extension/CMakeLists.txt')
-rw-r--r--src/extension/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/extension/CMakeLists.txt b/src/extension/CMakeLists.txt
index be8ee38f1..5708c2ee0 100644
--- a/src/extension/CMakeLists.txt
+++ b/src/extension/CMakeLists.txt
@@ -60,6 +60,7 @@ set(extension_SRC
prefdialog/parameter-int.cpp
prefdialog/parameter-notebook.cpp
prefdialog/parameter-optiongroup.cpp
+ prefdialog/parameter-path.cpp
prefdialog/parameter-string.cpp
prefdialog/widget.cpp
prefdialog/widget-box.cpp
@@ -139,6 +140,7 @@ set(extension_SRC
prefdialog/parameter-int.h
prefdialog/parameter-notebook.h
prefdialog/parameter-optiongroup.h
+ prefdialog/parameter-path.h
prefdialog/parameter-string.h
prefdialog/widget.h
prefdialog/widget-box.h