From 297ea6f73fe5c482611cf4e0d72090df73d9c16f Mon Sep 17 00:00:00 2001 From: Xusheng Date: Mon, 13 Jul 2020 15:27:44 +0800 Subject: make the comment dialog non-modal --- ui/uicomment.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 ui/uicomment.h (limited to 'ui/uicomment.h') diff --git a/ui/uicomment.h b/ui/uicomment.h new file mode 100644 index 00000000..6fd74917 --- /dev/null +++ b/ui/uicomment.h @@ -0,0 +1,46 @@ +#pragma once + +#include "binaryninjaapi.h" +#include "uicontext.h" + +// these are only intended to be used for the ui +typedef enum +{ + FunctionComment, + AddressComment +}UICommentType; + +class UIComment +{ + public: + UICommentType type; + FunctionRef func; + BinaryViewRef data; + uint64_t address; + QString content; + + UIComment( UICommentType type, + FunctionRef func, + uint64_t address, + QString content): + type(type), func(func), + address(address), content(content) + {} + + UIComment( UICommentType type, + BinaryViewRef data, + uint64_t address, + QString content): + type(type), data(data), + address(address), content(content) + {} + + UIComment(const UIComment& rhs) + { + type = rhs.type; + func = rhs.func; + data = rhs.data; + address = rhs.address; + content = rhs.content; + } +}; \ No newline at end of file -- cgit v1.3.1