-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDlgNewMaterial.h
52 lines (36 loc) · 1.18 KB
/
DlgNewMaterial.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
#ifndef DLGNEWMATERIAL_H
#define DLGNEWMATERIAL_H
#include <QDialog>
#include "LinearViscoelasticMaterial.h"
namespace Ui {
class DlgNewMaterial;
}
class QTableWidgetItem;
class DlgNewMaterial : public QDialog
{
Q_OBJECT
public:
explicit DlgNewMaterial(QWidget *parent = nullptr);
~DlgNewMaterial();
void removeRows();
void setViscousTableFromVectors(std::vector<double> gi,std::vector<double> Taui);
//Ao apertar ACCEPT primeiro tem que validar os dados elastic, a viscousTab e os parametros WLF
//se qualquer um da false a variavel isValidMaterial = false
void validateElasticData();
void validateViscousData();
void validateWLFData();
public slots:
virtual void accept();
void setElasticDefault(int index);
void setRows(int index);
void setViscousDefault(int index);
void setWLFDefault(int index);
private:
Ui::DlgNewMaterial *ui;
int currentNumOfRows = 1;
QTableWidgetItem *dummyItem; //Para viscousTableWidget
bool isValidMaterial = true;
//TODO: Estes vetores devem ser substituidos por um objeto do tipo LinearViscoelastic
LinearViscoelasticMaterial defaultMaterial;
};
#endif // DLGNEWMATERIAL_H