Browse Source

Turnstile prototype

import_zecw
Aditya Kulkarni 6 years ago
parent
commit
9c292519d4
  1. 35
      src/mainwindow.cpp
  2. 12
      src/mainwindow.ui
  3. 229
      src/turnstile.ui
  4. 154
      src/turnstileprogress.ui
  5. 10
      src/ui_mainwindow.h
  6. 210
      src/ui_turnstile.h
  7. 141
      src/ui_turnstileprogress.h
  8. 4
      zec-qt-wallet.pro

35
src/mainwindow.cpp

@ -2,12 +2,15 @@
#include "ui_mainwindow.h"
#include "ui_about.h"
#include "ui_settings.h"
#include "ui_turnstile.h"
#include "ui_turnstileprogress.h"
#include "rpc.h"
#include "balancestablemodel.h"
#include "settings.h"
#include "utils.h"
#include "senttxstore.h"
#include "precompiled.h"
using json = nlohmann::json;
@ -24,6 +27,38 @@ MainWindow::MainWindow(QWidget *parent) :
// Settings editor
setupSettingsModal();
// Turnstile migration
QObject::connect(ui->actionTurnstile_Migration, &QAction::triggered, [=] () {
Ui_Turnstile turnstile;
QDialog d(this);
turnstile.setupUi(&d);
QIcon icon = QApplication::style()->standardIcon(QStyle::SP_MessageBoxInformation);
turnstile.msgIcon->setPixmap(icon.pixmap(64, 64));
turnstile.migrateZaddList->addItem("All Sprout z-Addrs");
turnstile.migrateTo->addItem("zs1gv64eu0v2wx7raxqxlmj354y9ycznwaau9kduljzczxztvs4qcl00kn2sjxtejvrxnkucw5xx9u");
turnstile.privLevel->addItem("Good - 3 tx over 3 days");
turnstile.privLevel->addItem("Excellent - 5 tx over 5 days");
turnstile.privLevel->addItem("Paranoid - 10 tx over 7 days");
turnstile.buttonBox->button(QDialogButtonBox::Ok)->setText("Start");
d.exec();
});
QObject::connect(ui->actionProgress, &QAction::triggered, [=] () {
Ui_TurnstileProgress progress;
QDialog d(this);
progress.setupUi(&d);
QIcon icon = QApplication::style()->standardIcon(QStyle::SP_MessageBoxWarning);
progress.msgIcon->setPixmap(icon.pixmap(64, 64));
progress.buttonBox->button(QDialogButtonBox::Cancel)->setText("Abort");
d.exec();
});
// Set up exit action
QObject::connect(ui->actionExit, &QAction::triggered, this, &MainWindow::close);

12
src/mainwindow.ui

@ -720,6 +720,8 @@
<string>File</string>
</property>
<addaction name="actionImport_Private_Keys"/>
<addaction name="actionTurnstile_Migration"/>
<addaction name="actionProgress"/>
<addaction name="actionSettings"/>
<addaction name="separator"/>
<addaction name="actionExit"/>
@ -769,6 +771,16 @@
<string>Check github.com for Updates</string>
</property>
</action>
<action name="actionTurnstile_Migration">
<property name="text">
<string>Turnstile Migration</string>
</property>
</action>
<action name="actionProgress">
<property name="text">
<string>Progress</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<tabstops>

229
src/turnstile.ui

@ -0,0 +1,229 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Turnstile</class>
<widget class="QDialog" name="Turnstile">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>565</width>
<height>416</height>
</rect>
</property>
<property name="windowTitle">
<string>Turnstile Migration</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Turnstile Migration</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="msgIcon">
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="5" column="0" rowspan="2">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Total Fees</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Privacy Level</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QLabel" name="label_4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Miner Fee:</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>From</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QLabel" name="label_5">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Dev Fee: </string>
</property>
</widget>
</item>
<item row="7" column="0" colspan="2">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="5" column="2">
<widget class="QLabel" name="label_6">
<property name="text">
<string>0.0004 ZEC $0.04</string>
</property>
</widget>
</item>
<item row="6" column="2">
<widget class="QLabel" name="label_7">
<property name="text">
<string>0.0004 ZEC $0.04</string>
</property>
</widget>
</item>
<item row="2" column="1" colspan="2">
<widget class="QComboBox" name="migrateZaddList">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="editable">
<bool>false</bool>
</property>
<property name="currentText">
<string/>
</property>
</widget>
</item>
<item row="4" column="1" colspan="2">
<widget class="QComboBox" name="privLevel">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="0" column="1" colspan="2">
<widget class="QLabel" name="label_8">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Funds from Sprout z-Addresses (which start with &amp;quot;zc&amp;quot;) need to be moved to the upgraded Sapling z-Addresses (which start with &amp;quot;zs&amp;quot;). The funds cannot be moved directly, but need to be sent through intermediate &amp;quot;transparent&amp;quot; addresses in privacy-preserving way.&lt;/p&gt;&lt;p&gt;This migration can be done automatically for you.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_9">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>To</string>
</property>
</widget>
</item>
<item row="3" column="1" colspan="2">
<widget class="QComboBox" name="migrateTo"/>
</item>
<item row="1" column="0" colspan="3">
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>Turnstile</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>Turnstile</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

154
src/turnstileprogress.ui

@ -0,0 +1,154 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>TurnstileProgress</class>
<widget class="QDialog" name="TurnstileProgress">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="3" column="0" colspan="3">
<widget class="QProgressBar" name="progressBar">
<property name="value">
<number>33</number>
</property>
</widget>
</item>
<item row="7" column="1" colspan="2">
<widget class="QLabel" name="label_4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Please Ensure you have your wallet.dat backed up!</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="4" column="0" colspan="3">
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="5" column="0" colspan="3">
<widget class="QLabel" name="label">
<property name="text">
<string>Next Transaction in 4 hours</string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QLabel" name="label_3">
<property name="text">
<string>4 / 12</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Migration Progress</string>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QLabel" name="msgIcon">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>TextLabel</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="9" column="0" colspan="3">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
<item row="6" column="0" colspan="3">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="8" column="0" colspan="3">
<widget class="Line" name="line_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>TurnstileProgress</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>TurnstileProgress</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

10
src/ui_mainwindow.h

@ -47,6 +47,8 @@ public:
QAction *actionDonate;
QAction *actionImport_Private_Keys;
QAction *actionCheck_for_Updates;
QAction *actionTurnstile_Migration;
QAction *actionProgress;
QWidget *centralWidget;
QGridLayout *gridLayout_3;
QTabWidget *tabWidget;
@ -159,6 +161,10 @@ public:
actionImport_Private_Keys->setVisible(false);
actionCheck_for_Updates = new QAction(MainWindow);
actionCheck_for_Updates->setObjectName(QStringLiteral("actionCheck_for_Updates"));
actionTurnstile_Migration = new QAction(MainWindow);
actionTurnstile_Migration->setObjectName(QStringLiteral("actionTurnstile_Migration"));
actionProgress = new QAction(MainWindow);
actionProgress->setObjectName(QStringLiteral("actionProgress"));
centralWidget = new QWidget(MainWindow);
centralWidget->setObjectName(QStringLiteral("centralWidget"));
gridLayout_3 = new QGridLayout(centralWidget);
@ -666,6 +672,8 @@ public:
menuBar->addAction(menuBalance->menuAction());
menuBar->addAction(menuHelp->menuAction());
menuBalance->addAction(actionImport_Private_Keys);
menuBalance->addAction(actionTurnstile_Migration);
menuBalance->addAction(actionProgress);
menuBalance->addAction(actionSettings);
menuBalance->addSeparator();
menuBalance->addAction(actionExit);
@ -690,6 +698,8 @@ public:
actionDonate->setText(QApplication::translate("MainWindow", "Donate", nullptr));
actionImport_Private_Keys->setText(QApplication::translate("MainWindow", "Import Private Keys", nullptr));
actionCheck_for_Updates->setText(QApplication::translate("MainWindow", "Check github.com for Updates", nullptr));
actionTurnstile_Migration->setText(QApplication::translate("MainWindow", "Turnstile Migration", nullptr));
actionProgress->setText(QApplication::translate("MainWindow", "Progress", nullptr));
groupBox->setTitle(QApplication::translate("MainWindow", "Summary", nullptr));
label->setText(QApplication::translate("MainWindow", "Shielded", nullptr));
balSheilded->setText(QString());

210
src/ui_turnstile.h

@ -0,0 +1,210 @@
/********************************************************************************
** Form generated from reading UI file 'turnstile.ui'
**
** Created by: Qt User Interface Compiler version 5.11.2
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_TURNSTILE_H
#define UI_TURNSTILE_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QFrame>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QLabel>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QVBoxLayout>
QT_BEGIN_NAMESPACE
class Ui_Turnstile
{
public:
QVBoxLayout *verticalLayout;
QGroupBox *groupBox;
QVBoxLayout *verticalLayout_2;
QGridLayout *gridLayout;
QLabel *msgIcon;
QLabel *label_3;
QLabel *label_2;
QLabel *label_4;
QLabel *label;
QLabel *label_5;
QSpacerItem *verticalSpacer;
QLabel *label_6;
QLabel *label_7;
QComboBox *migrateZaddList;
QComboBox *privLevel;
QLabel *label_8;
QLabel *label_9;
QComboBox *migrateTo;
QFrame *line;
QDialogButtonBox *buttonBox;
void setupUi(QDialog *Turnstile)
{
if (Turnstile->objectName().isEmpty())
Turnstile->setObjectName(QStringLiteral("Turnstile"));
Turnstile->resize(565, 416);
verticalLayout = new QVBoxLayout(Turnstile);
verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
groupBox = new QGroupBox(Turnstile);
groupBox->setObjectName(QStringLiteral("groupBox"));
verticalLayout_2 = new QVBoxLayout(groupBox);
verticalLayout_2->setObjectName(QStringLiteral("verticalLayout_2"));
gridLayout = new QGridLayout();
gridLayout->setObjectName(QStringLiteral("gridLayout"));
msgIcon = new QLabel(groupBox);
msgIcon->setObjectName(QStringLiteral("msgIcon"));
msgIcon->setAlignment(Qt::AlignCenter);
gridLayout->addWidget(msgIcon, 0, 0, 1, 1);
label_3 = new QLabel(groupBox);
label_3->setObjectName(QStringLiteral("label_3"));
label_3->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
gridLayout->addWidget(label_3, 5, 0, 2, 1);
label_2 = new QLabel(groupBox);
label_2->setObjectName(QStringLiteral("label_2"));
gridLayout->addWidget(label_2, 4, 0, 1, 1);
label_4 = new QLabel(groupBox);
label_4->setObjectName(QStringLiteral("label_4"));
QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(label_4->sizePolicy().hasHeightForWidth());
label_4->setSizePolicy(sizePolicy);
gridLayout->addWidget(label_4, 5, 1, 1, 1);
label = new QLabel(groupBox);
label->setObjectName(QStringLiteral("label"));
QSizePolicy sizePolicy1(QSizePolicy::Minimum, QSizePolicy::Preferred);
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(label->sizePolicy().hasHeightForWidth());
label->setSizePolicy(sizePolicy1);
gridLayout->addWidget(label, 2, 0, 1, 1);
label_5 = new QLabel(groupBox);
label_5->setObjectName(QStringLiteral("label_5"));
sizePolicy.setHeightForWidth(label_5->sizePolicy().hasHeightForWidth());
label_5->setSizePolicy(sizePolicy);
gridLayout->addWidget(label_5, 6, 1, 1, 1);
verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout->addItem(verticalSpacer, 7, 0, 1, 2);
label_6 = new QLabel(groupBox);
label_6->setObjectName(QStringLiteral("label_6"));
gridLayout->addWidget(label_6, 5, 2, 1, 1);
label_7 = new QLabel(groupBox);
label_7->setObjectName(QStringLiteral("label_7"));
gridLayout->addWidget(label_7, 6, 2, 1, 1);
migrateZaddList = new QComboBox(groupBox);
migrateZaddList->setObjectName(QStringLiteral("migrateZaddList"));
QSizePolicy sizePolicy2(QSizePolicy::Expanding, QSizePolicy::Fixed);
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(migrateZaddList->sizePolicy().hasHeightForWidth());
migrateZaddList->setSizePolicy(sizePolicy2);
migrateZaddList->setEditable(false);
gridLayout->addWidget(migrateZaddList, 2, 1, 1, 2);
privLevel = new QComboBox(groupBox);
privLevel->setObjectName(QStringLiteral("privLevel"));
sizePolicy2.setHeightForWidth(privLevel->sizePolicy().hasHeightForWidth());
privLevel->setSizePolicy(sizePolicy2);
gridLayout->addWidget(privLevel, 4, 1, 1, 2);
label_8 = new QLabel(groupBox);
label_8->setObjectName(QStringLiteral("label_8"));
label_8->setWordWrap(true);
gridLayout->addWidget(label_8, 0, 1, 1, 2);
label_9 = new QLabel(groupBox);
label_9->setObjectName(QStringLiteral("label_9"));
sizePolicy1.setHeightForWidth(label_9->sizePolicy().hasHeightForWidth());
label_9->setSizePolicy(sizePolicy1);
gridLayout->addWidget(label_9, 3, 0, 1, 1);
migrateTo = new QComboBox(groupBox);
migrateTo->setObjectName(QStringLiteral("migrateTo"));
gridLayout->addWidget(migrateTo, 3, 1, 1, 2);
line = new QFrame(groupBox);
line->setObjectName(QStringLiteral("line"));
line->setFrameShape(QFrame::HLine);
line->setFrameShadow(QFrame::Sunken);
gridLayout->addWidget(line, 1, 0, 1, 3);
verticalLayout_2->addLayout(gridLayout);
verticalLayout->addWidget(groupBox);
buttonBox = new QDialogButtonBox(Turnstile);
buttonBox->setObjectName(QStringLiteral("buttonBox"));
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
verticalLayout->addWidget(buttonBox);
retranslateUi(Turnstile);
QObject::connect(buttonBox, SIGNAL(accepted()), Turnstile, SLOT(accept()));
QObject::connect(buttonBox, SIGNAL(rejected()), Turnstile, SLOT(reject()));
QMetaObject::connectSlotsByName(Turnstile);
} // setupUi
void retranslateUi(QDialog *Turnstile)
{
Turnstile->setWindowTitle(QApplication::translate("Turnstile", "Turnstile Migration", nullptr));
groupBox->setTitle(QApplication::translate("Turnstile", "Turnstile Migration", nullptr));
msgIcon->setText(QString());
label_3->setText(QApplication::translate("Turnstile", "Total Fees", nullptr));
label_2->setText(QApplication::translate("Turnstile", "Privacy Level", nullptr));
label_4->setText(QApplication::translate("Turnstile", "Miner Fee:", nullptr));
label->setText(QApplication::translate("Turnstile", "From", nullptr));
label_5->setText(QApplication::translate("Turnstile", "Dev Fee: ", nullptr));
label_6->setText(QApplication::translate("Turnstile", "0.0004 ZEC $0.04", nullptr));
label_7->setText(QApplication::translate("Turnstile", "0.0004 ZEC $0.04", nullptr));
migrateZaddList->setCurrentText(QString());
label_8->setText(QApplication::translate("Turnstile", "<html><head/><body><p>Funds from Sprout z-Addresses (which start with &quot;zc&quot;) need to be moved to the upgraded Sapling z-Addresses (which start with &quot;zs&quot;). The funds cannot be moved directly, but need to be sent through intermediate &quot;transparent&quot; addresses in privacy-preserving way.</p><p>This migration can be done automatically for you.</p></body></html>", nullptr));
label_9->setText(QApplication::translate("Turnstile", "To", nullptr));
} // retranslateUi
};
namespace Ui {
class Turnstile: public Ui_Turnstile {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_TURNSTILE_H

141
src/ui_turnstileprogress.h

@ -0,0 +1,141 @@
/********************************************************************************
** Form generated from reading UI file 'turnstileprogress.ui'
**
** Created by: Qt User Interface Compiler version 5.11.2
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_TURNSTILEPROGRESS_H
#define UI_TURNSTILEPROGRESS_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QFrame>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QProgressBar>
#include <QtWidgets/QSpacerItem>
QT_BEGIN_NAMESPACE
class Ui_TurnstileProgress
{
public:
QGridLayout *gridLayout;
QProgressBar *progressBar;
QLabel *label_4;
QFrame *line;
QLabel *label;
QLabel *label_3;
QLabel *label_2;
QLabel *msgIcon;
QDialogButtonBox *buttonBox;
QSpacerItem *verticalSpacer;
QFrame *line_2;
void setupUi(QDialog *TurnstileProgress)
{
if (TurnstileProgress->objectName().isEmpty())
TurnstileProgress->setObjectName(QStringLiteral("TurnstileProgress"));
TurnstileProgress->resize(400, 300);
gridLayout = new QGridLayout(TurnstileProgress);
gridLayout->setObjectName(QStringLiteral("gridLayout"));
progressBar = new QProgressBar(TurnstileProgress);
progressBar->setObjectName(QStringLiteral("progressBar"));
progressBar->setValue(33);
gridLayout->addWidget(progressBar, 3, 0, 1, 3);
label_4 = new QLabel(TurnstileProgress);
label_4->setObjectName(QStringLiteral("label_4"));
QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(label_4->sizePolicy().hasHeightForWidth());
label_4->setSizePolicy(sizePolicy);
label_4->setWordWrap(true);
gridLayout->addWidget(label_4, 7, 1, 1, 2);
line = new QFrame(TurnstileProgress);
line->setObjectName(QStringLiteral("line"));
line->setFrameShape(QFrame::HLine);
line->setFrameShadow(QFrame::Sunken);
gridLayout->addWidget(line, 4, 0, 1, 3);
label = new QLabel(TurnstileProgress);
label->setObjectName(QStringLiteral("label"));
gridLayout->addWidget(label, 5, 0, 1, 3);
label_3 = new QLabel(TurnstileProgress);
label_3->setObjectName(QStringLiteral("label_3"));
label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
gridLayout->addWidget(label_3, 2, 2, 1, 1);
label_2 = new QLabel(TurnstileProgress);
label_2->setObjectName(QStringLiteral("label_2"));
gridLayout->addWidget(label_2, 2, 0, 1, 2);
msgIcon = new QLabel(TurnstileProgress);
msgIcon->setObjectName(QStringLiteral("msgIcon"));
QSizePolicy sizePolicy1(QSizePolicy::Minimum, QSizePolicy::Preferred);
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(msgIcon->sizePolicy().hasHeightForWidth());
msgIcon->setSizePolicy(sizePolicy1);
msgIcon->setAlignment(Qt::AlignCenter);
gridLayout->addWidget(msgIcon, 7, 0, 1, 1);
buttonBox = new QDialogButtonBox(TurnstileProgress);
buttonBox->setObjectName(QStringLiteral("buttonBox"));
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
gridLayout->addWidget(buttonBox, 9, 0, 1, 3);
verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout->addItem(verticalSpacer, 6, 0, 1, 3);
line_2 = new QFrame(TurnstileProgress);
line_2->setObjectName(QStringLiteral("line_2"));
line_2->setFrameShape(QFrame::HLine);
line_2->setFrameShadow(QFrame::Sunken);
gridLayout->addWidget(line_2, 8, 0, 1, 3);
retranslateUi(TurnstileProgress);
QObject::connect(buttonBox, SIGNAL(accepted()), TurnstileProgress, SLOT(accept()));
QObject::connect(buttonBox, SIGNAL(rejected()), TurnstileProgress, SLOT(reject()));
QMetaObject::connectSlotsByName(TurnstileProgress);
} // setupUi
void retranslateUi(QDialog *TurnstileProgress)
{
TurnstileProgress->setWindowTitle(QApplication::translate("TurnstileProgress", "Dialog", nullptr));
label_4->setText(QApplication::translate("TurnstileProgress", "Please Ensure you have your wallet.dat backed up!", nullptr));
label->setText(QApplication::translate("TurnstileProgress", "Next Transaction in 4 hours", nullptr));
label_3->setText(QApplication::translate("TurnstileProgress", "4 / 12", nullptr));
label_2->setText(QApplication::translate("TurnstileProgress", "Migration Progress", nullptr));
msgIcon->setText(QApplication::translate("TurnstileProgress", "TextLabel", nullptr));
} // retranslateUi
};
namespace Ui {
class TurnstileProgress: public Ui_TurnstileProgress {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_TURNSTILEPROGRESS_H

4
zec-qt-wallet.pro

@ -71,7 +71,9 @@ FORMS += \
src/mainwindow.ui \
src/settings.ui \
src/about.ui \
src/confirm.ui
src/confirm.ui \
src/turnstile.ui \
src/turnstileprogress.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin

Loading…
Cancel
Save