00001 /*************************************************************************** 00002 ** 00003 ** This file is part of dinverdc. 00004 ** 00005 ** This file may be distributed and/or modified under the terms of the 00006 ** GNU General Public License version 2 or 3 as published by the Free 00007 ** Software Foundation and appearing in the file LICENSE.GPL included 00008 ** in the packaging of this file. 00009 ** 00010 ** This file is distributed in the hope that it will be useful, but WITHOUT 00011 ** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 ** FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 00013 ** more details. 00014 ** 00015 ** You should have received a copy of the GNU General Public License 00016 ** along with this program. If not, see <http://www.gnu.org/licenses/>. 00017 ** 00018 ** See http://www.geopsy.org for more information. 00019 ** 00020 ** Created: 2010-05-18 00021 ** Authors: 00022 ** Marc Wathelet (LGIT, Grenoble, France) 00023 ** 00024 ***************************************************************************/ 00025 00026 #ifndef MAGNETOTELLURICTARGETWIDGET_H 00027 #define MAGNETOTELLURICTARGETWIDGET_H 00028 00029 #include <QGpGuiWave.h> 00030 00031 class MagnetoTelluricTargetWidget : public CurveBrowser 00032 { 00033 Q_OBJECT 00034 public: 00035 MagnetoTelluricTargetWidget(QWidget * parent=0); 00036 ~MagnetoTelluricTargetWidget(); 00037 00038 void initLayer(LineLayer * curveLayer); 00039 virtual void load(); 00040 00041 QList<MagnetoTelluricCurve> curves() const; 00042 void addCurve(const MagnetoTelluricCurve& curve); 00043 void addCurves(const QList<MagnetoTelluricCurve>& curves); 00044 private slots: 00045 void setComplexMode(int index); 00046 private: 00047 MagnetoTelluricCurve& curve(int index) const; 00048 void loadTarget(QString fileName); 00049 00050 QComboBox * _complexMode; 00051 MagnetoTelluricPointOptions * _pointOptions; 00052 }; 00053 00054 #endif // MAGNETOTELLURICTARGETWIDGET_H