#ifndef DIALOGSCENCE3_H
|
#define DIALOGSCENCE3_H
|
|
#include <QDialog>
|
#include <QtCharts/QChart>
|
#include <QtCharts/QBarSeries>
|
#include <QtCharts/QBarSet>
|
#include <QtCharts/QChartView>
|
#include <QDateTime>
|
#include <QLabel>
|
|
using namespace QtCharts;
|
|
namespace Ui {
|
class DialogScence3;
|
}
|
|
class DialogScence3 : public QDialog
|
{
|
Q_OBJECT
|
|
public:
|
explicit DialogScence3(QWidget *parent = nullptr);
|
~DialogScence3();
|
int bfull =0;
|
QSize oldsize;
|
int flag = 1;
|
int nPos=0;
|
int bNeedResize=0;
|
void InitDisplay();
|
void keyPressEvent(QKeyEvent *event) Q_DECL_OVERRIDE;
|
void ShowParams();
|
void DelayInit();
|
|
void setChartAttribute(QChart *chart, QString title);
|
QChart * CreateBarChart();
|
QChart * createPieChart();
|
QChart * createAreaChart();
|
QChart * createLineChart();
|
QChart * createSpLineChart();
|
QChart * createScatterChart();
|
void myDraw(QWidget * widget);
|
void resizeCtrls();
|
void resizeLabelFont(QLabel * label,int lines,const QString & color = QString());
|
|
protected:
|
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
|
bool eventFilter(QObject *, QEvent *) Q_DECL_OVERRIDE;
|
void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
|
|
private slots:
|
void timerProc();
|
|
private:
|
Ui::DialogScence3 *ui;
|
};
|
|
#endif // DIALOGSCENCE3_H
|