40 lines
760 B
C++
40 lines
760 B
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
#include <QPixmap>
|
|
#include "idscam.h"
|
|
#include "statsview.h"
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui {
|
|
class MainWindow;
|
|
}
|
|
QT_END_NAMESPACE
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MainWindow(QWidget *parent = nullptr);
|
|
~MainWindow();
|
|
|
|
private:
|
|
Ui::MainWindow *ui;
|
|
StatsView stats;
|
|
|
|
IdsCam cam{};
|
|
void handle_cam_selector(int i);
|
|
void handle_pixel_format_selector(int i);
|
|
void handle_new_exposure_time();
|
|
void handle_new_frame_rate();
|
|
void handle_new_gain();
|
|
void handle_new_trig(int i);
|
|
void handle_start_button();
|
|
QPixmap liveview_pixmap{};
|
|
|
|
public slots:
|
|
void visualize_new_frame(QImage img);
|
|
};
|
|
#endif // MAINWINDOW_H
|