38 lines
717 B
C++
38 lines
717 B
C++
#ifndef PHOTOCAPTURE_H
|
|
#define PHOTOCAPTURE_H
|
|
|
|
#include <QWidget>
|
|
#include <QSpinBox>
|
|
#include <QPushButton>
|
|
#include <QProcess>
|
|
#include <QDir>
|
|
#include "phd.h"
|
|
|
|
class PhotoCapture : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
QSpinBox *_exposureTime;
|
|
QSpinBox *_numberOfExposures;
|
|
QSpinBox *_ditherFreq;
|
|
QPushButton *_startCapture;
|
|
QProcess *_process;
|
|
QDir _outputDir;
|
|
QTimer *_timer;
|
|
PHD *_phd;
|
|
int _photoCount;
|
|
public:
|
|
explicit PhotoCapture(QWidget *parent = nullptr);
|
|
~PhotoCapture();
|
|
signals:
|
|
|
|
public slots:
|
|
void startCaputre();
|
|
private slots:
|
|
void processFinished(int exit);
|
|
void selectDir();
|
|
void readStdout();
|
|
void readStderr();
|
|
};
|
|
|
|
#endif // PHOTOCAPTURE_H
|