2018-03-16 21:46:57 +00:00
|
|
|
#ifndef GRAPHWIDGET_H
|
|
|
|
#define GRAPHWIDGET_H
|
|
|
|
|
2019-03-27 08:24:54 +00:00
|
|
|
#include "MemoryDockWidget.h"
|
2019-06-29 06:28:35 +00:00
|
|
|
#include <QLineEdit>
|
2018-03-16 21:46:57 +00:00
|
|
|
|
|
|
|
class MainWindow;
|
|
|
|
class DisassemblerGraphView;
|
|
|
|
|
2019-03-27 08:24:54 +00:00
|
|
|
class GraphWidget : public MemoryDockWidget
|
2018-03-16 21:46:57 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2019-02-19 15:56:50 +00:00
|
|
|
explicit GraphWidget(MainWindow *main, QAction *action = nullptr);
|
2019-06-18 13:02:41 +00:00
|
|
|
~GraphWidget() override {}
|
2019-02-24 07:15:40 +00:00
|
|
|
|
2019-03-27 08:24:54 +00:00
|
|
|
DisassemblerGraphView *getGraphView() const;
|
2019-02-24 07:15:40 +00:00
|
|
|
|
2019-06-18 13:02:41 +00:00
|
|
|
static QString getWidgetType();
|
|
|
|
|
2019-02-24 07:15:40 +00:00
|
|
|
signals:
|
2019-04-14 12:18:24 +00:00
|
|
|
void graphClosed();
|
2019-03-27 08:24:54 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
QWidget *widgetToFocusOnRaise() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void closeEvent(QCloseEvent *event) override;
|
|
|
|
|
2019-06-18 13:02:41 +00:00
|
|
|
QString getWindowTitle() const override;
|
2019-06-29 06:28:35 +00:00
|
|
|
void prepareHeader();
|
2019-06-18 13:02:41 +00:00
|
|
|
|
2019-03-27 08:24:54 +00:00
|
|
|
DisassemblerGraphView *graphView;
|
2019-06-29 06:28:35 +00:00
|
|
|
QLineEdit *header = nullptr;
|
2018-03-16 21:46:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GRAPHWIDGET_H
|