summaryrefslogtreecommitdiff
path: root/widgets/fastgraph.h
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2018-12-19 22:58:32 +0100
committerChristoph Berg <myon@debian.org>2018-12-19 22:58:32 +0100
commite0737c56c1e384e05064a0c6e1ac46979371041b (patch)
treea0123d694a2d36c43dabdf0a3907392fce11d457 /widgets/fastgraph.h
parentb4aebf2d137b892f53503b13785ecae900062ff7 (diff)
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'widgets/fastgraph.h')
-rw-r--r--widgets/fastgraph.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/widgets/fastgraph.h b/widgets/fastgraph.h
new file mode 100644
index 00000000..7ed32671
--- /dev/null
+++ b/widgets/fastgraph.h
@@ -0,0 +1,52 @@
+#ifndef FASTGRAPH_H_
+#define FASTGRAPH_H_
+
+#include <QDialog>
+#include <QScopedPointer>
+
+namespace Ui {
+ class FastGraph;
+}
+
+class QSettings;
+class QCloseEvent;
+class QKeyEvent;
+
+class FastGraph : public QDialog
+{
+ Q_OBJECT
+
+public:
+ explicit FastGraph(QSettings *, QWidget *parent = 0);
+ ~FastGraph ();
+
+ void plotSpec(bool diskData, int UTCdisk);
+ void saveSettings();
+ void setTRPeriod(int n);
+ void setMode(QString mode);
+
+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();
+
+protected:
+ void closeEvent (QCloseEvent *) override;
+ void keyPressEvent( QKeyEvent *e ) override;
+
+private:
+ QSettings * m_settings;
+ float m_ave;
+ qint32 m_TRperiod;
+
+ QScopedPointer<Ui::FastGraph> ui;
+};
+
+extern float fast_green[703];
+extern int fast_jh;
+
+#endif // FASTGRAPH_H