40 lines
766 B
C
40 lines
766 B
C
|
|
#ifndef DIALOGDEVICECONFIG_H
|
||
|
|
#define DIALOGDEVICECONFIG_H
|
||
|
|
|
||
|
|
#include <QDialog>
|
||
|
|
|
||
|
|
namespace Ui {
|
||
|
|
class DialogDeviceConfig;
|
||
|
|
}
|
||
|
|
|
||
|
|
class BagThreadPositionPresenter;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @brief 设备配置对话框
|
||
|
|
*
|
||
|
|
* 配置相机IP、基准距离、协议服务端IP、大小端
|
||
|
|
*/
|
||
|
|
class DialogDeviceConfig : public QDialog
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
explicit DialogDeviceConfig(QWidget *parent = nullptr);
|
||
|
|
~DialogDeviceConfig();
|
||
|
|
|
||
|
|
void SetPresenter(BagThreadPositionPresenter* presenter);
|
||
|
|
|
||
|
|
private slots:
|
||
|
|
void on_btnSave_clicked();
|
||
|
|
void on_btnCancel_clicked();
|
||
|
|
|
||
|
|
private:
|
||
|
|
void loadConfig();
|
||
|
|
|
||
|
|
private:
|
||
|
|
Ui::DialogDeviceConfig* ui;
|
||
|
|
BagThreadPositionPresenter* m_presenter = nullptr;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // DIALOGDEVICECONFIG_H
|