| 500 | } |
| 501 | |
| 502 | void ActiveStereoFrame::OnMenuChangeCameraSelected(wxCommandEvent& event) |
| 503 | { |
| 504 | // open the camera number dialog |
| 505 | wxNumberEntryDialog dialog (this, wxT("Cameras are numbered in the order they are connected in.\n\nSet the value to -1 to select the first valid camera detected."), wxT("New camera number:"), wxT("MakerScanner - Change Camera"), cameraNum, -1, 10); |
| 506 | |
| 507 | long cameraNumNew; |
| 508 | |
| 509 | if (dialog.ShowModal() == wxID_OK) |
| 510 | { |
| 511 | cameraNumNew = dialog.GetValue(); |
| 512 | |
| 513 | wxConfig *config = (wxConfig*)wxConfigBase::Get(); |
| 514 | |
| 515 | config->Write(wxT("CameraNum"), cameraNumNew); |
| 516 | |
| 517 | wxMessageBox(wxT("You must restart MakerScanner for your changes to take effect."), |
| 518 | wxT("MakerScanner - Settings Changed")); |
| 519 | } |
| 520 | } |
| 521 | |
| 522 | void ActiveStereoFrame::UpdateFps(wxUpdateUIEvent &event) |
| 523 | { |
nothing calls this directly
no outgoing calls
no test coverage detected