1
#ifndef __INK_EXTENSION_PARAMSTRING_H
2
#define __INK_EXTENSION_PARAMSTRING_H
5
* Copyright (C) 2005-2007 Authors:
6
* Ted Gould <ted@gould.cx>
7
* Johan Engelen <johan@shouraizou.nl> *
8
* Released under GNU GPL, read the file 'COPYING' for more information
11
#include <gtkmm/widget.h>
14
#include "parameter.h"
19
class ParamString : public Parameter {
21
/** \brief Internal value. This should point to a string that has
22
been allocated in memory. And should be free'd. */
25
ParamString(const gchar * name, const gchar * guitext, const gchar * desc, const Parameter::_scope_t scope, Inkscape::Extension::Extension * ext, Inkscape::XML::Node * xml);
26
virtual ~ParamString(void);
27
/** \brief Returns \c _value, with a \i const to protect it. */
28
const gchar * get (const SPDocument * doc, const Inkscape::XML::Node * node) { return _value; }
29
const gchar * set (const gchar * in, SPDocument * doc, Inkscape::XML::Node * node);
30
Gtk::Widget * get_widget(SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal);
31
Glib::ustring * string (void);
35
} /* namespace Extension */
36
} /* namespace Inkscape */
38
#endif /* __INK_EXTENSION_PARAMSTRING_H */
43
c-file-style:"stroustrup"
44
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
49
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :