-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
44 lines (36 loc) · 1 KB
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#pragma once
#include "image.h"
#include "imagecomparator.h"
#include "imagedatabase.h"
#include "screenshotmaker.h"
#include <QMainWindow>
#include <QPushButton>
#include <QScrollArea>
#include <QGridLayout>
#include <QLabel>
class MainWindow : public QMainWindow {
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
private:
void createScrollArea(QVector<Image> images);
void fillGrid(QVector<Image> images);
void clearGrid();
void updateGrid(QVector<Image> images);
void compareImagesParallel(Image pixmap1, Image pixmap2, ImageDatabase* idb, ImageComparator* ic);
ImageDatabase* imageDatabase;
ScreenshotMaker* screenshotMaker;
ImageComparator* imageComparator;
QVector<QThread*> workerThreads;
QPushButton *launchButton;
QScrollArea *scrollArea;
QWidget *scrollAreaWidget;
QGridLayout *gridLayout;
signals:
void screenshotTaken();
public slots:
void onScreenShotTaken();
};
#endif // MAINWINDOW_H