1
#ifndef __INK_EXTENSION_PARAMBOOL_H__
2
#define __INK_EXTENSION_PARAMBOOL_H__
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
10
#include <gtkmm/widget.h>
13
#include "parameter.h"
18
/** \brief A boolean parameter */
19
class ParamBool : public Parameter {
21
/** \brief Internal value. */
24
ParamBool(const gchar * name, const gchar * guitext, const gchar * desc, const Parameter::_scope_t scope, Inkscape::Extension::Extension * ext, Inkscape::XML::Node * xml);
25
/** \brief Returns \c _value */
26
bool get (const SPDocument * /*doc*/, const Inkscape::XML::Node * /*node*/) { return _value; }
27
bool set (bool 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);
32
} /* namespace Extension */
33
} /* namespace Inkscape */
35
#endif /* __INK_EXTENSION_PARAMBOOL_H__ */
40
c-file-style:"stroustrup"
41
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
46
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :