|
|
@ -11,7 +11,6 @@ |
|
|
|
|
|
|
|
#include <QtCore/QVariant> |
|
|
|
#include <QtWidgets/QApplication> |
|
|
|
#include <QtWidgets/QCheckBox> |
|
|
|
#include <QtWidgets/QGridLayout> |
|
|
|
#include <QtWidgets/QGroupBox> |
|
|
|
#include <QtWidgets/QHBoxLayout> |
|
|
@ -34,25 +33,23 @@ class Ui_MainWindow |
|
|
|
public: |
|
|
|
QWidget *centralWidget; |
|
|
|
QGridLayout *gridLayout; |
|
|
|
QGroupBox *groupBox; |
|
|
|
QGridLayout *gridLayout_2; |
|
|
|
QGroupBox *Save; |
|
|
|
QHBoxLayout *horizontalLayout; |
|
|
|
QSpacerItem *horizontalSpacer; |
|
|
|
QPushButton *btnSavePDF; |
|
|
|
QPushButton *btnSaveJSON; |
|
|
|
QGroupBox *Config; |
|
|
|
QGridLayout *gridLayout_3; |
|
|
|
QLabel *label_3; |
|
|
|
QLineEdit *txttaddrs; |
|
|
|
QLineEdit *txtzaddrs; |
|
|
|
QLineEdit *txtEntropy; |
|
|
|
QLabel *label; |
|
|
|
QLabel *label_3; |
|
|
|
QLineEdit *txtzaddrs; |
|
|
|
QPushButton *btnGenerate; |
|
|
|
QLabel *label_2; |
|
|
|
QLineEdit *lineEdit; |
|
|
|
QCheckBox *checkBox; |
|
|
|
QScrollArea *scrollArea; |
|
|
|
QWidget *scroll; |
|
|
|
QVBoxLayout *verticalLayout; |
|
|
|
QGroupBox *Save; |
|
|
|
QHBoxLayout *horizontalLayout; |
|
|
|
QSpacerItem *horizontalSpacer; |
|
|
|
QPushButton *pushButton; |
|
|
|
QPushButton *pushButton_2; |
|
|
|
QMenuBar *menuBar; |
|
|
|
QToolBar *mainToolBar; |
|
|
|
QStatusBar *statusBar; |
|
|
@ -61,108 +58,99 @@ public: |
|
|
|
{ |
|
|
|
if (MainWindow->objectName().isEmpty()) |
|
|
|
MainWindow->setObjectName(QString::fromUtf8("MainWindow")); |
|
|
|
MainWindow->resize(805, 609); |
|
|
|
MainWindow->resize(927, 930); |
|
|
|
centralWidget = new QWidget(MainWindow); |
|
|
|
centralWidget->setObjectName(QString::fromUtf8("centralWidget")); |
|
|
|
gridLayout = new QGridLayout(centralWidget); |
|
|
|
gridLayout->setSpacing(6); |
|
|
|
gridLayout->setContentsMargins(11, 11, 11, 11); |
|
|
|
gridLayout->setObjectName(QString::fromUtf8("gridLayout")); |
|
|
|
groupBox = new QGroupBox(centralWidget); |
|
|
|
groupBox->setObjectName(QString::fromUtf8("groupBox")); |
|
|
|
gridLayout_2 = new QGridLayout(groupBox); |
|
|
|
gridLayout_2->setSpacing(6); |
|
|
|
gridLayout_2->setContentsMargins(11, 11, 11, 11); |
|
|
|
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2")); |
|
|
|
Config = new QGroupBox(groupBox); |
|
|
|
Save = new QGroupBox(centralWidget); |
|
|
|
Save->setObjectName(QString::fromUtf8("Save")); |
|
|
|
horizontalLayout = new QHBoxLayout(Save); |
|
|
|
horizontalLayout->setSpacing(6); |
|
|
|
horizontalLayout->setContentsMargins(11, 11, 11, 11); |
|
|
|
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout")); |
|
|
|
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); |
|
|
|
|
|
|
|
horizontalLayout->addItem(horizontalSpacer); |
|
|
|
|
|
|
|
btnSavePDF = new QPushButton(Save); |
|
|
|
btnSavePDF->setObjectName(QString::fromUtf8("btnSavePDF")); |
|
|
|
|
|
|
|
horizontalLayout->addWidget(btnSavePDF); |
|
|
|
|
|
|
|
btnSaveJSON = new QPushButton(Save); |
|
|
|
btnSaveJSON->setObjectName(QString::fromUtf8("btnSaveJSON")); |
|
|
|
|
|
|
|
horizontalLayout->addWidget(btnSaveJSON); |
|
|
|
|
|
|
|
|
|
|
|
gridLayout->addWidget(Save, 2, 0, 1, 1); |
|
|
|
|
|
|
|
Config = new QGroupBox(centralWidget); |
|
|
|
Config->setObjectName(QString::fromUtf8("Config")); |
|
|
|
gridLayout_3 = new QGridLayout(Config); |
|
|
|
gridLayout_3->setSpacing(6); |
|
|
|
gridLayout_3->setContentsMargins(11, 11, 11, 11); |
|
|
|
gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3")); |
|
|
|
label_3 = new QLabel(Config); |
|
|
|
label_3->setObjectName(QString::fromUtf8("label_3")); |
|
|
|
|
|
|
|
gridLayout_3->addWidget(label_3, 1, 0, 1, 1); |
|
|
|
|
|
|
|
txttaddrs = new QLineEdit(Config); |
|
|
|
txttaddrs->setObjectName(QString::fromUtf8("txttaddrs")); |
|
|
|
|
|
|
|
gridLayout_3->addWidget(txttaddrs, 0, 3, 1, 1); |
|
|
|
|
|
|
|
txtzaddrs = new QLineEdit(Config); |
|
|
|
txtzaddrs->setObjectName(QString::fromUtf8("txtzaddrs")); |
|
|
|
txtEntropy = new QLineEdit(Config); |
|
|
|
txtEntropy->setObjectName(QString::fromUtf8("txtEntropy")); |
|
|
|
|
|
|
|
gridLayout_3->addWidget(txtzaddrs, 0, 1, 1, 1); |
|
|
|
gridLayout_3->addWidget(txtEntropy, 1, 1, 1, 3); |
|
|
|
|
|
|
|
label = new QLabel(Config); |
|
|
|
label->setObjectName(QString::fromUtf8("label")); |
|
|
|
|
|
|
|
gridLayout_3->addWidget(label, 0, 0, 1, 1); |
|
|
|
|
|
|
|
label_3 = new QLabel(Config); |
|
|
|
label_3->setObjectName(QString::fromUtf8("label_3")); |
|
|
|
txtzaddrs = new QLineEdit(Config); |
|
|
|
txtzaddrs->setObjectName(QString::fromUtf8("txtzaddrs")); |
|
|
|
|
|
|
|
gridLayout_3->addWidget(label_3, 1, 0, 1, 1); |
|
|
|
gridLayout_3->addWidget(txtzaddrs, 0, 1, 1, 1); |
|
|
|
|
|
|
|
btnGenerate = new QPushButton(Config); |
|
|
|
btnGenerate->setObjectName(QString::fromUtf8("btnGenerate")); |
|
|
|
|
|
|
|
gridLayout_3->addWidget(btnGenerate, 2, 0, 1, 1); |
|
|
|
|
|
|
|
label_2 = new QLabel(Config); |
|
|
|
label_2->setObjectName(QString::fromUtf8("label_2")); |
|
|
|
|
|
|
|
gridLayout_3->addWidget(label_2, 0, 2, 1, 1); |
|
|
|
|
|
|
|
lineEdit = new QLineEdit(Config); |
|
|
|
lineEdit->setObjectName(QString::fromUtf8("lineEdit")); |
|
|
|
|
|
|
|
gridLayout_3->addWidget(lineEdit, 1, 1, 1, 3); |
|
|
|
gridLayout->addWidget(Config, 0, 0, 1, 1); |
|
|
|
|
|
|
|
checkBox = new QCheckBox(Config); |
|
|
|
checkBox->setObjectName(QString::fromUtf8("checkBox")); |
|
|
|
checkBox->setChecked(true); |
|
|
|
|
|
|
|
gridLayout_3->addWidget(checkBox, 2, 0, 1, 4); |
|
|
|
|
|
|
|
|
|
|
|
gridLayout_2->addWidget(Config, 0, 0, 1, 1); |
|
|
|
|
|
|
|
scrollArea = new QScrollArea(groupBox); |
|
|
|
scrollArea = new QScrollArea(centralWidget); |
|
|
|
scrollArea->setObjectName(QString::fromUtf8("scrollArea")); |
|
|
|
scrollArea->setStyleSheet(QString::fromUtf8("")); |
|
|
|
scrollArea->setWidgetResizable(true); |
|
|
|
scroll = new QWidget(); |
|
|
|
scroll->setObjectName(QString::fromUtf8("scroll")); |
|
|
|
scroll->setGeometry(QRect(0, 0, 761, 274)); |
|
|
|
scroll->setGeometry(QRect(0, 0, 907, 637)); |
|
|
|
verticalLayout = new QVBoxLayout(scroll); |
|
|
|
verticalLayout->setSpacing(6); |
|
|
|
verticalLayout->setContentsMargins(11, 11, 11, 11); |
|
|
|
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout")); |
|
|
|
scrollArea->setWidget(scroll); |
|
|
|
|
|
|
|
gridLayout_2->addWidget(scrollArea, 1, 0, 1, 1); |
|
|
|
|
|
|
|
|
|
|
|
gridLayout->addWidget(groupBox, 0, 0, 1, 1); |
|
|
|
|
|
|
|
Save = new QGroupBox(centralWidget); |
|
|
|
Save->setObjectName(QString::fromUtf8("Save")); |
|
|
|
horizontalLayout = new QHBoxLayout(Save); |
|
|
|
horizontalLayout->setSpacing(6); |
|
|
|
horizontalLayout->setContentsMargins(11, 11, 11, 11); |
|
|
|
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout")); |
|
|
|
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); |
|
|
|
|
|
|
|
horizontalLayout->addItem(horizontalSpacer); |
|
|
|
|
|
|
|
pushButton = new QPushButton(Save); |
|
|
|
pushButton->setObjectName(QString::fromUtf8("pushButton")); |
|
|
|
|
|
|
|
horizontalLayout->addWidget(pushButton); |
|
|
|
|
|
|
|
pushButton_2 = new QPushButton(Save); |
|
|
|
pushButton_2->setObjectName(QString::fromUtf8("pushButton_2")); |
|
|
|
|
|
|
|
horizontalLayout->addWidget(pushButton_2); |
|
|
|
|
|
|
|
|
|
|
|
gridLayout->addWidget(Save, 1, 0, 1, 1); |
|
|
|
gridLayout->addWidget(scrollArea, 1, 0, 1, 1); |
|
|
|
|
|
|
|
MainWindow->setCentralWidget(centralWidget); |
|
|
|
menuBar = new QMenuBar(MainWindow); |
|
|
|
menuBar->setObjectName(QString::fromUtf8("menuBar")); |
|
|
|
menuBar->setGeometry(QRect(0, 0, 805, 22)); |
|
|
|
menuBar->setGeometry(QRect(0, 0, 927, 22)); |
|
|
|
MainWindow->setMenuBar(menuBar); |
|
|
|
mainToolBar = new QToolBar(MainWindow); |
|
|
|
mainToolBar->setObjectName(QString::fromUtf8("mainToolBar")); |
|
|
@ -170,6 +158,12 @@ public: |
|
|
|
statusBar = new QStatusBar(MainWindow); |
|
|
|
statusBar->setObjectName(QString::fromUtf8("statusBar")); |
|
|
|
MainWindow->setStatusBar(statusBar); |
|
|
|
QWidget::setTabOrder(txtzaddrs, txttaddrs); |
|
|
|
QWidget::setTabOrder(txttaddrs, txtEntropy); |
|
|
|
QWidget::setTabOrder(txtEntropy, btnGenerate); |
|
|
|
QWidget::setTabOrder(btnGenerate, btnSavePDF); |
|
|
|
QWidget::setTabOrder(btnSavePDF, btnSaveJSON); |
|
|
|
QWidget::setTabOrder(btnSaveJSON, scrollArea); |
|
|
|
|
|
|
|
retranslateUi(MainWindow); |
|
|
|
|
|
|
@ -179,15 +173,16 @@ public: |
|
|
|
void retranslateUi(QMainWindow *MainWindow) |
|
|
|
{ |
|
|
|
MainWindow->setWindowTitle(QApplication::translate("MainWindow", "Zec Sapling Paper Wallet", nullptr)); |
|
|
|
groupBox->setTitle(QApplication::translate("MainWindow", "Paper Wallet Generator", nullptr)); |
|
|
|
Save->setTitle(QString()); |
|
|
|
btnSavePDF->setText(QApplication::translate("MainWindow", "Save as PDF", nullptr)); |
|
|
|
btnSaveJSON->setText(QApplication::translate("MainWindow", "Save as JSON", nullptr)); |
|
|
|
Config->setTitle(QApplication::translate("MainWindow", "Config", nullptr)); |
|
|
|
label->setText(QApplication::translate("MainWindow", "Number of z addresses", nullptr)); |
|
|
|
label_3->setText(QApplication::translate("MainWindow", "Additional Entropy", nullptr)); |
|
|
|
txttaddrs->setText(QApplication::translate("MainWindow", "0", nullptr)); |
|
|
|
label->setText(QApplication::translate("MainWindow", "Number of z addresses", nullptr)); |
|
|
|
txtzaddrs->setText(QApplication::translate("MainWindow", "1", nullptr)); |
|
|
|
btnGenerate->setText(QApplication::translate("MainWindow", "Generate Wallets", nullptr)); |
|
|
|
label_2->setText(QApplication::translate("MainWindow", "Number of t addresses", nullptr)); |
|
|
|
checkBox->setText(QApplication::translate("MainWindow", "Generate from a single HD Key", nullptr)); |
|
|
|
Save->setTitle(QApplication::translate("MainWindow", "Save", nullptr)); |
|
|
|
pushButton->setText(QApplication::translate("MainWindow", "Save as PDF", nullptr)); |
|
|
|
pushButton_2->setText(QApplication::translate("MainWindow", "Save as JSON", nullptr)); |
|
|
|
} // retranslateUi
|
|
|
|
|
|
|
|
}; |
|
|
|