/*****************************************************************************1* *2* Elmer, A Finite Element Software for Multiphysical Problems *3* *4* Copyright 1st April 1995 - , CSC - IT Center for Science Ltd., Finland *5* *6* This program is free software; you can redistribute it and/or *7* modify it under the terms of the GNU General Public License *8* as published by the Free Software Foundation; either version 2 *9* of the License, or (at your option) any later version. *10* *11* This program is distributed in the hope that it will be useful, *12* but WITHOUT ANY WARRANTY; without even the implied warranty of *13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *14* GNU General Public License for more details. *15* *16* You should have received a copy of the GNU General Public License *17* along with this program (in file fem/GPL-2); if not, write to the *18* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *19* Boston, MA 02110-1301, USA. *20* *21*****************************************************************************/2223/*****************************************************************************24* *25* ElmerGUIlogger *26* *27*****************************************************************************28* *29* Authors: Mikko Lyly, Juha Ruokolainen and Peter Råback *30* Small fixes: Boris Pek *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: 24 Aug 2009 *38* *39*****************************************************************************/4041#ifndef MAINWINDOW_H42#define MAINWONDOW_H4344#include <QMainWindow>45#include <QProcess>4647class QTextEdit;48class QMenu;49class QAction;5051class MainWindow : public QMainWindow52{53Q_OBJECT5455public:56MainWindow();57~MainWindow();5859private slots:60void startElmerGUISlot();61void saveAsSlot();62void printSlot();63void exitSlot();64void errorSlot(QProcess::ProcessError);65void finishedSlot(int, QProcess::ExitStatus);66void stdoutSlot();67void stderrSlot();68void startedSlot();69void stateChangedSlot(QProcess::ProcessState);7071private:72void createActions();73void createMenus();7475QMenu* fileMenu;76QAction* startElmerGUIAct;77QAction* saveAsAct;78QAction* printAct;79QAction* exitAct;80QTextEdit* textEdit;81QProcess* elmerGUI;8283};8485#endif // MAINWINDOW_H868788