mirror of
https://github.com/epasveer/seer.git
synced 2026-08-31 01:20:45 +08:00
59c5babfdd
Raise Logger or Tracker tab when new variable is added.
46 lines
2.0 KiB
C++
46 lines
2.0 KiB
C++
#pragma once
|
|
|
|
#include <QtWidgets/QWidget>
|
|
#include <QtCore/QString>
|
|
#include <QtCore/QSet>
|
|
#include "ui_SeerVariableLoggerBrowserWidget.h"
|
|
|
|
class SeerVariableLoggerBrowserWidget : public QWidget, protected Ui::SeerVariableLoggerBrowserWidgetForm {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SeerVariableLoggerBrowserWidget (QWidget* parent = 0);
|
|
~SeerVariableLoggerBrowserWidget ();
|
|
|
|
public slots:
|
|
void handleText (const QString& text);
|
|
void handleSessionTerminated ();
|
|
void handleEvaluateVariableExpression (int expressionid, QString expression);
|
|
void addVariableExpression (QString expression);
|
|
|
|
private slots:
|
|
void handleAddLineEdit ();
|
|
void handleDeleteToolButton ();
|
|
void handleDeleteAllToolButton ();
|
|
void handleItemEntered (QTreeWidgetItem* item, int column);
|
|
void handleItemExpanded (QTreeWidgetItem* item);
|
|
void handleItemCollapsed (QTreeWidgetItem* item);
|
|
void handleContextMenu (const QPoint& pos);
|
|
|
|
signals:
|
|
void evaluateVariableExpression (int expressionid, QString expression);
|
|
void addMemoryVisualize (QString expression);
|
|
void addArrayVisualize (QString expression);
|
|
void addStructVisualize (QString expression);
|
|
void raiseTab ();
|
|
|
|
protected:
|
|
void handleItemCreate (QTreeWidgetItem* parentItem, const QString& id_text, const QString& timestamp_text, const QString& name_text, const QString& value_text);
|
|
|
|
private:
|
|
QSet<int> _ids;
|
|
|
|
};
|
|
|