summaryrefslogtreecommitdiffstats
path: root/src/extension/parameter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/extension/parameter.h')
-rw-r--r--src/extension/parameter.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/extension/parameter.h b/src/extension/parameter.h
index 5ac1c9f5c..0c799a1c2 100644
--- a/src/extension/parameter.h
+++ b/src/extension/parameter.h
@@ -13,10 +13,21 @@
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
+
+/** \brief The root directory in the preferences database for extension-related parameters. */
+#define PREF_DIR "extensions"
+
#include <gtkmm/widget.h>
#include "xml/document.h"
+#include "xml/node.h"
+#include "document.h"
#include "extension-forward.h"
+#include "prefs-utils.h"
+
+#include <glibmm/i18n.h>
+
+#include "color.h"
namespace Inkscape {
namespace Extension {
@@ -76,11 +87,16 @@ public:
const Inkscape::XML::Node * node);
const gchar * get_string (const SPDocument * doc,
const Inkscape::XML::Node * node);
+ SPColor* get_color (const SPDocument * doc,
+ const Inkscape::XML::Node * node);
+ const gchar * get_enum (const SPDocument * doc,
+ const Inkscape::XML::Node * node);
bool set_bool (bool in, SPDocument * doc, Inkscape::XML::Node * node);
int set_int (int in, SPDocument * doc, Inkscape::XML::Node * node);
float set_float (float in, SPDocument * doc, Inkscape::XML::Node * node);
const gchar * set_string (const gchar * in, SPDocument * doc, Inkscape::XML::Node * node);
+ SPColor* set_color (SPColor* in, SPDocument * doc, Inkscape::XML::Node * node);
const gchar * name (void) {return _name;}
@@ -90,7 +106,6 @@ public:
gchar const * get_tooltip (void) { return _desc; }
};
-
} /* namespace Extension */
} /* namespace Inkscape */