From b04a887cc15b6cb4899a229705995d8e14d6020a Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Thu, 14 Sep 2006 22:14:19 +0000 Subject: Added notebook (tabs) support for Effects. Now you can specify a notebook parameter in the .inx file, and create pages. Will commit a new effect that uses this, so there will be an example. (bzr r1706) --- src/extension/parameter.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/extension/parameter.cpp') diff --git a/src/extension/parameter.cpp b/src/extension/parameter.cpp index a034022d9..a821a626d 100644 --- a/src/extension/parameter.cpp +++ b/src/extension/parameter.cpp @@ -3,10 +3,11 @@ */ /* - * Authors: + * Author: * Ted Gould * - * Copyright (C) 2005-2006 Authors + * Copyright (C) 2006 Johan Engelen + * Copyright (C) 2005-2006 Author * * Released under GNU GPL, read the file 'COPYING' for more information */ @@ -30,6 +31,7 @@ #include "sp-object.h" #include "parameter.h" +#include "paramnotebook.h" /** \brief The root directory in the preferences database for extension related parameters. */ @@ -239,6 +241,7 @@ public: Glib::ustring * string (void); }; /* class ParamEnum */ + /** \return None \brief This function creates a parameter that can be used later. This @@ -310,6 +313,8 @@ Parameter::make (Inkscape::XML::Node * in_repr, Inkscape::Extension::Extension * param = new ParamDescription(name, guitext, desc, scope, in_ext, in_repr); } else if (!strcmp(type, "enum")) { param = new ParamEnum(name, guitext, desc, scope, in_ext, in_repr); + } else if (!strcmp(type, "notebook")) { + param = new ParamNotebook(name, guitext, desc, scope, in_ext, in_repr); } /* Note: param could equal NULL */ -- cgit v1.2.3