summaryrefslogtreecommitdiff
path: root/ui/commentdialog.h
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2020-07-13 15:27:44 +0800
committerXusheng <xusheng@vector35.com>2020-08-11 10:19:23 +0800
commit297ea6f73fe5c482611cf4e0d72090df73d9c16f (patch)
treeb6b8c47d5088f1de2f955d2b89363e22a932fbd2 /ui/commentdialog.h
parente5e4fe424ca345b8bba1200b9cac8a9765bc7c9d (diff)
make the comment dialog non-modal
Diffstat (limited to 'ui/commentdialog.h')
-rw-r--r--ui/commentdialog.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/ui/commentdialog.h b/ui/commentdialog.h
index 803fcd3b..ddff7f06 100644
--- a/ui/commentdialog.h
+++ b/ui/commentdialog.h
@@ -5,14 +5,21 @@
#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 QString& comment = "");
- QString getComment();
+ CommentDialog(QWidget* parent, const UIComment& comment);
+ QString getNewComment();
+ QString getCurrentComment();
+ const FunctionRef& getCommentBackingFunction();
+ const BinaryViewRef& getCommentBackingData();
+ UICommentType getCommentType();
+ uint64_t getCommentAddress();
};