Settings now added to settings menu, not yet functional..

- Also possible re-ordering fix for scope visual crash I have
occasionally
This commit is contained in:
Charles J. Cliffe
2015-11-03 19:58:42 -05:00
parent bcc5f8560f
commit c7ecc5f1f6
4 changed files with 82 additions and 21 deletions
+8 -1
View File
@@ -63,10 +63,17 @@ wxPGProperty *SDRDevicesDialog::addArgInfoProperty(wxPropertyGrid *pg, SoapySDR:
intVal = 0;
prop = pg->Append( new wxEnumProperty(arg.name, wxPG_LABEL) );
for (stringIter = arg.options.begin(); stringIter != arg.options.end(); stringIter++) {
prop->AddChoice((*stringIter));
std::string optName = (*stringIter);
std::string displayName = optName;
if (arg.optionNames.size()) {
displayName = arg.optionNames[intVal];
}
prop->AddChoice(displayName);
if ((*stringIter)==arg.value) {
prop->SetChoiceSelection(intVal);
}
intVal++;
}
} else {