template-widget.cpp revision 19ab32b616ef1f0ea01c08f5433959aa0eaa6bc4
/** @file
* @brief New From Template - templates widget - implementation
*/
/* Authors:
* Jan Darowski <jan.darowski@gmail.com>, supervised by Krzysztof KosiĆski
*
* Copyright (C) 2013 Authors
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "template-widget.h"
#include <gtkmm/alignment.h>
#include <gtkmm/messagedialog.h>
#include <glibmm/miscutils.h>
#include "template-load-tab.h"
#include "desktop.h"
#include "desktop-handles.h"
#include "document.h"
#include "document-undo.h"
#include "file.h"
#include "extension/implementation/implementation.h"
#include "inkscape.h"
namespace Inkscape {
namespace UI {
: _more_info_button(_("More info"))
, _short_description_label(_(" "))
, _template_name_label(_("no template selected"))
{
}
void TemplateWidget::create()
{
return;
if (desktop)
}
else {
}
}
{
std::string imagePath = Glib::build_filename(Glib::path_get_dirname(_current_template.path), _current_template.preview_name);
}
else if (!data.is_procedural){
}
if (_effect_prefs != NULL){
remove (*_effect_prefs);
}
if (data.is_procedural){
_effect_prefs = data.tpl_effect->get_imp()->prefs_effect(data.tpl_effect, SP_ACTIVE_DESKTOP, NULL, NULL);
}
}
{
message += _("Keywords: ");
for (std::set<Glib::ustring>::iterator it = _current_template.keywords.begin(); it != _current_template.keywords.end(); ++it)
message += "\n\n";
}
}
}
}