2018-12-06 00:41:16 -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;
|
2018-12-06 00:41:16 -05:00
|
|
|
class QCloseEvent;
|
|
|
|
class QKeyEvent;
|
2015-11-17 20:28:12 -05:00
|
|
|
|
|
|
|
class FastGraph : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit FastGraph(QSettings *, QWidget *parent = 0);
|
2017-06-04 18:51:26 -04:00
|
|
|
~FastGraph ();
|
2015-11-17 20:28:12 -05:00
|
|
|
|
2016-09-17 09:34:40 -04:00
|
|
|
void plotSpec(bool diskData, int UTCdisk);
|
2015-11-17 20:28:12 -05:00
|
|
|
void saveSettings();
|
2019-05-22 12:44:28 -04:00
|
|
|
void setTRPeriod(double p);
|
2016-10-21 14:07:12 -04:00
|
|
|
void setMode(QString mode);
|
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();
|
|
|
|
|
2017-06-04 18:51:26 -04:00
|
|
|
protected:
|
|
|
|
void closeEvent (QCloseEvent *) override;
|
|
|
|
void keyPressEvent( QKeyEvent *e ) override;
|
|
|
|
|
2015-11-17 20:28:12 -05:00
|
|
|
private:
|
|
|
|
QSettings * m_settings;
|
2019-05-22 12:44:28 -04:00
|
|
|
float m_ave;
|
|
|
|
double 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
|