-/* === S I N F G =========================================================== */
+/* === S Y N F I G ========================================================= */
/*! \file layergrouptree.cpp
** \brief Template File
**
# include <config.h>
#endif
-#include <sinfg/layer.h>
+#include <synfig/layer.h>
#include "layergrouptree.h"
#include <gtkmm/treemodelsort.h>
#include <ETL/misc>
using namespace std;
using namespace etl;
-using namespace sinfg;
+using namespace synfig;
using namespace studio;
/* === M A C R O S ========================================================= */
LayerGroupTree::~LayerGroupTree()
{
- sinfg::info("LayerGroupTree::~LayerGroupTree(): deleted");
+ synfig::info("LayerGroupTree::~LayerGroupTree(): deleted");
}
void
}
/*
void
-LayerGroupTree::on_edited_time(const Glib::ustring&path_string,sinfg::Time time)
+LayerGroupTree::on_edited_time(const Glib::ustring&path_string,synfig::Time time)
{
Gtk::TreePath path(path_string);
const Gtk::TreeRow row(*(get_model()->get_iter(path)));
- sinfg::Keyframe keyframe(row[model.keyframe]);
+ synfig::Keyframe keyframe(row[model.keyframe]);
if(time!=keyframe.get_time())
{
row[model.time]=time;
}
void
-LayerGroupTree::on_edited_time_delta(const Glib::ustring&path_string,sinfg::Time time)
+LayerGroupTree::on_edited_time_delta(const Glib::ustring&path_string,synfig::Time time)
{
Gtk::TreePath path(path_string);
const Gtk::TreeRow row = *(get_model()->get_iter(path));
- const sinfg::String description(desc);
- sinfg::Keyframe keyframe(row[model.keyframe]);
+ const synfig::String description(desc);
+ synfig::Keyframe keyframe(row[model.keyframe]);
if(description!=keyframe.get_description())
{
row[model.description]=desc;
//return false;
}
-static inline void __group_grabber(const Gtk::TreeModel::iterator& iter, std::list<sinfg::String>* ret)
+static inline void __group_grabber(const Gtk::TreeModel::iterator& iter, std::list<synfig::String>* ret)
{
const LayerGroupTreeStore::Model model;
if((bool)(*iter)[model.is_group])
ret->push_back((Glib::ustring)(*iter)[model.group_name]);
}
-std::list<sinfg::String>
+std::list<synfig::String>
LayerGroupTree::get_selected_groups()const
{
Glib::RefPtr<Gtk::TreeSelection> selection=const_cast<LayerGroupTree&>(*this).get_selection();
if(!selection)
- return std::list<sinfg::String>();
+ return std::list<synfig::String>();
- std::list<sinfg::String> ret;
+ std::list<synfig::String> ret;
selection->selected_foreach_iter(
sigc::bind(