-
Notifications
You must be signed in to change notification settings - Fork 0
/
widget.h
80 lines (67 loc) · 1.83 KB
/
widget.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QtCharts>
#include <QFontDialog>
#include <QDebug>
#include <QString>
#include <QPicture>
#include <QPaintEvent>
#include <QCloseEvent>
#include "QLine.h"
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE
class Widget : public QWidget
{
Q_OBJECT
public:
Widget(QWidget *parent = nullptr);
QWidget *Large;
~Widget();
QChart *chart;
QFile *file;
int *code=new int();
QBarSet *set0;//统计图条棒系列
QPieSeries *Pseries=NULL;
Qline *Lseries=NULL;
QBarSeries *Bseries=NULL;
bool *tag=new bool(true);
QBarCategoryAxis *axisBX=NULL;
QValueAxis *axisY=new QValueAxis();
QValueAxis *axisX=new QValueAxis();
int *Pietag=new int(1);
double MinX;
double MinY;
double MaxX;
double MaxY;
int curBR;
int curBC;
int curPC;
int curLR;
int curLC;
int *VirtulSum;
bool *largetag = new bool(1);
QPushButton *large2;
bool *XYtag=new bool(true);
void LARGE(); //大页面
void SAVE(); //保存图片
void BARCHANGED(); //条形图表格变化
void PIECHANGED(); //扇形图表格变化
void LINECHANGED(); //折线图表格变化
void ROWCHANGED(); //行数变化
void COLUMNCHANGED(); //列变化
void DATAPAGECHANGED(); //数据页面切换
void DIVIDE(); //扇形分离
void DRAWCHART(); //绘图触发
void BarCharts(); //绘条形图
void PieCharts(); //绘扇形图
void LineCharts(); //绘折线图
void ChartSet(); //图设置
void BXYSet(QAbstractSeries *); //条形图坐标轴
void LXYSet(Qline *); //折线图坐标轴
void InitP(QPieSeries *); //虚圆构造
private:
Ui::Widget *ui;
};
#endif // WIDGET_H