summaryrefslogtreecommitdiffstats
path: root/src/extension/extension.h
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-08-07 00:28:50 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-08-31 14:50:39 +0000
commitc0317efc1e86f75ee72d6f65b978bfe634bd3b2c (patch)
treee4f82b94e7b47f62815f889e902a42de03102356 /src/extension/extension.h
parentInherit destructor and recursively delete all widgets (diff)
downloadinkscape-c0317efc1e86f75ee72d6f65b978bfe634bd3b2c.tar.gz
inkscape-c0317efc1e86f75ee72d6f65b978bfe634bd3b2c.zip
Re-implement get_param() locally using get_widgets()
Diffstat (limited to 'src/extension/extension.h')
-rw-r--r--src/extension/extension.h29
1 files changed, 11 insertions, 18 deletions
diff --git a/src/extension/extension.h b/src/extension/extension.h
index a5cbdf481..eb9a73316 100644
--- a/src/extension/extension.h
+++ b/src/extension/extension.h
@@ -174,27 +174,20 @@ private:
void make_param (Inkscape::XML::Node * paramrepr);
/**
- * This function looks through the linked list for a parameter
- * structure with the name of the passed in name.
+ * Looks up the parameter with the specified name.
*
- * This is an inline function that is used by all the get_param and
- * set_param functions to find a param_t in the linked list with
- * the passed in name.
+ * Searches the list of parameters attached to this extension,
+ * looking for a parameter with a matching name.
*
* This function can throw a 'param_not_exist' exception if the
* name is not found.
*
- * The first thing that this function checks is if the list is NULL.
- * It could be NULL because there are no parameters for this extension
- * or because all of them have been checked. If the list
- * is NULL then the 'param_not_exist' exception is thrown.
- *
- * @param name The name to search for.
- * @return Parameter structure with a name of 'name'.
+ * @param name Name of the parameter to search for.
+ * @return Parameter with matching name.
*/
- InxParameter *get_param(const gchar * name);
+ InxParameter *get_param(const gchar *name);
- InxParameter const *get_param(const gchar * name) const;
+ InxParameter const *get_param(const gchar *name) const;
public:
bool get_param_bool (const gchar *name,
@@ -261,15 +254,15 @@ public:
static void error_file_close ();
public:
- Gtk::Widget * autogui (SPDocument * doc, Inkscape::XML::Node *node, sigc::signal<void> * changeSignal = nullptr);
- void paramListString (std::list <std::string> & retlist);
+ Gtk::Widget *autogui (SPDocument *doc, Inkscape::XML::Node *node, sigc::signal<void> *changeSignal = nullptr);
+ void paramListString(std::list <std::string> &retlist);
void set_gui(bool s) { _gui = s; }
bool get_gui() { return _gui; }
/* Extension editor dialog stuff */
public:
- Gtk::VBox * get_info_widget();
- Gtk::VBox * get_params_widget();
+ Gtk::VBox *get_info_widget();
+ Gtk::VBox *get_params_widget();
protected:
inline static void add_val(Glib::ustring labelstr, Glib::ustring valuestr, Gtk::Grid * table, int * row);
};