-
Notifications
You must be signed in to change notification settings - Fork 0
/
tendencias.h
49 lines (33 loc) · 1.02 KB
/
tendencias.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
44
45
46
47
48
49
#ifndef TENDENCIAS_H
#define TENDENCIAS_H
#include <QMainWindow>
#include "qcustomplot.h"
namespace Ui {
class Tendencias;
}
class Tendencias : public QMainWindow
{
Q_OBJECT
public:
explicit Tendencias(QWidget *parent = 0);
~Tendencias();
void setupSimpleDemo(QCustomPlot *customPlot);
void addplot(const QVector<double>& xVoltaje,const QVector<double>& yAmplitude);
void PlotData(const QVector<double>& yData, int graph);
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 graphClicked(QCPAbstractPlottable *plottable);
private:
Ui::Tendencias *ui;
void initActionsConnections();
};
#endif // TENDENCIAS_H