1 #include <QColorDialog> 6 #include "ui_basicchannelsettingsdialog.h" 11 m_channelMarker(marker),
70 ui->colorBtn->setIcon(pm);
71 ui->colorText->setText(tr(
"#%1%2%3")
80 c = QColorDialog::getColor(c,
this, tr(
"Select Color for Channel"), QColorDialog::DontUseNativeDialog);
102 int reverseAPIPort =
ui->reverseAPIPort->text().toInt(&dataOk);
104 if((!dataOk) || (reverseAPIPort < 1024) || (reverseAPIPort > 65535)) {
114 int reverseAPIDeviceIndex =
ui->reverseAPIDeviceIndex->text().toInt(&dataOk);
116 if ((!dataOk) || (reverseAPIDeviceIndex < 0)) {
126 int reverseAPIChannelIndex =
ui->reverseAPIChannelIndex->text().toInt(&dataOk);
128 if ((!dataOk) || (reverseAPIChannelIndex < 0)) {
enum ChannelMarker::frequencyScaleDisplay_e frequencyScaleDisplay_t
uint16_t m_reverseAPIChannelIndex
frequencyScaleDisplay_t getFrequencyScaleDisplayType() const
uint16_t m_reverseAPIPort
void setFrequencyScaleDisplayType(frequencyScaleDisplay_t type)
QString m_reverseAPIAddress
void setReverseAPIChannelIndex(uint16_t channelIndex)
BasicChannelSettingsDialog(ChannelMarker *marker, QWidget *parent=0)
void on_reverseAPI_toggled(bool checked)
void on_reverseAPIPort_editingFinished()
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
void setReverseAPIDeviceIndex(uint16_t deviceIndex)
void on_reverseAPIAddress_editingFinished()
void on_colorBtn_clicked()
Ui::BasicChannelSettingsDialog * ui
const QString & getTitle() const
bool useReverseAPI() const
void on_reverseAPIDeviceIndex_editingFinished()
void setReverseAPIAddress(const QString &address)
void setColor(const QColor &color)
void on_reverseAPIChannelIndex_editingFinished()
void setReverseAPIPort(uint16_t port)
const QColor & getColor() const
void setTitle(const QString &title)
uint16_t m_reverseAPIDeviceIndex
void setUseReverseAPI(bool useReverseAPI)
~BasicChannelSettingsDialog()
ChannelMarker * m_channelMarker