提交 | 用户 | age
|
d3687b
|
1 |
#ifndef DIALOGSCENCE3_H |
Q |
2 |
#define DIALOGSCENCE3_H |
|
3 |
|
|
4 |
#include <QDialog> |
|
5 |
#include <QtCharts/QChart> |
|
6 |
#include <QtCharts/QBarSeries> |
|
7 |
#include <QtCharts/QBarSet> |
|
8 |
#include <QtCharts/QChartView> |
|
9 |
#include <QDateTime> |
|
10 |
#include <QLabel> |
|
11 |
|
|
12 |
using namespace QtCharts; |
|
13 |
|
|
14 |
namespace Ui { |
|
15 |
class DialogScence3; |
|
16 |
} |
|
17 |
|
|
18 |
class DialogScence3 : public QDialog |
|
19 |
{ |
|
20 |
Q_OBJECT |
|
21 |
|
|
22 |
public: |
|
23 |
explicit DialogScence3(QWidget *parent = nullptr); |
|
24 |
~DialogScence3(); |
|
25 |
int bfull =0; |
|
26 |
QSize oldsize; |
|
27 |
int flag = 1; |
|
28 |
int nPos=0; |
|
29 |
int bNeedResize=0; |
|
30 |
void InitDisplay(); |
|
31 |
void keyPressEvent(QKeyEvent *event) Q_DECL_OVERRIDE; |
|
32 |
void ShowParams(); |
|
33 |
void DelayInit(); |
|
34 |
|
|
35 |
void setChartAttribute(QChart *chart, QString title); |
|
36 |
QChart * CreateBarChart(); |
|
37 |
QChart * createPieChart(); |
|
38 |
QChart * createAreaChart(); |
|
39 |
QChart * createLineChart(); |
|
40 |
QChart * createSpLineChart(); |
|
41 |
QChart * createScatterChart(); |
|
42 |
void myDraw(QWidget * widget); |
|
43 |
void resizeCtrls(); |
|
44 |
void resizeLabelFont(QLabel * label,int lines,const QString & color = QString()); |
|
45 |
|
|
46 |
protected: |
|
47 |
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE; |
|
48 |
bool eventFilter(QObject *, QEvent *) Q_DECL_OVERRIDE; |
|
49 |
void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE; |
|
50 |
|
|
51 |
private slots: |
|
52 |
void timerProc(); |
|
53 |
|
|
54 |
private: |
|
55 |
Ui::DialogScence3 *ui; |
|
56 |
}; |
|
57 |
|
|
58 |
#endif // DIALOGSCENCE3_H |