diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2011-03-25 15:09:55 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2011-03-25 15:09:55 +0000 |
| commit | 939f84facd2f8beb4f5a1601c09bf7b71f1274a0 (patch) | |
| tree | 45b38c9ce784ec1327204193b37ee0aab10d090c /src/extension/param/parameter.cpp | |
| parent | emf import. create dummy object CREATEDIBPATTERNBRUSHPT (Bug 382420) (diff) | |
| download | inkscape-939f84facd2f8beb4f5a1601c09bf7b71f1274a0.tar.gz inkscape-939f84facd2f8beb4f5a1601c09bf7b71f1274a0.zip | |
Extensions. Replacing the groupheader element with an appearance mode in the description element.
(bzr r10129)
Diffstat (limited to 'src/extension/param/parameter.cpp')
| -rw-r--r-- | src/extension/param/parameter.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/extension/param/parameter.cpp b/src/extension/param/parameter.cpp index d35fb3d3c..a9935cfe6 100644 --- a/src/extension/param/parameter.cpp +++ b/src/extension/param/parameter.cpp @@ -36,7 +36,6 @@ #include "bool.h" #include "color.h" #include "description.h" -#include "groupheader.h" #include "enum.h" #include "float.h" #include "int.h" @@ -143,9 +142,11 @@ Parameter::make (Inkscape::XML::Node * in_repr, Inkscape::Extension::Extension * ps->setMaxLength(atoi(max_length)); } } else if (!strcmp(type, "description")) { - param = new ParamDescription(name, guitext, desc, scope, gui_hidden, gui_tip, in_ext, in_repr); - } else if (!strcmp(type, "groupheader")) { - param = new ParamGroupHeader(name, guitext, desc, scope, gui_hidden, gui_tip, in_ext, in_repr); + if (appearance && !strcmp(appearance, "header")) { + param = new ParamDescription(name, guitext, desc, scope, gui_hidden, gui_tip, in_ext, in_repr, ParamDescription::HEADER); + } else { + param = new ParamDescription(name, guitext, desc, scope, gui_hidden, gui_tip, in_ext, in_repr, ParamDescription::DESC); + } } else if (!strcmp(type, "enum")) { param = new ParamComboBox(name, guitext, desc, scope, gui_hidden, gui_tip, in_ext, in_repr); } else if (!strcmp(type, "notebook")) { |
