2025-08-26 17:26:05 -05:00
|
|
|
// SPDX-FileCopyrightText: 2021 Ernie Pasveer <epasveer@att.net>
|
|
|
|
|
//
|
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
2022-08-06 17:06:39 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <QtWidgets/QWidget>
|
|
|
|
|
#include "ui_SeerStructVisualizerWidget.h"
|
|
|
|
|
|
|
|
|
|
class SeerStructVisualizerWidget : public QWidget, protected Ui::SeerStructVisualizerWidgetForm {
|
|
|
|
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit SeerStructVisualizerWidget (QWidget* parent = 0);
|
|
|
|
|
~SeerStructVisualizerWidget ();
|
|
|
|
|
|
|
|
|
|
void setVariableName (const QString& name);
|
|
|
|
|
QString variableName () const;
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void evaluateVariableExpression (int expressionid, QString expression);
|
2025-06-29 13:30:35 -05:00
|
|
|
void addMemoryVisualizer (QString expression);
|
|
|
|
|
void addArrayVisualizer (QString expression);
|
|
|
|
|
void addMatrixVisualizer (QString expression);
|
|
|
|
|
void addStructVisualizer (QString expression);
|
2022-08-06 17:06:39 -05:00
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
void handleText (const QString& text);
|
|
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
|
void handleRefreshButton ();
|
2022-09-25 20:06:56 -05:00
|
|
|
void handleHelpButton ();
|
2022-08-10 20:01:03 -05:00
|
|
|
void handleVariableNameLineEdit ();
|
2022-08-13 11:50:27 -05:00
|
|
|
void handleContextMenu (const QPoint& pos);
|
2022-08-06 17:06:39 -05:00
|
|
|
void handleItemEntered (QTreeWidgetItem* item, int column);
|
2022-08-07 12:49:21 -05:00
|
|
|
void handleItemExpanded (QTreeWidgetItem* item);
|
2022-08-06 17:06:39 -05:00
|
|
|
|
|
|
|
|
protected:
|
2022-08-07 12:49:21 -05:00
|
|
|
void handleItemCreate (QTreeWidgetItem* parentItem, const QString& value_text);
|
2022-08-06 17:06:39 -05:00
|
|
|
void writeSettings ();
|
|
|
|
|
void readSettings ();
|
|
|
|
|
void resizeEvent (QResizeEvent* event);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
int _variableId;
|
|
|
|
|
};
|
|
|
|
|
|