-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPathfindingVisualizerApplication.h
More file actions
47 lines (40 loc) · 1.12 KB
/
PathfindingVisualizerApplication.h
File metadata and controls
47 lines (40 loc) · 1.12 KB
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
45
46
47
#include <QMainWindow>
#include <QApplication>
#include <QWidget>
#include <QComboBox>
#include <QPushButton>
#include <QCheckBox>
#include <QGridLayout>
#include <QObject>
#include <QMessageBox>
#include "Board.h"
#include "Algorithms/AlgorithmFactory.h"
#include "Analytics.h"
class PathfindingVisualizerApplication : public QMainWindow {
private:
Q_OBJECT
const int WIDTH = 1000;
const int HEIGHT = 600;
Board* board;
AlgorithmFactory *algoFactory;
QStringList algoList;
Algorithms *algo;
const bool defaultAnalyticsToggleState = true;
QCheckBox* checkBox;
QComboBox* algorithmSelector;
QPushButton* startButton;
QPushButton* clearButton;
QPushButton* resetButton;
QPushButton* undoButton;
void disableButtons();
void enableButtons();
private slots:
void handleStartClick();
void handleClearClick();
void handleResetClick();
void handleUndoClick();
void itemChanged(QString str);
public:
PathfindingVisualizerApplication();
void launch();
};