本文整理汇总了C++中etl::loose_handle::hide_timebar方法的典型用法代码示例。如果您正苦于以下问题:C++ loose_handle::hide_timebar方法的具体用法?C++ loose_handle::hide_timebar怎么用?C++ loose_handle::hide_timebar使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类etl::loose_handle
的用法示例。
在下文中一共展示了loose_handle::hide_timebar方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: layer_tree
void
Dock_Layers::init_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_view)
{
Glib::RefPtr<LayerTreeStore> layer_tree_store;
layer_tree_store=LayerTreeStore::create(canvas_view->canvas_interface());
canvas_view->set_tree_model(get_name(),layer_tree_store);
//! layer_tree is registred thrue CanvasView::set_ext_widget
//! and will be deleted during CanvasView::~CanvasView()
//! \see CanvasView::set_ext_widget
//! \see CanvasView::~CanvasView
LayerTree* layer_tree(new LayerTree());
layer_tree->set_time_adjustment(canvas_view->time_adjustment());
layer_tree->signal_edited_value().connect(
sigc::hide_return(
sigc::bind(sigc::mem_fun(*canvas_view->canvas_interface(), &synfigapp::CanvasInterface::change_value), false)
)
);
// (a) should be before (b), (b) should be before (c)
canvas_view->set_ext_widget(get_name()+"_cmp",layer_tree); // (a)
canvas_view->set_ext_widget(get_name(),&layer_tree->get_layer_tree_view());
canvas_view->set_ext_widget("params",&layer_tree->get_param_tree_view());
layer_tree->set_model(layer_tree_store); // (b)
canvas_view->set_tree_model("params",layer_tree->get_param_tree_view().get_model()); // (c)
/*
canvas_view->layermenu.items().push_back(Gtk::Menu_Helpers::StockMenuElem(Gtk::StockID("gtk-delete"),Gtk::AccelKey("Delete"),
sigc::mem_fun(*layer_tree, &LayerTree::on_delete_pressed))
);
*/
// Hide the time bar
if(canvas_view->get_canvas()->rend_desc().get_time_start()==canvas_view->get_canvas()->rend_desc().get_time_end())
canvas_view->hide_timebar();
layer_tree_store->rebuild();
present();
}