UpLowLimp/ZBD_IIIDL_S_Project/Src/PopDialog/festotalparamdialog.h

47 lines
818 B
C
Raw Normal View History

2024-11-25 17:15:44 +08:00
#ifndef FESTOTALPARAMDIALOG_H
#define FESTOTALPARAMDIALOG_H
#include <QDialog>
namespace Ui {
class FesTotalParamDialog;
}
class FesTotalParamDialog : public QDialog
{
Q_OBJECT
public:
explicit FesTotalParamDialog(QWidget *parent = nullptr);
~FesTotalParamDialog();
void setTitleAndUnit(QString title,QString unit);
int getValue();
void setValue(int value);
void setRange(int min,int max);
protected:
void paintEvent(QPaintEvent *event);
virtual void changeEvent(QEvent* event);
private slots:
void on_cancel_Btn_clicked();
void on_confirm_Btn_clicked();
void on_minus_Btn_clicked();
void on_plus_Btn_clicked();
void on_slider_valueChanged(int value);
private:
Ui::FesTotalParamDialog *ui;
int m_value;
};
#endif // FESTOTALPARAMDIALOG_H