1 #ifndef __INK_EXTENSION_PARAMCOLOR_H__
2 #define __INK_EXTENSION_PARAMCOLOR_H__
3 /*
4 * Copyright (C) 2005-2007 Authors:
5 * Ted Gould <ted@gould.cx>
6 * Johan Engelen <johan@shouraizou.nl> *
7 * Released under GNU GPL, read the file 'COPYING' for more information
8 */
10 #include <gtkmm/widget.h>
11 #include "xml/node.h"
12 #include "document.h"
13 #include <color.h>
14 #include "extension/param/parameter.h"
16 namespace Inkscape {
17 namespace Extension {
19 class ParamColor : public Parameter {
20 private:
21 guint32 _value;
22 public:
23 ParamColor(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);
24 virtual ~ParamColor(void);
25 /** \brief Returns \c _value, with a \i const to protect it. */
26 guint32 get( const SPDocument * /*doc*/, const Inkscape::XML::Node * /*node*/ ) { return _value; }
27 guint32 set (guint32 in, SPDocument * doc, Inkscape::XML::Node * node);
28 Gtk::Widget * get_widget(SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal);
29 void string (std::string &string);
30 sigc::signal<void> * _changeSignal;
31 }; /* class ParamColor */
33 } /* namespace Extension */
34 } /* namespace Inkscape */
36 #endif /* __INK_EXTENSION_PARAMCOLOR_H__ */