123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- #ifndef MAINWINDOW_H
- #define MAINWINDOW_H
- #include <QMainWindow>
- #include <QtCharts>
- #include <QLineSeries>
- #include "ivchartproc.h"
- #include "dialogselect.h"
- #include "dialogsetaxisx.h"
- #include "dialogivctocsv.h"
- QT_BEGIN_NAMESPACE
- namespace Ui { class MainWindow; }
- QT_END_NAMESPACE
- struct CUShow
- {
- public:
- std::string mstrname;
- QLineSeries * mlineseries;
- QValueAxis * mpaxisY;
- QColor mcolor;
- double mfRangeMin = 0.0;
- double mfRangeMax = 1.0;
- };
- class MainWindow : public QMainWindow
- {
- Q_OBJECT
- public:
- MainWindow(QWidget *parent = nullptr);
- ~MainWindow();
- private slots:
- void onTimer();
- private:
- Ui::MainWindow *ui;
- QChart * m_chart;
- QChartView * mchartview;
- ivchartproc * mpivchartproc;
- std::vector<std::string> mvectorused;
- std::vector<CUShow> mvectorCUShow;
- QValueAxis * mpAxisX;
- QSet<int> mPressKeys;
- bool mbViewPause = false;
- double AXIS_X_SEL[6] = {1,5,10,30,60,300};
- int mnDefAxisXIndex = 2;
- std::string mstrTitle = "ADC IV Char View ";
- int mnTitleMode = 0;
- private:
- QColor GetRandColor();
- public:
- void resizeEvent(QResizeEvent *event);
- void keyPressEvent(QKeyEvent *event) Q_DECL_OVERRIDE;
- void keyReleaseEvent(QKeyEvent *event) Q_DECL_OVERRIDE;
- private slots:
- void on_actionSelect_Data_triggered();
- void on_actionSet_AxisX_triggered();
- void on_actionivc_to_csv_triggered();
- void on_actionHelp_triggered();
- };
- #endif // MAINWINDOW_H
|