Version Bump
Remember Save paths add missing files
This commit is contained in:
parent
42da1746b5
commit
3c788f57c2
20 changed files with 1168 additions and 7 deletions
64
src/ui/plot.h
Executable file
64
src/ui/plot.h
Executable file
|
|
@ -0,0 +1,64 @@
|
|||
#ifndef PLOT_H
|
||||
#define PLOT_H
|
||||
|
||||
#include<QVector>
|
||||
#include<QAction>
|
||||
#include<QWidget>
|
||||
|
||||
#include "qcustomplot/qcustomplot.h"
|
||||
#include "regessioncalculator.h"
|
||||
#include "statisticsdialog.h"
|
||||
#include "utilites.h"
|
||||
|
||||
class Plot : public QCustomPlot
|
||||
{
|
||||
private:
|
||||
std::vector<RegessionCalculator> regressions;
|
||||
|
||||
QMenu graphContextMenu;
|
||||
|
||||
int graphPointLimit = 10000;
|
||||
QAction actionStatistics;
|
||||
QAction actionAdd_Regression;
|
||||
QAction actionDelete_Regression;
|
||||
QAction actionExport_Selection;
|
||||
QAction actionSetValueString;
|
||||
|
||||
public:
|
||||
Plot(QWidget* parent = nullptr);
|
||||
~Plot();
|
||||
|
||||
void setLabel(QString label);
|
||||
|
||||
void clear();
|
||||
void setLimit(int graphPointLimit);
|
||||
int getLimit();
|
||||
|
||||
void setMaxValue(double maxVal);
|
||||
|
||||
signals:
|
||||
void sigSaveCsv();
|
||||
|
||||
public slots:
|
||||
void addPoints(QVector<double> keys, QVector<double> values);
|
||||
void saveCsv(QString fileName);
|
||||
void saveCsvDiag();
|
||||
void showStatistics();
|
||||
void deleteRegression();
|
||||
void addRegression();
|
||||
void askForValueString();
|
||||
|
||||
void addData(QVector<double> keys, QVector<double> values, bool inOrder = false, bool ignoreLimit = false);
|
||||
void addData(double key, double value, bool ignoreLimit = false);
|
||||
|
||||
protected:
|
||||
virtual void mousePressEvent(QMouseEvent *event);
|
||||
virtual void mouseReleaseEvent(QMouseEvent *event);
|
||||
virtual bool event(QEvent *event);
|
||||
|
||||
private:
|
||||
void addMainGraph();
|
||||
};
|
||||
|
||||
#endif // PLOT_H
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue