From c8851b8a56f1d983c93695f31cac98fa36466086 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Thu, 19 Sep 2024 16:21:07 -0400 Subject: Add tag text input in tag creation dialog --- ui/flowgraphwidget.h | 2 +- ui/linearview.h | 2 +- ui/tagtypelist.h | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/flowgraphwidget.h b/ui/flowgraphwidget.h index 3ed2886e..0985bc75 100644 --- a/ui/flowgraphwidget.h +++ b/ui/flowgraphwidget.h @@ -360,7 +360,7 @@ class BINARYNINJAUIAPI FlowGraphWidget : void bookmarkAddress(); void unbookmarkAddress(); void tagAddress(); - void tagAddressAccepted(TagTypeRef tt); + void tagAddressAccepted(TagTypeRef tt, const QString& text); void manageAddressTags(); void mergeVariables(); void mergeVariablesAtCurrentLocation(); diff --git a/ui/linearview.h b/ui/linearview.h index aaa4a9ac..138b326c 100644 --- a/ui/linearview.h +++ b/ui/linearview.h @@ -335,7 +335,7 @@ private Q_SLOTS: void bookmarkAddress(); void unbookmarkAddress(); void tagAddress(); - void tagAddressAccepted(TagTypeRef tt); + void tagAddressAccepted(TagTypeRef tt, const QString& text); void manageAddressTags(); void createExternalLink(); diff --git a/ui/tagtypelist.h b/ui/tagtypelist.h index 284bbfe1..cc99dcb9 100644 --- a/ui/tagtypelist.h +++ b/ui/tagtypelist.h @@ -173,6 +173,7 @@ class BINARYNINJAUIAPI TagTypeSelectDialog : public QDialog BinaryViewRef m_data; TagTypeDialogModel* m_model; QComboBox* m_tagTypeList; + QLineEdit* m_tagTextInput; private Q_SLOTS: void select(); @@ -181,5 +182,5 @@ class BINARYNINJAUIAPI TagTypeSelectDialog : public QDialog TagTypeSelectDialog(QWidget* parent, BinaryViewRef data); Q_SIGNALS: - void selected(TagTypeRef tagType); + void selected(TagTypeRef tagType, QString text); }; -- cgit v1.3.1