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 : 2005-10-31 00021 ** Authors: 00022 ** Marc Wathelet 00023 ** Marc Wathelet (LGIT, Grenoble, France) 00024 ** 00025 ***************************************************************************/ 00026 00027 #ifndef TARGETLISTWIDGET_H 00028 #define TARGETLISTWIDGET_H 00029 00030 #include <QtGui> 00031 00032 #include <QGpCoreWave.h> 00033 #include <DinverDCCore.h> 00034 00035 #include "ui_TargetListWidget.h" 00036 00037 class ParamGroundModelWidget; 00038 class DispersionTargetWidget; 00039 class EllipticityCurveTargetWidget; 00040 class EllipticityPeakTargetWidget; 00041 class AutocorrTargetWidget; 00042 class RefractionTargetWidget; 00043 class MagnetoTelluricTargetWidget; 00044 00045 class TargetListWidget : public QWidget, public Ui::TargetListWidget 00046 { 00047 Q_OBJECT 00048 public: 00049 TargetListWidget(QWidget* parent=0, Qt::WFlags fl=0); 00050 00051 TargetList * targetList(); 00052 void clear(); 00053 void setTitles(const QString& name); 00054 public slots: 00055 void on_dispSelect_toggled(bool); 00056 void on_autocorrSelect_toggled(bool); 00057 void on_ellCurveSelect_toggled(bool); 00058 void on_ellPeakSelect_toggled(bool); 00059 void on_refraVpSelect_toggled(bool); 00060 void on_refraVsSelect_toggled(bool); 00061 void on_magnetoTelluricSelect_toggled(bool); 00062 00063 void on_dispSet_clicked(); 00064 void on_autocorrSet_clicked(); 00065 void on_ellCurveSet_clicked(); 00066 void on_ellPeakSet_clicked(); 00067 void on_refraVpSet_clicked(); 00068 void on_refraVsSet_clicked(); 00069 void on_magnetoTelluricSet_clicked(); 00070 00071 void updateInfo(); 00072 void setParamProfiles(ParamGroundModelWidget * p); 00073 void setFrom(TargetList * tl); 00074 00075 void setEditable(bool e); 00076 signals: 00077 void targetChanged(); 00078 protected: 00079 // Target widgets 00080 DispersionTargetWidget * _dispWidget; 00081 EllipticityCurveTargetWidget * _ellCurveWidget; 00082 EllipticityPeakTargetWidget * _ellPeakWidget; 00083 AutocorrTargetWidget * _autocorrWidget; 00084 RefractionTargetWidget * _refraVpWidget; 00085 RefractionTargetWidget * _refraVsWidget; 00086 MagnetoTelluricTargetWidget * _magnetoTelluricWidget; 00087 }; 00088 00089 #endif // QTBTARGETLISTWIDGET_H