gasmodelsettingwindow.h 1.05 KB
#ifndef GASMODELSETTINGWINDOW_H
#define GASMODELSETTINGWINDOW_H

#include <QMainWindow>
#include <QPushButton>

#include "config.h"

namespace Ui {
class GasModelSettingWindow;
}

class GasModelSettingWindow : public QMainWindow
{
    Q_OBJECT

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

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

private slots:
    void setModel(Define::model_type model);
    void on_lpg10Button_clicked();
    void on_lng10Button_clicked();
    void on_lpg20Button_clicked();
    void on_lng20Button_clicked();
    void on_lpg24Button_clicked();
    void on_lng24Button_clicked();
    void on_lpg40Button_clicked();
    void on_lng40Button_clicked();

    void on_backButton_clicked();

private:
    Ui::GasModelSettingWindow *ui;
    uint32_t selitem;

    QWidget *pushed = NULL;

    void onEncoderLeft();
    void onEncoderRight();
    void onEncoderClicked(QWidget *clicked);
    QPushButton* m_ctrChkedBtn;
};

#endif // GASMODELSETTINGWINDOW_H