diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-07-21 21:58:51 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-08-31 14:50:38 +0000 |
| commit | ef97e481b40f407f1328ecda471704750bd7e2a2 (patch) | |
| tree | fb164d0aecc10ff8789b774ecdff601a43f29d55 /src/extension/prefdialog/parameter.h | |
| parent | Use proper boolean values (diff) | |
| download | inkscape-ef97e481b40f407f1328ecda471704750bd7e2a2.tar.gz inkscape-ef97e481b40f407f1328ecda471704750bd7e2a2.zip | |
Move error classes to Parameter where they belong
Diffstat (limited to 'src/extension/prefdialog/parameter.h')
| -rw-r--r-- | src/extension/prefdialog/parameter.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/extension/prefdialog/parameter.h b/src/extension/prefdialog/parameter.h index 39433b902..25762f725 100644 --- a/src/extension/prefdialog/parameter.h +++ b/src/extension/prefdialog/parameter.h @@ -168,6 +168,18 @@ public: const static int GUI_MAX_LINE_LENGTH = 60; + /** An error class for when a parameter is called on a type it is not */ + class param_no_name {}; + class param_no_type {}; + class param_not_color_param {}; + class param_not_enum_param {}; + class param_not_optiongroup_param {}; + class param_not_string_param {}; + class param_not_float_param {}; + class param_not_int_param {}; + class param_not_bool_param {}; + + protected: /** Parameter text to show as the GUI label. */ gchar * _text; |
