Files
VX5_KRO_GearPump/setnumdlg.h
T

52 lines
886 B
C++

#ifndef SETNUMDLG_H
#define SETNUMDLG_H
#include <QDialog>
namespace Ui {
class SetNumDlg;
}
class SetNumDlg : public QDialog
{
Q_OBJECT
public:
explicit SetNumDlg(QWidget *parent = 0);
~SetNumDlg();
bool getIsSet();
int getNum();
/**
* @brief 设置对话框中,重置计数器1/2 的两个按钮的可用性
*
* @param cnt1Btn 重置计数器1 按钮的可用性
* @param cnt2Btn 重置计数器2 按钮的可用性
*/
void setCNTResetBtnsEnable(bool cnt1Btn, bool cnt2Btn);
private slots:
void on_btn_confirm_clicked();
void on_btn_clearProductCnt_clicked();
private:
Ui::SetNumDlg *ui;
// 是否采用预设值
bool isSet = false;
unsigned int num = 0;
signals:
void sig_setNum();
void sig_clearCnt();
void sig_resetCNT1();
void sig_resetCNT2();
};
#endif // SETNUMDLG_H