-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathplot2d_AWTY.h
43 lines (34 loc) · 1.2 KB
/
plot2d_AWTY.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef PLOT2D_AWTY_H
#define PLOT2D_AWTY_H
#include <QDialog>
#include "wstring.h"
#include "qcustomplot.h"
#include <string>
namespace Ui {
class Plot2D;
}
class Plot2D_AWTY : public QDialog
{
Q_OBJECT
public:
explicit Plot2D_AWTY(QString xlabel, QString ylabel, double xstart, double xend, double ystart, double yend, QString title, QWidget *parent = 0, bool newlambda = 0);
void initialization_AWTY(QString xlabel, QString ylabel, double xstart, double xend, double ystart, double yend, QString title, bool newlambda);
~Plot2D_AWTY();
void Plot2DCurves_AWTY(QVector<double> x, QVector<double> y, QString qtname, QColor color);
void Clear2DCurves_AWTY();
private slots:
void titleDoubleClick(QMouseEvent *event, QCPPlotTitle *title);
void axisLabelDoubleClick(QCPAxis* axis, QCPAxis::SelectablePart part);
void legendDoubleClick(QCPLegend* legend, QCPAbstractLegendItem* item);
void selectionChanged();
void mousePress();
void mouseWheel();
void removeSelectedGraph();
void removeAllGraphs();
void contextMenuRequest(QPoint pos);
void moveLegend();
void showPointToolTip(QMouseEvent *event);
private:
Ui::Plot2D *ui;
};
#endif // PLOT2D_AWTY_H