#ifndef DIALOGCAMERA_H
#define DIALOGCAMERA_H

#include <QDialog>
#include <IVrEyeDevice.h>

namespace Ui {
class DialogCamera;
}

class DialogCamera : public QDialog
{
    Q_OBJECT

public:
    explicit DialogCamera(IVrEyeDevice* pDevice, QWidget *parent = nullptr);
    ~DialogCamera();

private slots:
    void on_btn_camer_ok_clicked();
    void on_btn_camer_cancel_clicked();

private:
    // 初始化相机参数到界面
    void InitCameraParameters();
    
    // 应用界面参数到相机
    bool ApplyCameraParameters();

private:
    Ui::DialogCamera *ui;
    IVrEyeDevice*   m_pDevice = nullptr;
};

#endif // DIALOGCAMERA_H
