Path: blob/devel/ElmerGUI/Application/twod/curveeditor.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 CurveEditor *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*****************************************************************************/39#ifndef CURVEEDITOR_H40#define CURVEEDITOR_H4142#include <QTabWidget>4344class QTableWidget;45class RenderArea;4647class CurveEditor : public QTabWidget48{49Q_OBJECT5051public:52CurveEditor(QWidget *parent = 0);53~CurveEditor();5455void setRenderArea(RenderArea *renderArea);56void addPoint(int idx, double x, double y);57void addCurve(int in, int out, int pts, int *p);58void modifyPoint(int idx, double x, double y);59void clearAll();60void addPoint();61void addCurve();62void deletePoint();63void deleteCurve();6465signals:66void statusMessage(QString message);6768private slots:69void cCellChanged(int row, int col);70void pCellChanged(int row, int col);7172private:73QTableWidget *pTable;74QTableWidget *cTable;75RenderArea *renderArea;7677};7879#endif // CURVEEDITOR_H808182