description.cpp revision 05599a3f1fae49d54a2102c41c31271a158410de
/*
* Copyright (C) 2005-2007 Authors:
* Ted Gould <ted@gould.cx>
* Johan Engelen <johan@shouraizou.nl> *
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef linux // does the dollar sign need escaping when passed as string parameter?
# define ESCAPE_DOLLAR_COMMANDLINE
#endif
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "description.h"
#include <gtkmm/adjustment.h>
#include <gtkmm/spinbutton.h>
#include <sstream>
#include "extension/extension.h"
namespace Inkscape {
namespace Extension {
/** \brief Initialize the object, to do that, copy the data. */
bool gui_hidden,
{
// printf("Building Description\n");
const char * defaultval = NULL;
}
if (defaultval != NULL) {
}
}
return;
}
/** \brief Create a label for the description */
ParamDescription::get_widget (SPDocument * /*doc*/, Inkscape::XML::Node * /*node*/, sigc::signal<void> * /*changeSignal*/)
{
if (_gui_hidden) {
return NULL;
}
} else {
newguitext = _(_value);
}
label = Gtk::manage(new Gtk::Label(Glib::ustring("<b>") +newguitext + Glib::ustring("</b>"), Gtk::ALIGN_LEFT));
label->set_use_markup(true);
} else {
}
label->set_line_wrap();
return hbox;
}
} /* namespace Extension */
} /* namespace Inkscape */