| 332 | } |
| 333 | |
| 334 | void ScatterPlotMatFrame::OnSetAxisDisplayPrecision(wxCommandEvent& event) |
| 335 | { |
| 336 | wxLogMessage("Click GdaFrame::OnSetDisplayPrecision"); |
| 337 | SetDisplayPrecisionDlg dlg(axis_display_precision, |
| 338 | axis_display_fixed_point, this); |
| 339 | if (dlg.ShowModal () != wxID_OK) |
| 340 | return; |
| 341 | int def_precision = dlg.precision; |
| 342 | bool fixed_point = dlg.fixed_point; |
| 343 | for (size_t i=0, sz=vert_labels.size(); i<sz; ++i) { |
| 344 | if (vert_labels[i]) |
| 345 | vert_labels[i]->SetAxisDisplayPrecision(def_precision, fixed_point); |
| 346 | } |
| 347 | for (size_t i=0, sz=horiz_labels.size(); i<sz; ++i) { |
| 348 | if (horiz_labels[i]) |
| 349 | horiz_labels[i]->SetAxisDisplayPrecision(def_precision, fixed_point); |
| 350 | } |
| 351 | axis_display_precision = def_precision; |
| 352 | axis_display_fixed_point = fixed_point; |
| 353 | } |
| 354 | |
| 355 | void ScatterPlotMatFrame::OnShowVarsChooser(wxCommandEvent& event) |
| 356 | { |
nothing calls this directly
no test coverage detected