forked from cleroy8/PositionBasedDynamics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
46 lines (37 loc) · 1.2 KB
/
Copy pathmainwindow.h
File metadata and controls
46 lines (37 loc) · 1.2 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include "drawarea.h"
#include <QMainWindow>
#include <qcheckbox.h>
#include <qspinbox.h>
QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT // macro autorisant slot et signal
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow() override; // On peut rajouter override, car le destructeur est virtuel dans la classe parente
private:
Ui::MainWindow *ui; // Classe générée automatiquement à partir d’un fichier .ui décrivant le contenu de l’interface graphique
/// scene
DrawArea *draw_area;
/// button to reset the scene
QPushButton *reset_button;
/// check box to activate or desactivate random colors for the particles
QCheckBox *random_colors;
/// check box to activate or desactivate health points of the particles
QCheckBox *active_collisions;
/// choose how many health points the particles have
QLabel *label;
QSpinBox *health_number;
QPushButton *link_button;
const int nb_milliseconds = 10;
};
#endif // MAINWINDOW_H