groupheader.cpp revision 2bcd615f0c56578f589efcdfa36be3d349803352
/*
* Copyright (C) 2005-2010 Authors:
* Ted Gould <ted@gould.cx>
* Johan Engelen <johan@shouraizou.nl> *
* Nicolas Dufour <nicoduf@yahoo.fr>
* 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 "groupheader.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. */
ParamGroupHeader::ParamGroupHeader (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) :
{
// printf("Building GroupHeader\n");
const char * defaultval = NULL;
if (defaultval != NULL)
return;
}
/** \brief Create a label for the GroupHeader */
ParamGroupHeader::get_widget (SPDocument * /*doc*/, Inkscape::XML::Node * /*node*/, sigc::signal<void> * /*changeSignal*/)
{
if (_gui_hidden) return NULL;
} else {
newguitext = _(_value);
}
Gtk::Label * label = Gtk::manage(new Gtk::Label(Glib::ustring("<b>") +newguitext + Glib::ustring("</b>"), Gtk::ALIGN_LEFT));
label->set_line_wrap();
label->set_use_markup(true);
return hbox;
}
} /* namespace Extension */
} /* namespace Inkscape */