Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/ElmerGUIlogger/src/mainwindow.h
3196 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
* ElmerGUIlogger *
27
* *
28
*****************************************************************************
29
* *
30
* Authors: Mikko Lyly, Juha Ruokolainen and Peter Råback *
31
* Small fixes: Boris Pek *
32
* Email: [email protected] *
33
* Web: http://www.csc.fi/elmer *
34
* Address: CSC - IT Center for Science Ltd. *
35
* Keilaranta 14 *
36
* 02101 Espoo, Finland *
37
* *
38
* Original Date: 24 Aug 2009 *
39
* *
40
*****************************************************************************/
41
42
#ifndef MAINWINDOW_H
43
#define MAINWONDOW_H
44
45
#include <QMainWindow>
46
#include <QProcess>
47
48
class QTextEdit;
49
class QMenu;
50
class QAction;
51
52
class MainWindow : public QMainWindow
53
{
54
Q_OBJECT
55
56
public:
57
MainWindow();
58
~MainWindow();
59
60
private slots:
61
void startElmerGUISlot();
62
void saveAsSlot();
63
void printSlot();
64
void exitSlot();
65
void errorSlot(QProcess::ProcessError);
66
void finishedSlot(int, QProcess::ExitStatus);
67
void stdoutSlot();
68
void stderrSlot();
69
void startedSlot();
70
void stateChangedSlot(QProcess::ProcessState);
71
72
private:
73
void createActions();
74
void createMenus();
75
76
QMenu* fileMenu;
77
QAction* startElmerGUIAct;
78
QAction* saveAsAct;
79
QAction* printAct;
80
QAction* exitAct;
81
QTextEdit* textEdit;
82
QProcess* elmerGUI;
83
84
};
85
86
#endif // MAINWINDOW_H
87
88