functiontestwindow.h 1.08 KB
#ifndef FUNCTIONTESTWINDOW_H
#define FUNCTIONTESTWINDOW_H

#include <QMainWindow>
#include <QKeyEvent>

namespace Ui {
class FunctionTestWindow;
}

class FunctionTestWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit FunctionTestWindow(QWidget *parent = 0);
    ~FunctionTestWindow();

protected:
    void keyPressEvent(QKeyEvent *event);
    void keyReleaseEvent(QKeyEvent *event);

private slots:
    void on_burnerTestButton_clicked();

    void on_componentTestButton_clicked();

    void on_valveTestButton_clicked();

    void on_washTestButton_clicked();

    void on_fanTestButton_clicked();

    void on_gasTestButton_clicked();

    void on_upperGasTestButton_clicked();

    void on_lowerGasTestButton_clicked();

    void on_steamGasTestButton_clicked();

    void on_adjustBlowerFan_clicked();

private:
    Ui::FunctionTestWindow *ui;

    QWidget *pushed = NULL;

    void onEncoderLeft();
    void onEncoderRight();
    void onEncoderClicked(QWidget *clicked);
    bool readFromRpmFile(QMap<QString, uint32_t> &rpm_map, const QString &filename);
};

#endif // FUNCTIONTESTWINDOW_H