2012-05-22 10:28:39 -04:00
|
|
|
#ifndef WIDEGRAPH_H
|
|
|
|
#define WIDEGRAPH_H
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class WideGraph;
|
|
|
|
}
|
|
|
|
|
|
|
|
class WideGraph : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit WideGraph(QWidget *parent = 0);
|
|
|
|
~WideGraph();
|
|
|
|
|
2013-07-08 09:17:22 -04:00
|
|
|
void dataSink2(float s[], float df3, int ihsym, int ndiskdata);
|
|
|
|
void setRxFreq(int n);
|
|
|
|
int rxFreq();
|
2012-05-22 10:28:39 -04:00
|
|
|
int nSpan();
|
|
|
|
int nStartFreq();
|
2013-04-10 10:41:16 -04:00
|
|
|
int getFmin();
|
|
|
|
int getFmax();
|
2012-05-22 10:28:39 -04:00
|
|
|
float fSpan();
|
|
|
|
void saveSettings();
|
2013-07-08 09:17:22 -04:00
|
|
|
void setRxRange(int fMin);
|
|
|
|
void setFmin(int n);
|
2012-05-22 10:28:39 -04:00
|
|
|
void setPalette(QString palette);
|
2012-09-24 19:36:38 -04:00
|
|
|
void setFsample(int n);
|
2012-09-25 20:48:49 -04:00
|
|
|
void setPeriod(int ntrperiod, int nsps);
|
2012-11-23 11:05:50 -05:00
|
|
|
void setTxFreq(int n);
|
2013-07-08 09:17:22 -04:00
|
|
|
void setMode(QString mode);
|
|
|
|
void setModeTx(QString modeTx);
|
|
|
|
void setSlope(double d);
|
|
|
|
void setLockTxFreq(bool b);
|
|
|
|
double getSlope();
|
2012-09-24 19:36:38 -04:00
|
|
|
double fGreen();
|
2012-05-22 10:28:39 -04:00
|
|
|
|
2013-07-08 09:17:22 -04:00
|
|
|
qint32 m_rxFreq;
|
|
|
|
qint32 m_txFreq;
|
2012-05-22 10:28:39 -04:00
|
|
|
|
|
|
|
signals:
|
|
|
|
void freezeDecode2(int n);
|
|
|
|
void f11f12(int n);
|
2013-07-08 09:17:22 -04:00
|
|
|
void setXIT2(int n);
|
|
|
|
void setFreq3(int rxFreq, int txFreq);
|
2012-05-22 10:28:39 -04:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void wideFreezeDecode(int n);
|
2013-07-08 09:17:22 -04:00
|
|
|
void setFreq2(int rxFreq, int txFreq);
|
2012-05-22 10:28:39 -04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void keyPressEvent( QKeyEvent *e );
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_waterfallAvgSpinBox_valueChanged(int arg1);
|
|
|
|
void on_freqSpanSpinBox_valueChanged(int arg1);
|
|
|
|
void on_zeroSpinBox_valueChanged(int arg1);
|
|
|
|
void on_gainSpinBox_valueChanged(int arg1);
|
2013-03-06 11:37:28 -05:00
|
|
|
void on_spec2dComboBox_currentIndexChanged(const QString &arg1);
|
2013-04-05 12:48:10 -04:00
|
|
|
void on_fMinSpinBox_valueChanged(int n);
|
2013-07-08 09:17:22 -04:00
|
|
|
void on_slopeSpinBox_valueChanged(double d);
|
2012-10-10 20:51:16 -04:00
|
|
|
|
2012-05-22 10:28:39 -04:00
|
|
|
private:
|
2013-07-08 09:17:22 -04:00
|
|
|
double m_slope;
|
|
|
|
|
2012-05-22 10:28:39 -04:00
|
|
|
qint32 m_waterfallAvg;
|
|
|
|
qint32 m_fSample;
|
2012-09-24 15:11:31 -04:00
|
|
|
qint32 m_TRperiod;
|
2012-09-25 20:48:49 -04:00
|
|
|
qint32 m_nsps;
|
2012-10-26 12:01:57 -04:00
|
|
|
qint32 m_ntr0;
|
2013-04-05 12:48:10 -04:00
|
|
|
qint32 m_fMin;
|
|
|
|
qint32 m_fMax;
|
2012-05-22 10:28:39 -04:00
|
|
|
|
2013-07-08 09:17:22 -04:00
|
|
|
bool m_lockTxFreq;
|
|
|
|
|
|
|
|
QString m_mode;
|
|
|
|
QString m_modeTx;
|
|
|
|
|
2012-05-22 10:28:39 -04:00
|
|
|
Ui::WideGraph *ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef WIN32
|
|
|
|
extern int set570(double freq_MHz);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // WIDEGRAPH_H
|