attach(*layer_amount_hscale, 1, 2, 1, 2, Gtk::EXPAND|Gtk::FILL, Gtk::SHRINK, 1, 1);
layer_amount_adjustment_.signal_value_changed().connect(sigc::mem_fun(*this, &studio::LayerTree::on_amount_value_changed));
-
-
-
Gtk::Image *icon;
//Gtk::IconSize iconsize(Gtk::IconSize::from_name("synfig-small_icon"));
Gtk::IconSize iconsize(Gtk::ICON_SIZE_SMALL_TOOLBAR);
button_duplicate->set_sensitive(false);
button_delete->set_sensitive(false);
-
-
-
get_selection()->signal_changed().connect(sigc::mem_fun(*this, &studio::LayerTree::on_selection_changed));
-
get_layer_tree_view().set_reorderable(true);
get_selection()->set_mode(Gtk::SELECTION_MULTIPLE);
//get_param_tree_view().get_selection()->set_mode(Gtk::SELECTION_MULTIPLE);
get_layer_tree_view().show();
get_param_tree_view().show();
-
hbox->show();
layer_amount_hscale->show();
blend_method_widget.show();
tooltips_.enable();
disable_amount_changed_signal=false;
-
-
-
-
blend_method_widget.set_param_desc(ParamDesc(Color::BlendMethod(),"blend_method"));
blend_method_widget.set_value((int)Color::BLEND_COMPOSITE);
blend_method_widget.signal_activate().connect(sigc::mem_fun(*this, &studio::LayerTree::on_blend_method_changed));
}
-
LayerTree::~LayerTree()
{
synfig::info("LayerTree::~LayerTree(): Deleted");
{
const LayerTreeStore::Model model;
-
{ // --- O N / O F F ----------------------------------------------------
//int index;
//index=get_layer_tree_view().append_column_editable(_(" "),layer_model.active);
Gtk::TreeView::Column* column = get_layer_tree_view().get_column(index-1);
get_layer_tree_view().set_expander_column(*column);
-
column->set_sort_column_id(layer_model.z_depth);
//column->set_reorderable();
//column->set_resizable();
listTargets.push_back( Gtk::TargetEntry("LAYER") );
get_layer_tree_view().drag_dest_set(listTargets);
-
// This makes things easier to read.
get_layer_tree_view().set_rules_hint();
get_layer_tree_view().signal_event().connect(sigc::mem_fun(*this, &studio::LayerTree::on_layer_tree_event));
get_layer_tree_view().show();
-
-
Gtk::ScrolledWindow *scroll = manage(new class Gtk::ScrolledWindow());
scroll->set_flags(Gtk::CAN_FOCUS);
scroll->set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
//get_param_tree_view().append_column(*column);
}*/
-
-
// This makes things easier to read.
get_param_tree_view().set_rules_hint();
get_layer_tree_view().get_selection()->unselect_all();
}
-
-
-
-
-
-
-
-
-
-
-
-
void
LayerTree::set_show_timetrack(bool x)
{
{
layer_tree_store_=layer_tree_store;
-
if(false)
{
sorted_layer_tree_store_=Gtk::TreeModelSort::create(layer_tree_store);
}
}
-
{
if(!layer_list.empty())
{
}
}
-
if(layer_list.empty())
{
button_raise->set_sensitive(false);
}
}
-
void
LayerTree::on_blend_method_changed()
{
disable_amount_changed_signal=false;
}
-
void
LayerTree::on_edited_value(const Glib::ustring&path_string,synfig::ValueBase value)
{
return false;
}
-
bool
LayerTree::on_param_tree_event(GdkEvent *event)
{
layer_tree_store_->canvas_interface()->get_instance()->perform_action(action);
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
/*
void
LayerTree::on_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&context, Gtk::SelectionData& selection_data, guint info, guint time)
Gtk::TreeRow row = *(get_model()->get_iter(path));
-
if ((selection_data.get_length() >= 0) && (selection_data.get_format() == 8))
{
if(synfig::String(selection_data.get_data_type())=="LAYER")do