MCPcopy Create free account
hub / github.com/andybarry/makerscanner / OnMenuChangeCameraSelected

Method OnMenuChangeCameraSelected

ActiveStereoMain.cpp:502–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500}
501
502void 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
522void ActiveStereoFrame::UpdateFps(wxUpdateUIEvent &event)
523{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected