-
Notifications
You must be signed in to change notification settings - Fork 0
/
graph.h
57 lines (48 loc) · 1.14 KB
/
graph.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
50
51
52
53
54
55
56
57
#ifndef GRAPH_H
#define GRAPH_H
#include <QWidget>
#include <QtGui>
#include <QDebug>
#include <QtCore>
#include <QtSql>
#include "qcustomplot.h"
#include "QMainWindow"
class Graph : public QMainWindow
{
Q_OBJECT
public:
explicit Graph(QMainWindow *parent = 0);
QCustomPlot* customPlot;
private:
Qt::GlobalColor getColor();
int xMax;
int yMax;
int counter;
int colorCounter;
QString databaseSti;
QSqlDatabase db;
signals:
void fileOpened();
public slots:
void exportGraph();
void addGraph(QString q);
void setXValue(int x);
void setYValue(int y);
void setDatabaseSti();
void enableBtn();
private slots:
void titleDoubleClick();
void axisLabelDoubleClick(QCPAxis* axis, QCPAxis::SelectablePart part);
void legendDoubleClick(QCPLegend* legend, QCPAbstractLegendItem* item);
void selectionChanged();
void mousePress();
void mouseWheel();
void addRandomGraph();
void removeSelectedGraph();
void removeAllGraphs();
void contextMenuRequest(QPoint pos);
void moveLegend();
void graphClicked(QCPAbstractPlottable *plottable);
void hideLegend();
};
#endif // GRAPH_H