File indexing completed on 2024-04-28 03:43:17

0001 /*
0002     SPDX-FileCopyrightText: 2017 Jasem Mutlaq <mutlaqja@ikarustech.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef DSLRINFODIALOG_H
0008 #define DSLRINFODIALOG_H
0009 
0010 #include <QDialog>
0011 
0012 #include <indidevapi.h>
0013 
0014 #include "ui_dslrinfo.h"
0015 
0016 #include "indi/indicamera.h"
0017 
0018 namespace Ekos
0019 {
0020 class Capture;
0021 }
0022 
0023 class DSLRInfo : public QDialog, public Ui::DSLRInfo
0024 {
0025         Q_OBJECT
0026 
0027     public:
0028         explicit DSLRInfo(QWidget *parent, ISD::Camera *ccd);
0029 
0030     protected slots:
0031         void save();
0032 
0033     signals:
0034         void infoChanged();
0035 
0036     private:
0037         ISD::Camera *currentCCD = nullptr;
0038         int sensorMaxWidth = 0, sensorMaxHeight = 0;
0039         double sensorPixelW = 0, sensorPixelH = 0;
0040 
0041         friend class Ekos::Capture;
0042 };
0043 
0044 #endif