forked from ciphrex/mSIGNA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewaccountdialog.h
56 lines (44 loc) · 1.17 KB
/
newaccountdialog.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
///////////////////////////////////////////////////////////////////////////////
//
// mSIGNA
//
// newaccountdialog.h
//
// Copyright (c) 2013-2014 Eric Lombrozo
//
// All Rights Reserved.
#pragma once
class QLineEdit;
class QListWidget;
class QComboBox;
class QDateTimeEdit;
class QCalendarWidget;
class QPushButton;
#include <QDialog>
#include <QSet>
#include <QList>
#include <QString>
class NewAccountDialog : public QDialog
{
Q_OBJECT
public:
NewAccountDialog(const QList<QString>& allKeychains, const QList<QString>& selectedKeychains, QWidget* parent = nullptr);
~NewAccountDialog();
QString getName() const;
QList<QString> getKeychainNames() const { return keychainSet.toList(); }
int getMinSigs() const;
qint64 getCreationTime() const;
private:
void updateSelection(const QString& keychain, int state);
void updateMinSigs();
void updateEnabled();
QLineEdit* nameEdit;
QListWidget* keychainListWidget;
QSet<QString> keychainSet;
QLineEdit* keychainEdit;
QComboBox* minSigComboBox;
QLineEdit* minSigLineEdit;
QDateTimeEdit* creationTimeEdit;
QCalendarWidget* calendarWidget;
QPushButton* okButton;
};