diff options
| author | Brian Potchik <brian@vector35.com> | 2025-10-22 15:13:27 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2025-10-22 15:13:27 -0400 |
| commit | dd993ac110b3d098ac2388374b67e45eb4b9bf19 (patch) | |
| tree | baccf6b22c5e0aa9be95229795a80d9fe3c0370f /ui | |
| parent | 551738c693b52b8c383eab629fbc9d81d04d4c4b (diff) | |
Add interactive mode support to the container browser.
Diffstat (limited to 'ui')
| -rw-r--r-- | ui/containerbrowser.h | 2 | ||||
| -rw-r--r-- | ui/passwordedit.h | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/ui/containerbrowser.h b/ui/containerbrowser.h index 515a2836..289dc7c7 100644 --- a/ui/containerbrowser.h +++ b/ui/containerbrowser.h @@ -95,6 +95,8 @@ class BINARYNINJAUIAPI ContainerBrowser : public QDialog void connectSignals(); void updatePreviewForIndex(const QModelIndex& proxyIndex); bool requiresPassword(TransformContextRef context); + bool requiresExtraction(TransformContextRef context); + void extractItem(TransformContextRef context); void promptForPassword(TransformContextRef context, bool tryCachedPassword = false); void showContextMenu(const QPoint& position); static QString toHexDump(const QByteArray& data, int bytesPerLine = 16); diff --git a/ui/passwordedit.h b/ui/passwordedit.h index f919803b..12db5f5c 100644 --- a/ui/passwordedit.h +++ b/ui/passwordedit.h @@ -3,13 +3,21 @@ #include <QtWidgets/QLineEdit> #include "uitypes.h" +class ClickableLabel; + class BINARYNINJAUIAPI PasswordEdit: public QLineEdit { Q_OBJECT + ClickableLabel* m_toggleLabel; + void updateToggleIcon(); + public: PasswordEdit(QWidget* parent = nullptr); +protected: + void resizeEvent(QResizeEvent* event) override; + private slots: void showContextMenu(const QPoint& pos); }; |
