-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
SimpleMaterialPropertyBuilder.h
51 lines (38 loc) · 1.36 KB
/
SimpleMaterialPropertyBuilder.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
#ifndef SIMPLEMATERIALPROPERTYBUILDER_H
#define SIMPLEMATERIALPROPERTYBUILDER_H
// File modified by Deepak Samuel on 25 Sep 2019
#include <QWidget>
#include <SimpleDatabaseManager.h>
#include <G4Material.hh>
namespace Ui {
class SimpleMaterialPropertyBuilder;
}
class SimpleMaterialPropertyBuilder : public QWidget
{
Q_OBJECT
public:
static SimpleMaterialPropertyBuilder* instance;
static SimpleMaterialPropertyBuilder *getInstance() {
if (!instance)
instance = new SimpleMaterialPropertyBuilder(nullptr);
return instance;
}
~SimpleMaterialPropertyBuilder();
void ShowUI();
void SetDataBaseManager(SimpleDatabaseManager* dbM);
void SetMaterialProperties(G4Material* mat, QString props);
private slots:
void on_addProperty_clicked();
void on_add_const_property_clicked();
void on_done_clicked();
void on_g4_materials_currentIndexChanged(const QString &arg1);
void on_g4_const_property_currentTextChanged(const QString &arg1);
void on_g4_const_prop_value_valueChanged(const QString &arg1);
void on_g4_property_currentTextChanged(const QString &arg1);
private:
explicit SimpleMaterialPropertyBuilder(QWidget *parent = nullptr);
Ui::SimpleMaterialPropertyBuilder *ui;
SimpleDatabaseManager* dbManager;
QStringList commands;
};
#endif // SIMPLEMATERIALPROPERTYBUILDER_H