Import upstream version 0.99.2
[fmit.git] / src / modules / GLFT.h
index 5d27cd3..249c60d 100644 (file)
@@ -45,8 +45,12 @@ class GLFT : public QGLWidget, public View
 
        bool m_start_move_mouse;
        int m_press_x, m_press_y;
-       int m_x, m_y;
-       double m_z;
+    double m_press_minf, m_press_maxf;
+
+    double m_minf, m_maxf; // [Hz]
+    double m_minA, m_maxA; // [dB or amplitude depending on ]
+    void resetaxis();
+    QString m_text;
 
   public:
        GLFT(QWidget* parent);
@@ -56,18 +60,16 @@ class GLFT : public QGLWidget, public View
 
        void refreshGraph();
 
-       double m_zp_factor;
+       double m_os;
+    void setSamplingRate(int sr);
 
        // settings
-       QAction* setting_autoScale;
        QAction* setting_db_scale;
-       QSpinBox* setting_spinNumComponents;
-       virtual void save();
-       virtual void load();
-       virtual void clearSettings();
+       QSpinBox* setting_winlen;
 
   public slots:
-       void spinNumComponentsChanged(int num);
+       void spinWinLengthChanged(int num);
+    void dBScaleChanged(bool db);
        void initializeGL();
        void paintGL();
        void resizeGL( int w, int h );