#ifndef CONFIGMASTERVOLUMEDLG_H #define CONFIGMASTERVOLUMEDLG_H #include #include #include #include "config.h" using namespace Define; namespace Ui { class ConfigMasterVolumeDlg; } class ConfigVolumeDlg : public QDialog { Q_OBJECT public: explicit ConfigVolumeDlg(QWidget *parent = 0, ConfigType type=config_invalid); ~ConfigVolumeDlg(); private slots: void on_ctrBtnOk_clicked(); void on_ctrBtnCancel_clicked(); void on_ctrBtnMinus_clicked(); void on_ctrBtnPlus_clicked(); protected: void keyReleaseEvent(QKeyEvent* event); void keyPressEvent(QKeyEvent* event); private: Ui::ConfigMasterVolumeDlg *ui; int m_nCurVol; int m_nPrevVol; ConfigType m_cfgType; QVector m_vectorTabOrder; }; #endif // CONFIGMASTERVOLUMEDLG_H