1
#ifndef INK_EXTENSION_PARAMENUM_H_SEEN
2
#define INK_EXTENSION_PARAMENUM_H_SEEN
5
* Enumeration parameter for extensions.
10
* Johan Engelen <johan@shouraizou.nl>
12
* Copyright (C) 2006-2007 Johan Engelen
14
* Released under GNU GPL, read the file 'COPYING' for more information
17
#include <gtkmm/widget.h>
19
#include "xml/document.h"
20
#include <extension/extension-forward.h>
22
#include "parameter.h"
29
// \brief A class to represent a notebookparameter of an extension
30
class ParamComboBox : public Parameter {
32
/** \brief Internal value. This should point to a string that has
33
been allocated in memory. And should be free'd.
34
It is the value of the current selected string */
37
GSList * choices; /**< A table to store the choice strings */
40
ParamComboBox(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);
41
virtual ~ParamComboBox(void);
42
Gtk::Widget * get_widget(SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal);
43
void string (std::string &string);
45
const gchar * get (const SPDocument * /*doc*/, const Inkscape::XML::Node * /*node*/) { return _value; }
46
const gchar * set (const gchar * in, SPDocument * doc, Inkscape::XML::Node * node);
49
}; /* class ParamComboBox */
55
} /* namespace Extension */
56
} /* namespace Inkscape */
58
#endif /* INK_EXTENSION_PARAMENUM_H_SEEN */
63
c-file-style:"stroustrup"
64
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
69
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :