summaryrefslogtreecommitdiff
path: root/ui/commentdialog.h
blob: ddff7f06cb2cad8082b1a90ff4d0db611441353a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

#include <QtWidgets/QDialog>
#include <QtWidgets/QComboBox>
#include "binaryninjaapi.h"
#include "dialogtextedit.h"
#include "uicontext.h"
#include "uicomment.h"

class BINARYNINJAUIAPI CommentDialog: public QDialog
{
	Q_OBJECT

	DialogTextEdit* m_comment;
	UIComment m_uicomment;

public:
	CommentDialog(QWidget* parent, const UIComment& comment);
	QString getNewComment();
	QString getCurrentComment();
	const FunctionRef& getCommentBackingFunction();
	const BinaryViewRef& getCommentBackingData();
	UICommentType getCommentType();
	uint64_t getCommentAddress();
};