electricmodelsettingwindow.h 968 Bytes
#ifndef ELECTRICMODELSETTINGWINDOW_H
#define ELECTRICMODELSETTINGWINDOW_H

#include <QMainWindow>
#include <QPushButton>

#include "config.h"

namespace Ui {
class ElectricModelSettingWindow;
}

class ElectricModelSettingWindow : public QMainWindow
{
    Q_OBJECT

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

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

private slots:
    void setModel(Define::model_type model);

    void on_e10Button_clicked();
    void on_e20Button_clicked();
    void on_e24Button_clicked();
    void on_e40Button_clicked();

    void on_backButton_clicked();

private:
    Ui::ElectricModelSettingWindow *ui;
    int selitem;

    QWidget *pushed = NULL;

    void onEncoderLeft();
    void onEncoderRight();
    void onEncoderClicked(QWidget *clicked);

    QPushButton *m_ctrChkedbtn;
};

#endif // ELECTRICMODELSETTINGWINDOW_H