Difference between revisions of "Dev:Popup Menu"

From Synfig Studio :: Documentation
Jump to: navigation, search
(creation draft mode)
(No difference)

Revision as of 23:18, 25 April 2014

  this is a draft


Documentation of the various ways popup menu are created and displayed

Handles popup menu

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(...


Layer popup menu

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());

}



Parameters popup menu

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