2021-11-30 16:59:42 -06:00
|
|
|
#pragma once
|
|
|
|
|
|
2022-03-19 15:49:40 -05:00
|
|
|
#include <QtCharts/QLineSeries>
|
2021-11-30 16:59:42 -06:00
|
|
|
#include <QtWidgets/QWidget>
|
|
|
|
|
#include "ui_SeerArrayVisualizerWidget.h"
|
|
|
|
|
|
|
|
|
|
class SeerArrayVisualizerWidget : public QWidget, protected Ui::SeerArrayVisualizerWidgetForm {
|
|
|
|
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit SeerArrayVisualizerWidget (QWidget* parent = 0);
|
|
|
|
|
~SeerArrayVisualizerWidget ();
|
|
|
|
|
|
|
|
|
|
void setVariableName (const QString& name);
|
|
|
|
|
QString variableName () const;
|
|
|
|
|
void setVariableAddress (const QString& address);
|
|
|
|
|
QString variableAddress () const;
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void evaluateVariableExpression (int expressionid, QString expression);
|
|
|
|
|
void evaluateMemoryExpression (int expressionid, QString address, int count);
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
void handleText (const QString& text);
|
|
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
|
void handleRefreshButton ();
|
|
|
|
|
void handleVariableNameLineEdit ();
|
|
|
|
|
void handleArrayDisplayFormatComboBox (int index);
|
|
|
|
|
void handleColumnCountSpinBox (int value);
|
2022-03-19 15:49:40 -05:00
|
|
|
void handleDataChanged ();
|
2021-11-30 16:59:42 -06:00
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
void writeSettings ();
|
|
|
|
|
void readSettings ();
|
|
|
|
|
void resizeEvent (QResizeEvent* event);
|
|
|
|
|
|
|
|
|
|
private:
|
2022-03-19 15:49:40 -05:00
|
|
|
QLineSeries* _series;
|
2021-11-30 16:59:42 -06:00
|
|
|
int _variableId;
|
|
|
|
|
int _memoryId;
|
|
|
|
|
};
|
|
|
|
|
|