diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-08-06 20:30:54 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-08-31 14:50:39 +0000 |
| commit | 2bdffba8f4da0fe64d4a5b85096d057d389abef8 (patch) | |
| tree | 24cad4825a1a74efca7d7607724b89fab87e2f4d /src/extension/prefdialog/widget.cpp | |
| parent | Accept parameter type "bool" (diff) | |
| download | inkscape-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.cpp | 8 |
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 |
