diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2006-09-14 22:14:19 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2006-09-14 22:14:19 +0000 |
| commit | b04a887cc15b6cb4899a229705995d8e14d6020a (patch) | |
| tree | 7ec33b56240f3829ecb85eeae0032d4b5b31d373 /src/extension/parameter.cpp | |
| parent | Adding GPL palatte file export from patches. (diff) | |
| download | inkscape-b04a887cc15b6cb4899a229705995d8e14d6020a.tar.gz inkscape-b04a887cc15b6cb4899a229705995d8e14d6020a.zip | |
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)
Diffstat (limited to 'src/extension/parameter.cpp')
| -rw-r--r-- | src/extension/parameter.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
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 <ted@gould.cx> * - * Copyright (C) 2005-2006 Authors + * Copyright (C) 2006 Johan Engelen <johan@shouraizou.nl> + * 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 */ |
