Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/ElmerGUI/Application/src/bodypropertyeditor.h
3203 views
1
/*****************************************************************************
2
* *
3
* Elmer, A Finite Element Software for Multiphysical Problems *
4
* *
5
* Copyright 1st April 1995 - , CSC - IT Center for Science Ltd., Finland *
6
* *
7
* This program is free software; you can redistribute it and/or *
8
* modify it under the terms of the GNU General Public License *
9
* as published by the Free Software Foundation; either version 2 *
10
* of the License, or (at your option) any later version. *
11
* *
12
* This program is distributed in the hope that it will be useful, *
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15
* GNU General Public License for more details. *
16
* *
17
* You should have received a copy of the GNU General Public License *
18
* along with this program (in file fem/GPL-2); if not, write to the *
19
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
20
* Boston, MA 02110-1301, USA. *
21
* *
22
*****************************************************************************/
23
24
/*****************************************************************************
25
* *
26
* ElmerGUI bodypropertyeditor *
27
* *
28
*****************************************************************************
29
* *
30
* Authors: Mikko Lyly, Juha Ruokolainen and Peter Råback *
31
* Email: [email protected] *
32
* Web: http://www.csc.fi/elmer *
33
* Address: CSC - IT Center for Science Ltd. *
34
* Keilaranta 14 *
35
* 02101 Espoo, Finland *
36
* *
37
* Original Date: 15 Mar 2008 *
38
* *
39
*****************************************************************************/
40
41
#ifndef BODYPROPERTYEDITOR_H
42
#define BODYPROPERTYEDITOR_H
43
44
#include <QWidget>
45
#include <QDomDocument>
46
#include "projectio.h"
47
#include "dynamiceditor.h"
48
#include "ui_bodypropertyeditor.h"
49
50
class BodyPropertyEditor : public QDialog
51
{
52
Q_OBJECT
53
54
signals:
55
void BodyMaterialComboChanged(BodyPropertyEditor *, QString);
56
void BodyInitialComboChanged(BodyPropertyEditor *, QString);
57
void BodyForceComboChanged(BodyPropertyEditor *, QString);
58
void BodyEquationComboChanged(BodyPropertyEditor *, QString);
59
60
public:
61
BodyPropertyEditor(QWidget *parent = 0);
62
~BodyPropertyEditor();
63
64
Ui::bodyPropertyDialog ui;
65
DynamicEditor *material;
66
DynamicEditor *initial;
67
DynamicEditor *force;
68
DynamicEditor *equation;
69
70
void appendToProject(QDomDocument*, QDomElement*);
71
void readFromProject(QDomDocument*, QDomElement*);
72
73
bool touched;
74
75
public slots:
76
void materialComboChanged(QString);
77
void initialComboChanged(QString);
78
void forceComboChanged(QString);
79
void equationComboChanged(QString);
80
81
private slots:
82
void applySlot();
83
void discardSlot();
84
85
private:
86
ProjectIO projectIO;
87
};
88
89
#endif // BODYPROPERTYEDITOR_H
90
91