diff options
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); }; |
