labplot  2.8.2
About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.
  Fossies Dox: labplot-2.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

XYDataReductionCurveDock.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : XYDataReductionCurveDock.h
3  Project : LabPlot
4  --------------------------------------------------------------------
5  Copyright : (C) 2016 Stefan Gerlach (stefan.gerlach@uni.kn)
6  Copyright : (C) 2017 Alexander Semke (alexander.semke@web.de)
7  Description : widget for editing properties of data reduction curves
8 
9  ***************************************************************************/
10 
11 /***************************************************************************
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * *
18  * This program is distributed in the hope that it will be useful, *
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21  * GNU General Public License for more details. *
22  * *
23  * You should have received a copy of the GNU General Public License *
24  * along with this program; if not, write to the Free Software *
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
26  * Boston, MA 02110-1301 USA *
27  * *
28  ***************************************************************************/
29 
30 #ifndef XYDATAREDUCTIONCURVEDOCK_H
31 #define XYDATAREDUCTIONCURVEDOCK_H
32 
35 #include "ui_xydatareductioncurvedockgeneraltab.h"
36 
37 class XYAnalysisCurve;
38 class TreeViewComboBox;
39 class QStatusBar;
40 
42  Q_OBJECT
43 
44 public:
45  explicit XYDataReductionCurveDock(QWidget *parent, QStatusBar *sb);
47  void setupGeneral() override;
48 
49 private:
50  void initGeneralTab() override;
52  void updateTolerance();
53  void updateTolerance2();
54 
55  Ui::XYDataReductionCurveDockGeneralTab uiGeneralTab;
56  QStatusBar* statusBar; // main status bar to display progress
60 
63  bool m_dateTimeRange{false};
64 
65 protected:
66  void setModel() override;
67 
68 private slots:
69  //SLOTs for changes triggered in XYDataReductionCurveDock
70  //general tab
71  void dataSourceTypeChanged(int);
72  void dataSourceCurveChanged(const QModelIndex&);
73  void xDataColumnChanged(const QModelIndex&);
74  void yDataColumnChanged(const QModelIndex&);
75  void autoRangeChanged();
76  void xRangeMinChanged(double);
77  void xRangeMaxChanged(double);
78  void xRangeMinDateTimeChanged(const QDateTime&);
79  void xRangeMaxDateTimeChanged(const QDateTime&);
80  void typeChanged(int);
81  void autoToleranceChanged();
82  void toleranceChanged(double);
83  void autoTolerance2Changed();
84  void tolerance2Changed(double);
85 
86  void recalculateClicked();
87  void enableRecalculate() const;
88 
89  //SLOTs for changes triggered in XYCurve
90  //General-Tab
97  void dataChanged();
98  void curveVisibilityChanged(bool);
99 };
100 
101 #endif
Base class of all persistent objects in a Project.
Interface definition for data with column logic.
Provides a QTreeView in a QComboBox.
Base class for all analysis curves.
Provides a widget for editing the properties of the XYCurves (2D-curves) currently selected in the pr...
Definition: XYCurveDock.h:46
A 2D-curve, provides an interface for editing many properties of the curve.
Definition: XYCurve.h:46
Provides a widget for editing the properties of the XYDataReductionCurves (2D-curves defined by an da...
void curveDataSourceCurveChanged(const XYCurve *)
void curveYDataColumnChanged(const AbstractColumn *)
void xDataColumnChanged(const QModelIndex &)
void xRangeMaxDateTimeChanged(const QDateTime &)
void setCurves(QList< XYCurve * >)
XYDataReductionCurve::DataReductionData m_dataReductionData
void yDataColumnChanged(const QModelIndex &)
void curveDataReductionDataChanged(const XYDataReductionCurve::DataReductionData &)
void dataSourceCurveChanged(const QModelIndex &)
TreeViewComboBox * cbDataSourceCurve
XYDataReductionCurve * m_dataReductionCurve
Ui::XYDataReductionCurveDockGeneralTab uiGeneralTab
void curveXDataColumnChanged(const AbstractColumn *)
void xRangeMinDateTimeChanged(const QDateTime &)
void curveDescriptionChanged(const AbstractAspect *)
XYDataReductionCurveDock(QWidget *parent, QStatusBar *sb)
void curveDataSourceTypeChanged(XYAnalysisCurve::DataSourceType)
A xy-curve defined by a data reduction.