diff options
| author | Marcin Floryan <mfloryan@mm.waw.pl> | 2008-04-15 16:17:21 +0000 |
|---|---|---|
| committer | mfloryan <mfloryan@users.sourceforge.net> | 2008-04-15 16:17:21 +0000 |
| commit | a9178b177e16f6981499ae3f42e804a9a27fe121 (patch) | |
| tree | 06d350b808e96bbd3ea2f7ccb8c3d6e4396dbb01 /src/extension/param/string.h | |
| parent | i18n: Added some comments for translators. (diff) | |
| download | inkscape-a9178b177e16f6981499ae3f42e804a9a27fe121.tar.gz inkscape-a9178b177e16f6981499ae3f42e804a9a27fe121.zip | |
Fixes Bug #216584 (Effects/Color/Replace color not accepting UC) and also implements max_length attribute for string parameters in inx files.
(bzr r5450)
Diffstat (limited to 'src/extension/param/string.h')
| -rw-r--r-- | src/extension/param/string.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/extension/param/string.h b/src/extension/param/string.h index 0a1a0f2a3..10f45e5ac 100644 --- a/src/extension/param/string.h +++ b/src/extension/param/string.h @@ -21,6 +21,9 @@ private: /** \brief Internal value. This should point to a string that has been allocated in memory. And should be free'd. */ gchar * _value; + /** \brief Internal value. This indicates the maximum leght of the string. Zero meaning unlimited. + */ + gint _max_length; public: ParamString(const gchar * name, const gchar * guitext, const gchar * desc, const Parameter::_scope_t scope, bool gui_hidden, const gchar * gui_tip, Inkscape::Extension::Extension * ext, Inkscape::XML::Node * xml); virtual ~ParamString(void); @@ -29,6 +32,8 @@ public: const gchar * set (const gchar * in, SPDocument * doc, Inkscape::XML::Node * node); Gtk::Widget * get_widget(SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal); void string (std::string &string); + void setMaxLength(int maxLenght) { _max_length = maxLenght; } + int getMaxLength(void) { return _max_length; } }; |
