dinverdc/AutocorrTargetWidget.h
Go to the documentation of this file.
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-27
00021 **  Authors:
00022 **    Marc Wathelet
00023 **    Marc Wathelet (LGIT, Grenoble, France)
00024 **
00025 ***************************************************************************/
00026 
00027 #ifndef AUTOCORRTARGETWIDGET_H
00028 #define AUTOCORRTARGETWIDGET_H
00029 
00030 #include <QGpGuiWave.h>
00031 
00032 class RingBrowser;
00033 
00034 class AutocorrTargetWidget : public ModalCurveBrowser
00035 {
00036   Q_OBJECT
00037 public:
00038   AutocorrTargetWidget(QWidget * parent=0);
00039   ~AutocorrTargetWidget();
00040 
00041   virtual void load();
00042   virtual void clear();
00043   virtual void setEditable(bool e);
00044 
00045   int count();
00046   void setLimits();
00047   AutocorrCurves curves();
00048   void addCurves(const AutocorrCurves& newCurves);
00049   ModalCurve& addCurve(int index);
00050 private slots:
00051   void setCurrentRing(int index);
00052   void removeRing(int index);
00053   void addRing();
00054   void setRingName(int index, QString name);
00055 private:
00056   int emptyRingCount() const;
00057   int addRing(const AutocorrRing& ring);
00058   void loadTarget(QString fileName);
00059   void loadCap(QString fileName);
00060   void loadCapError(QTextStream& s);
00061   void loadNaViewerReport(QString fileName);
00062   virtual void loadMultiColumns(const ColumnTextParser * parser, QString fileName);
00063 
00064   RingBrowser * _rings;
00065   GraphicSheet * _sheet;
00066   QVector<TextEdit *> _ringLabels;
00067   QVector<LineLayer *> _ringLayers;
00068 };
00069 
00070 #endif // AUTOCORRTARGETWIDGET_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines