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-09-01 13:58:59 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <QtWidgets/QWidget>
|
|
|
|
|
#include "ui_SeerMemoryVisualizerWidget.h"
|
|
|
|
|
|
|
|
|
|
class SeerMemoryVisualizerWidget : public QWidget, protected Ui::SeerMemoryVisualizerWidgetForm {
|
|
|
|
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit SeerMemoryVisualizerWidget (QWidget* parent = 0);
|
|
|
|
|
~SeerMemoryVisualizerWidget ();
|
|
|
|
|
|
|
|
|
|
void setVariableName (const QString& name);
|
|
|
|
|
QString variableName () const;
|
|
|
|
|
void setVariableAddress (const QString& address);
|
|
|
|
|
QString variableAddress () const;
|
2024-11-10 12:40:43 -06:00
|
|
|
void setMemoryLength (const QString& length);
|
|
|
|
|
QString memoryLength () const;
|
2021-09-01 13:58:59 -05:00
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void evaluateVariableExpression (int expressionid, QString expression);
|
|
|
|
|
void evaluateMemoryExpression (int expressionid, QString address, int count);
|
2022-05-26 21:32:07 -05:00
|
|
|
void evaluateAsmExpression (int expressionid, QString address, int count, int mode);
|
2021-09-01 13:58:59 -05:00
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
void handleText (const QString& text);
|
|
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
|
void handleRefreshButton ();
|
2022-09-25 20:06:56 -05:00
|
|
|
void handleHelpButton ();
|
2021-09-01 13:58:59 -05:00
|
|
|
void handleVariableNameLineEdit ();
|
2024-11-10 12:40:43 -06:00
|
|
|
void handleMemoryLengthLineEdit ();
|
2021-09-01 13:58:59 -05:00
|
|
|
void handleMemoryDisplayFormatComboBox (int index);
|
|
|
|
|
void handleCharDisplayFormatComboBox (int index);
|
|
|
|
|
void handleColumnCountSpinBox (int value);
|
|
|
|
|
void handlePrintButton ();
|
|
|
|
|
void handleSaveButton ();
|
|
|
|
|
|
|
|
|
|
protected:
|
2021-09-21 18:56:15 -05:00
|
|
|
void writeSettings ();
|
|
|
|
|
void readSettings ();
|
|
|
|
|
void resizeEvent (QResizeEvent* event);
|
|
|
|
|
|
2021-09-01 13:58:59 -05:00
|
|
|
private:
|
|
|
|
|
int _variableId;
|
|
|
|
|
int _memoryId;
|
2024-11-10 12:40:43 -06:00
|
|
|
int _memoryLengthId;
|
2022-05-26 21:32:07 -05:00
|
|
|
int _asmId;
|
2021-09-01 13:58:59 -05:00
|
|
|
};
|
|
|
|
|
|