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();
|
|
|
|
|
|
|
|
void plotSpec();
|
|
|
|
void saveSettings();
|
|
|
|
|
|
|
|
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-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
|