description.cpp revision dd2e0e7834c9cbd8cdc678fadf3367e98cf2fe95
/*
* 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);
}
int padding = 12;
label = Gtk::manage(new Gtk::Label(Glib::ustring("<b>") +newguitext + Glib::ustring("</b>"), Gtk::ALIGN_LEFT));
label->set_use_markup(true);
padding = 0;
} else {
}
label->set_line_wrap();
return hbox;
}
} /* namespace Extension */
} /* namespace Inkscape */