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/parameter-notebook.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/extension/prefdialog/parameter-notebook.h') diff --git a/src/extension/prefdialog/parameter-notebook.h b/src/extension/prefdialog/parameter-notebook.h index 90d032af3..4f23940e5 100644 --- a/src/extension/prefdialog/parameter-notebook.h +++ b/src/extension/prefdialog/parameter-notebook.h @@ -45,23 +45,18 @@ private: */ class ParamNotebookPage : public InxParameter { friend class ParamNotebook; - private: - /** A table to store the parameters for this page. - * This only gets created if there are parameters on this page */ - std::vector parameters; public: ParamNotebookPage(Inkscape::XML::Node *xml, Inkscape::Extension::Extension *ext); ~ParamNotebookPage() override; Gtk::Widget *get_widget(SPDocument *doc, Inkscape::XML::Node *node, sigc::signal *changeSignal) override; - void build_param_string_list(std::list &list) const override; char *get_text() { return _text; }; InxParameter *get_param(const char *name) override; }; /* class ParamNotebookPage */ /** A table to store the pages with parameters for this notebook. * This only gets created if there are pages in this notebook */ - std::vector pages; + std::vector _pages; public: ParamNotebook(Inkscape::XML::Node *xml, Inkscape::Extension::Extension *ext); @@ -69,12 +64,6 @@ public: Gtk::Widget *get_widget(SPDocument *doc, Inkscape::XML::Node *node, sigc::signal *changeSignal) override; - /** - * A function to get the currentpage and the parameters in a string form. - * @return A string with the 'value' and all the parameters on all pages as command line arguments. - */ - void build_param_string_list(std::list &list) const override; - std::string value_to_string() const override; InxParameter *get_param (const char *name) override; -- cgit v1.2.3