-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathw_widget_Simulation.h
executable file
·55 lines (40 loc) · 1.08 KB
/
w_widget_Simulation.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
45
46
47
48
49
50
51
52
53
54
55
#ifndef W_WIDGET_SIMULATION_H
#define W_WIDGET_SIMULATION_H
class w_MainWindow;
class h_Simulation;
class graph_Simulation;
#include <QWidget>
namespace Ui {
class w_widget_Simulation;
}
class w_widget_Simulation : public QWidget
{
Q_OBJECT
public:
explicit w_widget_Simulation(QWidget *parent = 0);
~w_widget_Simulation();
void init(w_MainWindow* aMainWindow, h_Simulation* aH_simulation, graph_Simulation* aGraph_simulation);
public slots:
void updateIterationValue(int iteration);
void updateTimeOut(int time);
void pauseButton(bool var);
void pause();
void resume();
void loadBestNetFromFile();
void addFood(bool checked);
void addPoison(bool checked);
void clearAllItems();
void reInitAllItems();
void reIniRobotsPos();
void changePathLength(int newLength);
void saveWholeViewToFile();
void saveCurViewToFile();
private:
void setScene();
private:
Ui::w_widget_Simulation *ui;
w_MainWindow* mainWindow;
h_Simulation* h_simulation;
graph_Simulation* graph_sim;
};
#endif // W_WIDGET_SIMULATION_H