| 187 | } |
| 188 | |
| 189 | void 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 | |
| 205 | void ConditionalBoxPlotCanvas::SetCheckMarks(wxMenu* menu) |
| 206 | { |
nothing calls this directly
no test coverage detected