Indicate device selection

This commit is contained in:
Charles J. Cliffe 2015-01-12 00:51:57 -05:00
parent 328ea29e15
commit 9217ea6e19
3 changed files with 6 additions and 1 deletions

View File

@ -207,7 +207,7 @@ AppFrame::AppFrame() :
devName.append(" (In Use?)");
}
menu->Append(wxID_DEVICE_ID+p, devName);
menu->AppendRadioItem(wxID_DEVICE_ID+p, devName)->Check(wxGetApp().getDevice() == p);
p++;
}

View File

@ -200,3 +200,7 @@ void CubicSDR::setDevice(int deviceId) {
command.llong_value = deviceId;
threadCmdQueueSDR->push(command);
}
int CubicSDR::getDevice() {
return sdrThread->getDeviceId();
}

View File

@ -40,6 +40,7 @@ public:
std::vector<SDRDeviceInfo *> *getDevices();
void setDevice(int deviceId);
int getDevice();
DemodulatorThreadOutputQueue* getAudioVisualQueue();
DemodulatorThreadInputQueue* getIQVisualQueue();