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

Method SetCheckMarks

Explore/BoxNewPlotView.cpp:229–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void BoxPlotCanvas::SetCheckMarks(wxMenu* menu)
230{
231 // Update the checkmarks and enable/disable state for the
232 // following menu items if they were specified for this particular
233 // view in the xrc file. Items that cannot be enable/disabled,
234 // or are not checkable do not appear.
235
236 GeneralWxUtils::CheckMenuItem(menu, XRCID("ID_DISPLAY_STATISTICS"),
237 IsDisplayStats());
238 GeneralWxUtils::CheckMenuItem(menu, XRCID("ID_SHOW_AXES"),
239 IsShowAxes());
240
241 GeneralWxUtils::CheckMenuItem(menu, XRCID("ID_OPTIONS_HINGE_15"),
242 hinge_15);
243 GeneralWxUtils::CheckMenuItem(menu, XRCID("ID_OPTIONS_HINGE_30"),
244 !hinge_15);
245
246 if (var_info[0].is_time_variant) {
247 GeneralWxUtils::CheckMenuItem(menu,
248 GdaConst::ID_TIME_SYNC_VAR1,
249 var_info[0].sync_with_global_time);
250 GeneralWxUtils::CheckMenuItem(menu,
251 GdaConst::ID_FIX_SCALE_OVER_TIME_VAR1,
252 var_info[0].fixed_scale);
253 int mppv = GdaConst::max_plots_per_view_menu_items;
254 int mp = std::min(max_plots, mppv);
255 for (int i=0; i<mp-1; i++) {
256 GeneralWxUtils::CheckMenuItem(menu,
257 GdaConst::ID_PLOTS_PER_VIEW_1+i,
258 i+1 == cur_num_plots);
259 }
260 GeneralWxUtils::CheckMenuItem(menu,
261 GdaConst::ID_PLOTS_PER_VIEW_ALL,
262 cur_num_plots == max_plots);
263 }
264}
265
266void BoxPlotCanvas::DetermineMouseHoverObjects(wxPoint pt)
267{

Callers 2

MapMenusMethod · 0.45
UpdateOptionMenuItemsMethod · 0.45

Calls 3

IsDisplayStatsFunction · 0.70
IsShowAxesFunction · 0.70
minFunction · 0.50

Tested by

no test coverage detected