2015-06-04 12:42:38 -04:00
|
|
|
#ifndef ECHOGRAPH_H
|
|
|
|
#define ECHOGRAPH_H
|
2016-06-10 11:54:16 -04:00
|
|
|
|
2015-06-04 12:42:38 -04:00
|
|
|
#include <QDialog>
|
2016-06-10 11:54:16 -04:00
|
|
|
#include <QScopedPointer>
|
2015-06-04 12:42:38 -04:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class EchoGraph;
|
|
|
|
}
|
|
|
|
|
2015-06-04 14:17:13 -04:00
|
|
|
class QSettings;
|
|
|
|
|
2015-06-04 12:42:38 -04:00
|
|
|
class EchoGraph : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2015-06-04 13:16:55 -04:00
|
|
|
protected:
|
|
|
|
void closeEvent (QCloseEvent *) override;
|
|
|
|
|
2015-06-04 12:42:38 -04:00
|
|
|
public:
|
2015-06-04 14:17:13 -04:00
|
|
|
explicit EchoGraph(QSettings *, QWidget *parent = 0);
|
2015-06-04 12:42:38 -04:00
|
|
|
~EchoGraph();
|
|
|
|
|
|
|
|
void plotSpec();
|
|
|
|
void saveSettings();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_smoothSpinBox_valueChanged(int n);
|
|
|
|
void on_cbBlue_toggled(bool checked);
|
|
|
|
void on_gainSlider_valueChanged(int value);
|
2015-06-08 15:42:20 -04:00
|
|
|
void on_zeroSlider_valueChanged(int value);
|
|
|
|
void on_binsPerPixelSpinBox_valueChanged(int n);
|
2015-06-04 12:42:38 -04:00
|
|
|
|
2015-11-17 20:28:12 -05:00
|
|
|
void on_pbColors_clicked();
|
|
|
|
|
2015-06-04 12:42:38 -04:00
|
|
|
private:
|
2015-06-04 14:17:13 -04:00
|
|
|
QSettings * m_settings;
|
2015-11-17 20:28:12 -05:00
|
|
|
qint32 m_nColor;
|
2015-06-04 12:42:38 -04:00
|
|
|
|
2016-06-10 11:54:16 -04:00
|
|
|
QScopedPointer<Ui::EchoGraph> ui;
|
2015-06-04 12:42:38 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ECHOGRAPH_H
|