2015-11-17 20:28:12 -05:00
|
|
|
#ifndef FASTGRAPH_H
|
|
|
|
#define FASTGRAPH_H
|
2016-06-10 11:54:16 -04:00
|
|
|
|
2015-11-17 20:28:12 -05:00
|
|
|
#include <QDialog>
|
2016-06-10 11:54:16 -04:00
|
|
|
#include <QScopedPointer>
|
2015-11-17 20:28:12 -05:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class FastGraph;
|
|
|
|
}
|
|
|
|
|
|
|
|
class QSettings;
|
|
|
|
|
|
|
|
class FastGraph : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void closeEvent (QCloseEvent *) override;
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit FastGraph(QSettings *, QWidget *parent = 0);
|
|
|
|
~FastGraph();
|
|
|
|
|
2016-09-17 09:34:40 -04:00
|
|
|
void plotSpec(bool diskData, int UTCdisk);
|
2015-11-17 20:28:12 -05:00
|
|
|
void saveSettings();
|
2016-09-15 13:06:49 -04:00
|
|
|
void setTRperiod(int n);
|
2015-11-17 20:28:12 -05:00
|
|
|
|
|
|
|
signals:
|
|
|
|
void fastPick(int x0, int x1, int y);
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_gainSlider_valueChanged(int value);
|
|
|
|
void on_zeroSlider_valueChanged(int value);
|
|
|
|
void on_greenZeroSlider_valueChanged(int value);
|
|
|
|
void on_pbAutoLevel_clicked();
|
|
|
|
|
|
|
|
private:
|
|
|
|
QSettings * m_settings;
|
|
|
|
float m_ave;
|
2016-09-15 13:06:49 -04:00
|
|
|
qint32 m_TRperiod;
|
2015-11-17 20:28:12 -05:00
|
|
|
|
2016-06-10 11:54:16 -04:00
|
|
|
QScopedPointer<Ui::FastGraph> ui;
|
2015-11-17 20:28:12 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
extern float fast_green[703];
|
|
|
|
extern int fast_jh;
|
|
|
|
|
|
|
|
#endif // FASTGRAPH_H
|