blob: 9f1f01b4257f7b0b40452a53b8232b4adea13ba8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#pragma once
#include <QDialog>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QPushButton>
#include <QCheckBox>
#include <QDialogButtonBox>
#include "uitypes.h"
#include "passwordedit.h"
class BINARYNINJAUIAPI PasswordDialog : public QDialog
{
Q_OBJECT
PasswordEdit* m_passwordEdit = nullptr;
QDialogButtonBox* m_buttons = nullptr;
QCheckBox* m_saveCheckBox = nullptr;
public:
PasswordDialog(QWidget* parent, const QString& resource, bool showSaveOption = false);
QString password() const;
bool shouldSavePassword() const;
void notifyInvalid();
signals:
void validate(const QString& password, bool shouldSave);
private slots:
void onTextChanged();
};
|