Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
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 }
00072
00073 #endif // CURVEPROPERTIES_H