Initial commit
This commit is contained in:
39
src/ui/mainwindow.h
Normal file
39
src/ui/mainwindow.h
Normal file
@ -0,0 +1,39 @@
|
||||
#ifndef MAINWINDOW_H
|
||||
#define MAINWINDOW_H
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <stdint.h>
|
||||
#include "../cameras.h"
|
||||
#include "cvimageviewer.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui { class MainWindow; }
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
std::vector<CvImageViewer*> viewers_;
|
||||
|
||||
signals:
|
||||
void sigCapture();
|
||||
void sigProfile(QString profileName);
|
||||
void sigChooseCameras();
|
||||
|
||||
public slots:
|
||||
|
||||
void addCamera(std::shared_ptr<Camera> camera);
|
||||
void refreshProfiles();
|
||||
void profileInconpatible(QString message);
|
||||
void removeCamera(std::shared_ptr<Camera> camera);
|
||||
|
||||
public:
|
||||
MainWindow(QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
CvImageViewer* mainImageViewer();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
};
|
||||
#endif // MAINWINDOW_H
|
Reference in New Issue
Block a user