Difference between revisions of "Dev:Popup Menu"
(creation draft mode) |
m (Add see also section) |
||
Line 52: | Line 52: | ||
synfigapp::CanvasInterface::generate_param_list | synfigapp::CanvasInterface::generate_param_list | ||
+ | |||
+ | |||
+ | ==See also== | ||
+ | [[Dev:Action_System]] |
Latest revision as of 23:26, 25 April 2014
this is a draft
Documentation of the various ways popup menu are created and displayed
When you right-click in a handle from the canvas
Duckmatic::connect_signals
duck->signal_user_click(2)
studio::CanvasView::popup_param_menu
get_instance()->make_param_menu(...
studio::CanvasView::parammenu.popup(...
When you right-click in a layer from the layer panel
LayerTree::signal_layer_user_click(...
CanvasView::on_layer_user_click(...
Gtk::MenuItem* menu = dynamic_cast<Gtk::MenuItem*>(App::ui_manager()->get_widget("/menu-main/menu-layer"));
if(menu && menu->get_submenu())
{
//menu->set_accel_group(App::ui_manager()->get_accel_group());
//menu->accelerate(*this);
menu->get_submenu()->popup(button,gtk_get_current_event_time());
}
When you right-click in a parameter from the parameter panel or in a waypoint from the timetrack panel
studio::Instance::make_param_menu
synfigapp::CanvasInterface::generate_param_list