MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / DisplayRightClickMenu

Method DisplayRightClickMenu

Explore/ConditionalBoxPlotView.cpp:189–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void ConditionalBoxPlotCanvas::DisplayRightClickMenu(const wxPoint& pos)
190{
191 // Workaround for right-click not changing window focus in OSX / wxW 3.0
192 wxActivateEvent ae(wxEVT_NULL, true, 0, wxActivateEvent::Reason_Mouse);
193 ((ConditionalBoxPlotFrame*) template_frame)->OnActivate(ae);
194
195 wxMenu* optMenu = wxXmlResource::Get()->LoadMenu("ID_COND_BOXPLOT_VIEW_MENU_OPTIONS");
196 AddTimeVariantOptionsToMenu(optMenu);
197 TemplateCanvas::AppendCustomCategories(optMenu, project->GetCatClassifManager());
198 SetCheckMarks(optMenu);
199
200 template_frame->UpdateContextMenuItems(optMenu);
201 template_frame->PopupMenu(optMenu, pos + GetPosition());
202 template_frame->UpdateOptionMenuItems();
203}
204
205void ConditionalBoxPlotCanvas::SetCheckMarks(wxMenu* menu)
206{

Callers

nothing calls this directly

Calls 6

GetCatClassifManagerMethod · 0.80
GetPositionFunction · 0.50
OnActivateMethod · 0.45
LoadMenuMethod · 0.45
UpdateOptionMenuItemsMethod · 0.45

Tested by

no test coverage detected