/** @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 "document.h"
#include "document-undo.h"
#include "file.h"
#include "sp-namedview.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"))
{
_more_info_button.set_sensitive(false);
}
{
return;
// Apply cx,cy etc. from document
if (desktop)
}
else {
}
}
{
clear();
std::string imagePath = Glib::build_filename(Glib::path_get_dirname(_current_template.path), _current_template.preview_name);
}
else if (!data.is_procedural){
}
if (data.is_procedural){
_effect_prefs = data.tpl_effect->get_imp()->prefs_effect(data.tpl_effect, SP_ACTIVE_DESKTOP, NULL, NULL);
}
_more_info_button.set_sensitive(true);
}
{
if (_effect_prefs != NULL){
remove (*_effect_prefs);
}
_more_info_button.set_sensitive(false);
}
{
message += _("Keywords: ");
for (std::set<Glib::ustring>::iterator it = _current_template.keywords.begin(); it != _current_template.keywords.end(); ++it)
message += "\n\n";
}
}
}
}