Path: blob/devel/ElmerGUI/Application/src/meshcontrol.h
3203 views
/*****************************************************************************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* ElmerGUI meshcontrol *26* *27*****************************************************************************28* *29* Authors: Mikko Lyly, Juha Ruokolainen and Peter Råback *30* Email: [email protected] *31* Web: http://www.csc.fi/elmer *32* Address: CSC - IT Center for Science Ltd. *33* Keilaranta 14 *34* 02101 Espoo, Finland *35* *36* Original Date: 15 Mar 2008 *37* *38*****************************************************************************/3940#ifndef MESHCONTROL_H41#define MESHCONTROL_H4243#include <QDomDocument>44#include "projectio.h"45#include "meshtype.h"46#include "ui_meshcontrol.h"4748class MeshControl : public QDialog49{50Q_OBJECT5152public:53MeshControl(QWidget *parent = 0);54~MeshControl();5556int generatorType;57QString elementCodesString;58QString tetlibControlString;59QString nglibMaxH;60QString nglibFineness;61QString nglibBackgroundmesh;62QString elmerGridControlString;6364Ui::MeshcontrolForm ui;6566bool tetlibPresent;67bool nglibPresent;6869void appendToProject(QDomDocument*, QDomElement*);70void readFromProject(QDomDocument*, QDomElement*);7172public slots:73void defaultControls();7475private slots:76void defineElementCodesString(const QString &sq);77void tetlibClicked();78void nglibClicked();79void elmerGridClicked();80void defineTetlibControlString(const QString &qs);81void defineNglibMaxH(const QString &qs);82void defineNglibFineness(const QString &qs);83void defineNglibBackgroundmesh(const QString &qs);84void defineElmerGridControlString(const QString &qs);8586private:87ProjectIO projectIO;88};8990#endif919293