19 #include "ui_deviceuserargsdialog.h" 29 m_deviceEnumerator(deviceEnumerator),
30 m_hardwareDeviceUserArgs(hardwareDeviceUserArgs),
31 m_deviceUserArgsCopy(hardwareDeviceUserArgs)
49 QTreeWidgetItem *treeItem =
new QTreeWidgetItem(
ui->deviceTree);
50 treeItem->setText(0, hwItem.m_hardwareId);
51 treeItem->setText(1, tr(
"%1").
arg(hwItem.m_sequence));
52 treeItem->setText(2, hwItem.m_description);
55 ui->deviceTree->resizeColumnToContents(0);
56 ui->deviceTree->resizeColumnToContents(1);
57 ui->deviceTree->resizeColumnToContents(2);
69 ui->argsTree->blockSignals(
true);
70 ui->argsTree->clear();
71 ui->argStringEdit->clear();
77 QTreeWidgetItem *treeItem =
new QTreeWidgetItem(
ui->argsTree);
78 treeItem->setText(0, it->m_id);
79 treeItem->setText(1, tr(
"%1").
arg(it->m_sequence));
80 treeItem->setText(2, it->m_args);
83 ui->argsTree->resizeColumnToContents(0);
84 ui->argsTree->resizeColumnToContents(1);
85 ui->argsTree->resizeColumnToContents(2);
86 ui->argsTree->blockSignals(
false);
107 m_availableHWDevices.push_back(hw);
125 QTreeWidgetItem *deviceItem =
ui->deviceTree->currentItem();
130 int sequence = deviceItem->text(1).toInt(&ok);
139 QTreeWidgetItem *deviceItem =
ui->argsTree->currentItem();
144 int sequence = deviceItem->text(1).toInt(&ok);
153 ui->argStringEdit->setText(currentItem->text(2));
158 QTreeWidgetItem *deviceItem =
ui->argsTree->currentItem();
163 int sequence = deviceItem->text(1).toInt(&ok);
void deleteDeviceArgs(const QString &id, int sequence)
void pushHWDeviceReference(const PluginInterface::SamplingDevice *samplingDevice)
std::vector< HWDeviceReference > m_availableHWDevices
int sequence
The device sequence. >0 when more than one device of the same type is connected.
void on_argsTree_currentItemChanged(QTreeWidgetItem *currentItem, QTreeWidgetItem *previousItem)
QString displayedName
The human readable name.
void on_argStringEdit_editingFinished()
QString hardwareId
The internal id that identifies the type of hardware (i.e. HackRF, BladeRF, ...)
void on_importDevice_clicked(bool checked)
DeviceEnumerator * m_deviceEnumerator
DeviceUserArgs & m_hardwareDeviceUserArgs
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
const PluginInterface::SamplingDevice * getMIMOSamplingDevice(int deviceIndex) const
const QList< Args > & getArgsByDevice() const
void addDeviceArgs(const QString &id, int sequence, const QString &args)
Will not add if it exists for same reference.
Ui::DeviceUserArgsDialog * ui
int getNbRxSamplingDevices() const
const PluginInterface::SamplingDevice * getTxSamplingDevice(int deviceIndex) const
void updateDeviceArgs(const QString &id, int sequence, const QString &args)
Will not update if reference does not exist.
DeviceUserArgs m_deviceUserArgsCopy
void on_deleteArgs_clicked(bool checked)
const PluginInterface::SamplingDevice * getRxSamplingDevice(int deviceIndex) const
int getNbMIMOSamplingDevices() const
DeviceUserArgsDialog(DeviceEnumerator *deviceEnumerator, DeviceUserArgs &hardwareDeviceUserArgs, QWidget *parent=0)
int getNbTxSamplingDevices() const
void displayArgsByDevice()