mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-22 12:28:51 +00:00
3545f059f1
* Use QDockWidget::toggleViewAction instead of custom solution. * Improve new dock placement.
39 lines
699 B
C++
39 lines
699 B
C++
#ifndef GRAPHWIDGET_H
|
|
#define GRAPHWIDGET_H
|
|
|
|
#include "MemoryDockWidget.h"
|
|
#include <QLineEdit>
|
|
|
|
class MainWindow;
|
|
class DisassemblerGraphView;
|
|
|
|
class GraphWidget : public MemoryDockWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit GraphWidget(MainWindow *main);
|
|
~GraphWidget() override {}
|
|
|
|
DisassemblerGraphView *getGraphView() const;
|
|
|
|
static QString getWidgetType();
|
|
|
|
signals:
|
|
void graphClosed();
|
|
|
|
protected:
|
|
QWidget *widgetToFocusOnRaise() override;
|
|
|
|
private:
|
|
void closeEvent(QCloseEvent *event) override;
|
|
|
|
QString getWindowTitle() const override;
|
|
void prepareHeader();
|
|
|
|
DisassemblerGraphView *graphView;
|
|
QLineEdit *header = nullptr;
|
|
};
|
|
|
|
#endif // GRAPHWIDGET_H
|