- wxString choiceStringList [5];
- choiceStringList[0] = Phantom::PHM_HERMAN_STR;
- choiceStringList[1] = Phantom::PHM_BHERMAN_STR;
- choiceStringList[2] = Phantom::PHM_ROWLAND_STR;;
- choiceStringList[3] = Phantom::PHM_BROWLAND_STR;
- choiceStringList[4] = Phantom::PHM_UNITPULSE_STR;
- wxString choiceTitleList [5];
- choiceTitleList[0] = "Herman Head";
- choiceTitleList[1] = "Herman Head Bordered";
- choiceTitleList[2] = "Rowland Head";
- choiceTitleList[3] = "Rowland Head Bordered";
- choiceTitleList[4] = "Unit Pulse";
- wxSingleChoiceDialog dialog (this, "Select phantom", "Phantom Selection", 5, choiceTitleList, NULL, wxOK|wxCANCEL|wxCENTRE);
-
- int dialogReturn = dialog.ShowModal();
+ DialogGetPhantom dialogPhantom (this, Phantom::PHM_HERMAN);
+ int dialogReturn = dialogPhantom.ShowModal();