Code

r16217@tres: ted | 2007-08-10 10:36:27 -0700
[inkscape.git] / src / extension / paramcolor.h
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 "parameter.h"
16 namespace Inkscape {
17 namespace Extension {
19 class ParamColor : public Parameter {
20 private:
21     SPColor* _value;
22 public:
23     ParamColor(const gchar * name, const gchar * guitext, const gchar * desc, const Parameter::_scope_t scope, Inkscape::Extension::Extension * ext, Inkscape::XML::Node * xml);
24     ~ParamColor(void);
25     /** \brief  Returns \c _value, with a \i const to protect it. */
26     SPColor* get (const SPDocument * doc, const Inkscape::XML::Node * node) { return _value; }
27     SPColor* set (SPColor* in, SPDocument * doc, Inkscape::XML::Node * node);
28     Gtk::Widget * get_widget(SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal);
29     Glib::ustring * string (void);
30         sigc::signal<void> * _changeSignal;
31 }; /* class ParamColor */
33 }  /* namespace Extension */
34 }  /* namespace Inkscape */
36 #endif /* __INK_EXTENSION_PARAMCOLOR_H__ */
38 /*
39   Local Variables:
40   mode:c++
41   c-file-style:"stroustrup"
42   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
43   indent-tabs-mode:nil
44   fill-column:99
45   End:
46 */
47 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :