From 2bdffba8f4da0fe64d4a5b85096d057d389abef8 Mon Sep 17 00:00:00 2001 From: Patrick Storz Date: Tue, 6 Aug 2019 22:30:54 +0200 Subject: 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. --- src/extension/prefdialog/widget.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/extension/prefdialog/widget.cpp') 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 &list) const +{ + list.push_back(this); + for (auto child : _children) { + child->get_widgets(list); + } +} + } // namespace Extension } // namespace Inkscape -- cgit v1.2.3