-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.hpp
67 lines (53 loc) · 1.39 KB
/
mainwindow.hpp
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
56
57
58
59
60
61
62
63
64
65
66
67
/* mainwindow.hpp
// Author:Soumitra Goswami
// Date: 05/01/2018
// Description: Here we add functionality to our UI setup done via the QT Designer
// I also translate the SIGNALS from UI and generate my own SIGNALS to be picked up by "sphsimulation.h".
//
*/
#ifndef MAINWINDOW_HPP
#define MAINWINDOW_HPP
#include <QWidget>
#include "ui_mainwindow.h"
namespace Ui {
class Mainwindow;
}
class Mainwindow : public QWidget {
Q_OBJECT
public:
Mainwindow(QWidget * parent = Q_NULLPTR);
~Mainwindow();
// Recieve SIGNALs from UI via these SLOTs
public slots:
void winQuit();
void settimestep();
void setparticleCount();
void setmass();
void setradius();
void setgravity();
void setpresConst();
void setpresGamma();
void setdensity();
void setviscConst();
void setviscE();
void setWallSticky();
// bool pauseSim();
// Transmit these SIGNALs to be picked up by the "sphsimulation.h" SLOTs
signals:
void timeStepChanged(float t);
void pCountChanged(size_t pCount);
void massChanged(float m);
void radiusChanged(float r);
void gravityChanged(float gravY);
void presConstChanged(float pConst);
void presGammaChanged(float gamma);
void densityChanged(float rho);
void viscConstChanged(float vConst);
void viscEChanged(float vE);
void wallStickyChanged(float wSticky);
protected:
void keyPressEvent(QKeyEvent *event);
private:
Ui::Mainwindow *ui;
};
#endif // MAINWINDOW_HPP