summaryrefslogtreecommitdiffstats
path: root/src/extension/prefdialog/widget.cpp
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-08-06 20:30:54 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-08-31 14:50:39 +0000
commit2bdffba8f4da0fe64d4a5b85096d057d389abef8 (patch)
tree24cad4825a1a74efca7d7607724b89fab87e2f4d /src/extension/prefdialog/widget.cpp
parentAccept parameter type "bool" (diff)
downloadinkscape-2bdffba8f4da0fe64d4a5b85096d057d389abef8.tar.gz
inkscape-2bdffba8f4da0fe64d4a5b85096d057d389abef8.zip
Make parameter string generation a job of Inkscape::Extension
For this take a first step towards properly tracking children of each parameter and provide functions to look up all widgets.
Diffstat (limited to 'src/extension/prefdialog/widget.cpp')
-rw-r--r--src/extension/prefdialog/widget.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/extension/prefdialog/widget.cpp b/src/extension/prefdialog/widget.cpp
index ae85b9fbd..05711b58a 100644
--- a/src/extension/prefdialog/widget.cpp
+++ b/src/extension/prefdialog/widget.cpp
@@ -132,6 +132,14 @@ const char *InxWidget::get_translation(const char* msgid) {
return _extension->get_translation(msgid, _context);
}
+void InxWidget::get_widgets(std::vector<const InxWidget *> &list) const
+{
+ list.push_back(this);
+ for (auto child : _children) {
+ child->get_widgets(list);
+ }
+}
+
} // namespace Extension
} // namespace Inkscape