1 #ifndef __INK_EXTENSION_PARAMBOOL_H__
2 #define __INK_EXTENSION_PARAMBOOL_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 "parameter.h"
15 namespace Inkscape {
16 namespace Extension {
18 /** \brief A boolean parameter */
19 class ParamBool : public Parameter {
20 private:
21 /** \brief Internal value. */
22 bool _value;
23 public:
24 ParamBool(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);
25 bool get (const SPDocument * doc, const Inkscape::XML::Node * node);
26 bool set (bool in, SPDocument * doc, Inkscape::XML::Node * node);
27 Gtk::Widget * get_widget(SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal);
28 void string (std::string &string);
29 };
31 } /* namespace Extension */
32 } /* namespace Inkscape */
34 #endif /* __INK_EXTENSION_PARAMBOOL_H__ */
36 /*
37 Local Variables:
38 mode:c++
39 c-file-style:"stroustrup"
40 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
41 indent-tabs-mode:nil
42 fill-column:99
43 End:
44 */
45 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :