SciFigs/CurveProperties.h
Go to the documentation of this file.
00001 /***************************************************************************
00002 **
00003 **  This file is part of SciFigs.
00004 **
00005 **  This library is free software; you can redistribute it and/or
00006 **  modify it under the terms of the GNU Lesser General Public
00007 **  License as published by the Free Software Foundation; either
00008 **  version 2.1 of the License, or (at your option) any later version.
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 Lesser General Public
00013 **  License for more details.
00014 **
00015 **  You should have received a copy of the GNU Lesser General Public
00016 **  License along with this library; if not, write to the Free Software
00017 **  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00018 **
00019 **  See http://www.geopsy.org for more information.
00020 **
00021 **  Created: 2013-02-20
00022 **  Authors:
00023 **    Marc Wathelet (ISTerre, Grenoble, France)
00024 **
00025 ***************************************************************************/
00026 
00027 #ifndef CURVEPROPERTIES_H
00028 #define CURVEPROPERTIES_H
00029 
00030 #include <QGpCoreTools.h>
00031 
00032 #include "ui_CurveProperties.h"
00033 #include "SciFigsDLLExport.h"
00034 
00035 namespace SciFigs {
00036 
00037   class CurveBrowserProxy;
00038   class LineLayer;
00039 
00040   class SCIFIGS_EXPORT CurveProperties : public QWidget, private Ui::CurveProperties
00041   {
00042     Q_OBJECT
00043   public:
00044     CurveProperties(QWidget * parent=0);
00045     ~CurveProperties();
00046 
00047     void setProxy(CurveBrowserProxy * proxy);
00048     CurveBrowserProxy * proxy() const {return _proxy;}
00049 
00050     void setCurrentLayer(LineLayer * layer) {_currentLayer=layer;}
00051     void setEditable(bool e);
00052 
00053     void showLog();
00054     void save();
00055     void resample(int n, double minimum, double maximum, SamplingOptions options, bool distance);
00056     void cut(double minimum, double maximum, SamplingOptions options);
00057     void smooth(double minimum, double maximum, SamplingOptions options);
00058     void curveChanged();
00059   private slots:
00060     void applyAllSelected();
00061     void on_curveName_textChanged(QString text);
00062     void on_visibleBut_toggled(bool checked);
00063   signals:
00064     void curveModified();
00065     void nameChanged(QString n);
00066   private:
00067     CurveBrowserProxy * _proxy;
00068     LineLayer * _currentLayer;
00069   };
00070 
00071 } // namespace SciFigs
00072 
00073 #endif // CURVEPROPERTIES_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines