bool.cpp revision 05599a3f1fae49d54a2102c41c31271a158410de
#ifdef HAVE_CONFIG_H
# include "config.h"
#include "../extension.h"
#include "bool.h"
#include "preferences.h"
namespace Inkscape {
namespace Extension {
ParamBool::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) :
if (defaultval != NULL && (!strcmp(defaultval, "true") || !strcmp(defaultval, "true") || !strcmp(defaultval, "1"))) {
_value = true;
_value = false;
return _value;
return _value;
ParamBoolCheckButton (ParamBool * param, SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal) :
void on_toggle (void);
if (_value) {
ParamBool::get_widget (SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal)
if (_gui_hidden) {
return NULL;
ParamBoolCheckButton * checkbox = Gtk::manage(new ParamBoolCheckButton(this, doc, node, changeSignal));