2019-10-04 23:37:27 +08:00
|
|
|
#ifndef EXDLGLOCATE_H
|
|
|
|
#define EXDLGLOCATE_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
class ExCustomMainWin;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ExDlgLocate;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ExDlgLocate : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ExDlgLocate(QWidget *parent = nullptr);
|
|
|
|
~ExDlgLocate();
|
|
|
|
|
2019-10-08 00:18:34 +08:00
|
|
|
void setSpinRange(int rowCount, int colCount); //设置spin的设定(最大)值
|
|
|
|
void setSpinValue(int rowNo, int colNo); //设置spin的初始值
|
2019-10-04 23:37:27 +08:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_btnSetText_clicked();
|
2019-10-08 00:18:34 +08:00
|
|
|
void on_btnClose_clicked();
|
2019-10-04 23:37:27 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::ExDlgLocate *ui;
|
2019-10-08 00:18:34 +08:00
|
|
|
|
|
|
|
// QWidget interface
|
|
|
|
protected:
|
|
|
|
virtual void closeEvent(QCloseEvent *event) override; //窗口关闭事件,关闭时释放本窗口
|
|
|
|
virtual void showEvent(QShowEvent *event) override; //窗口显示事件
|
2019-10-04 23:37:27 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // EXDLGLOCATE_H
|