2026-03-28 10:49:55 +08:00

62 lines
1.6 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include "CameraOperationThread.h"
namespace Ui {
class Widget;
}
class Widget : public QWidget
{
Q_OBJECT
public:
explicit Widget(QWidget *parent = nullptr);
~Widget();
public slots:
/* @brief:在界面上显示图像
* @param[in] img:QImage图像
*
* @brief:Diasplay an image on user interface
* @param[in] img:image */
void onImageGrabbed(const QImage& img);
private slots:
/* @brief:扫描相机按钮的槽函数
*
* @brief:Slot function of probe push button. */
void on_pushButton_probe_clicked();
/* @brief:打开/关闭相机按钮的槽函数
*
* @brief:Slot function of open / close camera push button. */
void on_pushButton_openCamera_clicked();
/* @brief:开始/停止采集按钮的槽函数
*
* @brief:Slot function of start / stop acquisitio push button. */
void on_pushButton_startGrab_clicked();
/* @brief:处理设备操作线程结束信号
* @param[in] nType:操作类型
* @param[in] bSuccess:是否成功
*
* @brief:Handle control thread finish signal
* @param[in] nType:type of control
* @param[in] bSuccess:whether success */
void onControlFinish(ITK_DEVICE_CONTROL_TYPE nType, bool bSuccess);
/* @brief:处理选择采集卡配置的信号
*
* @brief:Slot function of select grab config file. */
QString onSelectGrabConfig();
private:
Ui::Widget *ui;
DeviceControlThread* mCtrlThread;
};
#endif // WIDGET_H