#ifndef DIALOGPLOTS_H #define DIALOGPLOTS_H #include #include #include #include #include #include #include "cmdlineparser.h" #include "tb_interface.h" #include "listen_thread.h" #include "spectrowidget.h" namespace Ui { class DialogPlots; } class DialogPlots : public QDialog { Q_OBJECT public: explicit DialogPlots(const TASKBUS::cmdlineParser * cmd,QWidget *parent = 0); ~DialogPlots() override; protected: void timerEvent(QTimerEvent *event) override; QVector flush_data(QByteArray package); private: const TASKBUS::cmdlineParser * m_cmd = nullptr; Ui::DialogPlots *ui; reciv_thread * m_rthread = nullptr; QMap m_subidxs; QVector m_chat_views; QVector m_char_axis_x; QVector m_char_axis_y; QVector m_chat_serials; QVector m_chat_spec; QVector m_chars; QMap m_plot_idxes; QVector m_plot_chans; QVector m_plot_types; QMap > m_plot_buffer; QMap m_plot_refresh; int tid = -1; int refid = -1; private slots: void deal_package(QByteArray); void on_pushButton_reset_clicked(); }; #endif // DIALOGPLOTS_H