2025-08-26 17:26:05 -05:00
|
|
|
// SPDX-FileCopyrightText: 2021 Ernie Pasveer <epasveer@att.net>
|
|
|
|
|
//
|
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
2021-11-30 16:59:42 -06:00
|
|
|
#pragma once
|
|
|
|
|
|
2022-03-24 15:04:18 -05:00
|
|
|
#include <QtCharts/QXYSeries>
|
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 ();
|
|
|
|
|
|
2022-06-05 14:53:05 -05:00
|
|
|
void setAVariableName (const QString& name);
|
|
|
|
|
QString aVariableName () const;
|
|
|
|
|
void setAVariableAddress (const QString& address);
|
|
|
|
|
QString aVariableAddress () const;
|
2024-11-23 15:00:36 -06:00
|
|
|
void setAVariableLength (const QString& length);
|
|
|
|
|
QString aVariableLength () const;
|
|
|
|
|
void setAVariableOffset (const QString& offset);
|
|
|
|
|
QString aVariableOffset () const;
|
|
|
|
|
void setAVariableStride (const QString& stride);
|
|
|
|
|
QString aVariableStride () const;
|
2022-05-02 18:32:44 -05:00
|
|
|
|
2022-06-05 14:53:05 -05:00
|
|
|
void setBVariableName (const QString& name);
|
|
|
|
|
QString bVariableName () const;
|
|
|
|
|
void setBVariableAddress (const QString& address);
|
|
|
|
|
QString bVariableAddress () const;
|
2024-11-23 15:00:36 -06:00
|
|
|
void setBVariableLength (const QString& length);
|
|
|
|
|
QString bVariableLength () const;
|
|
|
|
|
void setBVariableOffset (const QString& offset);
|
|
|
|
|
QString bVariableOffset () const;
|
|
|
|
|
void setBVariableStride (const QString& stride);
|
|
|
|
|
QString bVariableStride () const;
|
2021-11-30 16:59:42 -06:00
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void evaluateVariableExpression (int expressionid, QString expression);
|
|
|
|
|
void evaluateMemoryExpression (int expressionid, QString address, int count);
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
void handleText (const QString& text);
|
|
|
|
|
|
|
|
|
|
protected slots:
|
2022-06-05 14:53:05 -05:00
|
|
|
void handleaRefreshButton ();
|
|
|
|
|
void handlebRefreshButton ();
|
2022-09-25 20:06:56 -05:00
|
|
|
void handleHelpButton ();
|
2022-06-05 14:53:05 -05:00
|
|
|
void handleaVariableNameLineEdit ();
|
|
|
|
|
void handlebVariableNameLineEdit ();
|
2024-11-21 18:12:02 -06:00
|
|
|
void handleaElementLengthLineEdit ();
|
|
|
|
|
void handlebElementLengthLineEdit ();
|
|
|
|
|
void handleaElementOffsetLineEdit ();
|
|
|
|
|
void handlebElementOffsetLineEdit ();
|
|
|
|
|
void handleaElementStrideLineEdit ();
|
|
|
|
|
void handlebElementStrideLineEdit ();
|
2022-06-05 14:53:05 -05:00
|
|
|
void handleaArrayDisplayFormatComboBox (int index);
|
|
|
|
|
void handlebArrayDisplayFormatComboBox (int index);
|
2022-06-06 11:19:49 -05:00
|
|
|
void handleaAxisComboBox (int index);
|
|
|
|
|
void handlebAxisComboBox (int index);
|
2022-03-19 15:49:40 -05:00
|
|
|
void handleDataChanged ();
|
2022-03-21 17:37:53 -05:00
|
|
|
void handleSplitterMoved (int pos, int index);
|
|
|
|
|
void handleSeriesHovered (const QPointF& point, bool state);
|
|
|
|
|
void handleTitleLineEdit ();
|
|
|
|
|
void handlePointsCheckBox ();
|
|
|
|
|
void handleLabelsCheckBox ();
|
2022-03-24 15:04:18 -05:00
|
|
|
void handleLineTypeButtonGroup ();
|
2026-05-31 13:43:38 -05:00
|
|
|
void handleThemeChanged ();
|
2021-11-30 16:59:42 -06:00
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
void writeSettings ();
|
|
|
|
|
void readSettings ();
|
|
|
|
|
void resizeEvent (QResizeEvent* event);
|
|
|
|
|
|
|
|
|
|
private:
|
2026-08-13 10:16:28 +02:00
|
|
|
void readaMemory ();
|
|
|
|
|
void readbMemory ();
|
2022-06-06 11:19:49 -05:00
|
|
|
void createASeries ();
|
|
|
|
|
void createBSeries ();
|
|
|
|
|
|
|
|
|
|
QXYSeries* _aSeries;
|
|
|
|
|
QXYSeries* _bSeries;
|
2022-06-05 14:53:05 -05:00
|
|
|
int _aVariableId;
|
|
|
|
|
int _bVariableId;
|
|
|
|
|
int _aMemoryId;
|
2024-11-23 15:00:36 -06:00
|
|
|
int _aLengthId;
|
2024-11-21 18:12:02 -06:00
|
|
|
int _aOffsetId;
|
|
|
|
|
int _aStrideId;
|
2024-11-23 15:00:36 -06:00
|
|
|
int _bMemoryId;
|
|
|
|
|
int _bLengthId;
|
|
|
|
|
int _bOffsetId;
|
2024-11-21 18:12:02 -06:00
|
|
|
int _bStrideId;
|
2021-11-30 16:59:42 -06:00
|
|
|
};
|
|
|
|
|
|