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 newproject * 27 * * 28 ***************************************************************************** 29 * * 30 * Author: Saeki Takayuki * 31 * Original Date: 15 Feb 2020 * 32 * * 33 *****************************************************************************/ 34 35 #ifndef NEWPROJECTDIALOG_H 36 #define NEWPROJECTDIALOG_H 37 38 #include <QWidget> 39 #include "ui_newproject.h" 40 41 class NewProjectDialog : public QDialog 42 { 43 Q_OBJECT 44 45 public: 46 NewProjectDialog(QWidget *parent = 0); 47 ~NewProjectDialog(); 48 49 Ui::newProjectDialog ui; 50 51 void setDirectories(QString& deaultDir, QString& extraDir); 52 53 signals: 54 55 private slots: 56 void elmerMeshToggled(bool); 57 void geometryFileToggled(bool); 58 void laterToggled(bool); 59 void projectDirClicked(bool); 60 void meshDirClicked(bool); 61 void geometryFileClicked(bool); 62 void addSolverClicked(bool); 63 void removeSolverClicked(bool); 64 void selectedSolverChanged(int); 65 void unselectedSolverChanged(int); 66 67 private: 68 QString defaultDirName; 69 QString extraDirPath; 70 }; 71 72 #endif // NEWPROJECTDIALOG_H 73