description.cpp revision 2d89d535055f32929f9afcaaa1460795b9dbffff
/*
* 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);
}
#if WITH_GTKMM_2_22
label = Gtk::manage(new Gtk::Label(Glib::ustring("<b>") +newguitext + Glib::ustring("</b>"), Gtk::ALIGN_START));
#else
label = Gtk::manage(new Gtk::Label(Glib::ustring("<b>") +newguitext + Glib::ustring("</b>"), Gtk::ALIGN_LEFT));
#endif
label->set_use_markup(true);
} else {
#if WITH_GTKMM_2_22
#else
#endif
}
label->set_line_wrap();
return hbox;
}
} /* namespace Extension */
} /* namespace Inkscape */