本文整理汇总了C++中etl::loose_handle类的典型用法代码示例。如果您正苦于以下问题:C++ loose_handle类的具体用法?C++ loose_handle怎么用?C++ loose_handle使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了loose_handle类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: tree_view
void
Dock_Layers::changed_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_view)
{
if(canvas_view)
{
Gtk::Widget* tree_view(canvas_view->get_ext_widget(get_name()));
add(*tree_view);
tree_view->show();
action_group_new_layers->set_sensitive(true);
if(layer_action_manager)
{
layer_action_manager->set_layer_tree(dynamic_cast<LayerTree*>(canvas_view->get_ext_widget(get_name()+"_cmp")));
layer_action_manager->set_canvas_interface(canvas_view->canvas_interface());
layer_action_manager->refresh();
}
}
else
{
action_group_new_layers->set_sensitive(false);
if(layer_action_manager)
{
layer_action_manager->clear();
layer_action_manager->set_canvas_interface(0);
layer_action_manager->set_layer_tree(0);
}
clear_previous();
}
}
示例2: curves
void
Dock_Curves::init_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_view)
{
//! Curves is registred thrue CanvasView::set_ext_widget
//! and will be deleted during CanvasView::~CanvasView()
//! \see CanvasView::set_ext_widget
//! \see CanvasView::~CanvasView
Widget_Curves* curves(new Widget_Curves());
curves->set_time_adjustment(canvas_view->time_adjustment());
Gtk::TreeView* param_tree_view(
static_cast<Gtk::TreeView*>(canvas_view->get_ext_widget("params"))
);
param_tree_view->get_selection()->signal_changed().connect(
sigc::bind(
sigc::bind(
sigc::ptr_fun(
_curve_selection_changed
),curves
),param_tree_view
)
);
studio::LayerTree* tree_layer(dynamic_cast<studio::LayerTree*>(canvas_view->get_ext_widget("layers_cmp")));
tree_layer->signal_param_tree_header_height_changed().connect(sigc::mem_fun(*this, &studio::Dock_Curves::on_update_header_height));
canvas_view->set_ext_widget(get_name(),curves);
}
示例3: tree_view
void
Dock_Keyframes::changed_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_view)
{
if(canvas_view)
{
Gtk::Widget* tree_view(canvas_view->get_ext_widget(get_name()));
add(*tree_view);
tree_view->show();
keyframe_action_manager->set_keyframe_tree(dynamic_cast<KeyframeTree*>(canvas_view->get_ext_widget(get_name())));
keyframe_action_manager->set_canvas_interface(canvas_view->canvas_interface());
keyframe_action_manager->refresh();
}
else
{
if(keyframe_action_manager)
{
keyframe_action_manager->clear();
keyframe_action_manager->set_keyframe_tree(0);
keyframe_action_manager->set_canvas_interface(0);
}
clear_previous();
}
}
示例4: metadata_tree
void
Dock_MetaData::init_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_view)
{
Glib::RefPtr<MetaDataTreeStore> metadata_tree_store;
metadata_tree_store=MetaDataTreeStore::create(canvas_view->canvas_interface());
MetaDataTree* metadata_tree(new MetaDataTree());
metadata_tree->set_model(metadata_tree_store);
metadata_tree->set_editable(true);
canvas_view->set_tree_model(get_name(),metadata_tree_store);
canvas_view->set_ext_widget(get_name(),metadata_tree);
}
示例5: layer_group_tree
void
Dock_LayerGroups::init_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_view)
{
Glib::RefPtr<LayerGroupTreeStore> layer_group_tree_store;
layer_group_tree_store=LayerGroupTreeStore::create(canvas_view->canvas_interface());
LayerGroupTree* layer_group_tree(new LayerGroupTree());
layer_group_tree->set_model(layer_group_tree_store);
layer_group_tree->signal_popup_layer_menu().connect(sigc::mem_fun(*canvas_view,&CanvasView::popup_layer_menu));
canvas_view->set_tree_model(get_name(),layer_group_tree_store);
canvas_view->set_ext_widget(get_name(),layer_group_tree);
}
示例6: children_tree
void
Dock_Children::init_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_view)
{
Glib::RefPtr<ChildrenTreeStore> children_tree_store;
children_tree_store=ChildrenTreeStore::create(canvas_view->canvas_interface());
ChildrenTree* children_tree(new ChildrenTree());
children_tree->set_model(children_tree_store);
children_tree->set_time_adjustment(canvas_view->time_adjustment());
canvas_view->set_tree_model(get_name(),children_tree_store);
canvas_view->set_ext_widget(get_name(),children_tree);
}
示例7:
void
Dock_History::init_instance_vfunc(etl::loose_handle<Instance> instance)
{
instance->signal_undo_redo_status_changed().connect(
sigc::mem_fun(*this,&Dock_History::update_undo_redo)
);
}
示例8: keyframe_tree
void
Dock_Keyframes::init_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_view)
{
Glib::RefPtr<KeyframeTreeStore> keyframe_tree_store;
keyframe_tree_store=KeyframeTreeStore::create(canvas_view->canvas_interface());
KeyframeTree* keyframe_tree(new KeyframeTree());
keyframe_tree->set_model(keyframe_tree_store);
keyframe_tree->set_editable(true);
canvas_view->set_tree_model(get_name(),keyframe_tree_store);
canvas_view->set_ext_widget(get_name(),keyframe_tree);
// keyframe actions status are connected to animation duration
canvas_view->canvas_interface()->signal_rend_desc_changed().connect(
sigc::mem_fun(*this,&studio::Dock_Keyframes::refresh_rend_desc)
);
}
示例9:
void studio::Dock_Info::changed_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_view)
{
mousecon.disconnect();
if(canvas_view && canvas_view->get_work_area())
{
mousecon = get_canvas_view()->work_area->signal_cursor_moved().connect(sigc::mem_fun(*this,&Dock_Info::on_mouse_move));
}
}
示例10:
void
Dock_Curves::changed_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_view)
{
if(table_)
{
table_->hide();
delete table_;
hscrollbar_->unset_adjustment();
vscrollbar_->unset_adjustment();
//widget_timeslider_->unset_adjustment();
table_=0;
}
if(canvas_view)
{
last_widget_curves_=dynamic_cast<Widget_Curves*>(
canvas_view->get_ext_widget(get_name())
);
vscrollbar_->set_adjustment(last_widget_curves_->get_range_adjustment());
hscrollbar_->set_adjustment(canvas_view->time_window_adjustment());
widget_timeslider_->set_time_adjustment(&canvas_view->time_adjustment());
widget_timeslider_->set_bounds_adjustment(&canvas_view->time_window_adjustment());
widget_timeslider_->set_global_fps(canvas_view->get_canvas()->rend_desc().get_frame_rate());
table_=new Gtk::Table(2,2);
table_->attach(*widget_timeslider_, 0, 1, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::SHRINK);
table_->attach(*last_widget_curves_, 0, 1, 1, 2, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND);
table_->attach(*hscrollbar_, 0, 1, 2, 3, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::SHRINK);
table_->attach(*vscrollbar_, 1, 2, 0, 2, Gtk::FILL|Gtk::SHRINK, Gtk::FILL|Gtk::EXPAND);
add(*table_);
//add(*last_widget_curves_);
last_widget_curves_->show();
table_->show_all();
show_all();
}
else
{
//clear_previous();
}
}
示例11:
void studio::Dock_Navigator::changed_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_view)
{
if(canvas_view)
{
Widget *v = canvas_view->get_ext_widget("navview");
if(!v)
{
v = new Widget_NavView(canvas_view);
canvas_view->set_ext_widget("navview",v);
}
add(*v);
}else
{
clear_previous();
//add(dummy);
}
}
示例12: get_id
String
ValueNode::get_relative_id(etl::loose_handle<const Canvas> x)const
{
assert(is_exported());
assert(canvas_);
if(x.get()==canvas_.get())
return get_id();
return canvas_->_get_relative_id(x)+':'+get_id();
}
示例13: tree_view
void
Dock_MetaData::changed_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_view)
{
if(canvas_view)
{
Gtk::Widget* tree_view(canvas_view->get_ext_widget(get_name()));
add(*tree_view);
tree_view->show();
}
else
clear_previous();
}
示例14: curves
void
Dock_Curves::init_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_view)
{
Widget_Curves* curves(new Widget_Curves());
curves->set_time_adjustment(canvas_view->time_adjustment());
Gtk::TreeView* param_tree_view(
static_cast<Gtk::TreeView*>(canvas_view->get_ext_widget("params"))
);
param_tree_view->get_selection()->signal_changed().connect(
sigc::bind(
sigc::bind(
sigc::ptr_fun(
_curve_selection_changed
),curves
),param_tree_view
)
);
canvas_view->set_ext_widget(get_name(),curves);
}
示例15: tree_view
void
Dock_LayerGroups::changed_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_view)
{
if(canvas_view)
{
Gtk::Widget* tree_view(canvas_view->get_ext_widget(get_name()));
add(*tree_view);
tree_view->show();
group_action_manager->set_group_tree(dynamic_cast<LayerGroupTree*>(tree_view));
group_action_manager->set_canvas_interface(canvas_view->canvas_interface());
group_action_manager->refresh();
}
else
{
clear_previous();
group_action_manager->clear();
group_action_manager->set_canvas_interface(0);
group_action_manager->set_group_tree(0);
}
}