Skip to content

Commit

Permalink
[QT] removed zBYTZ zerocoin form in main tab
Browse files Browse the repository at this point in the history
  • Loading branch information
olegmitrakhovich committed Mar 17, 2020
1 parent 9172817 commit 98caabe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 90 deletions.
73 changes: 2 additions & 71 deletions src/qt/forms/optionsdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -131,82 +131,13 @@
</spacer>
</item>
<item>
<widget class="QCheckBox" name="checkBoxZeromintEnable">
<property name="toolTip">
<string>Enable automatic minting of BYTZ units to zBYTZ</string>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="text">
<string>Enable zBYTZ Automint</string>
</property>
</widget>
<layout class="QHBoxLayout" name="horizontalLayout_3"/>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="percentage_label">
<property name="toolTip">
<string>Percentage of incoming BYTZ which get automatically converted to zBYTZ via Zerocoin Protocol (min: 10%)</string>
</property>
<property name="text">
<string>Percentage of autominted zBYTZ</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="zeromintPercentage">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0">
<layout class="QHBoxLayout" name="horizontalLayout" stretch="">
<property name="sizeConstraint">
<enum>QLayout::SetFixedSize</enum>
</property>
<item>
<widget class="QLabel" name="labelPreferredDenom">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Wait with automatic conversion to Zerocoin until enough BYTZ for this denomination is available</string>
</property>
<property name="text">
<string>Preferred Automint zBYTZ Denomination</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="preferredDenom">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>27</height>
</size>
</property>
<property name="toolTip">
<string>Wait with automatic conversion to Zerocoin until enough BYTZ for this denomination is available</string>
</property>
<property name="maxVisibleItems">
<number>9</number>
</property>
<property name="maxCount">
<number>9</number>
</property>
</widget>
</item>
</layout>
</item>
</layout>
Expand Down
21 changes: 2 additions & 19 deletions src/qt/optionsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,10 @@ OptionsDialog::OptionsDialog(QWidget* parent, bool enableWallet) : QDialog(paren
digits.setNum(index);
ui->digits->addItem(digits, digits);
}

/* Theme selector static themes */
ui->theme->addItem(QString("Default"), QVariant("default"));

/* Preferred Zerocoin Denominations */
ui->preferredDenom->addItem(QString(tr("Any")), QVariant("0"));
ui->preferredDenom->addItem(QString("1"), QVariant("1"));
ui->preferredDenom->addItem(QString("5"), QVariant("5"));
ui->preferredDenom->addItem(QString("10"), QVariant("10"));
ui->preferredDenom->addItem(QString("50"), QVariant("50"));
ui->preferredDenom->addItem(QString("100"), QVariant("100"));
ui->preferredDenom->addItem(QString("500"), QVariant("500"));
ui->preferredDenom->addItem(QString("1000"), QVariant("1000"));
ui->preferredDenom->addItem(QString("5000"), QVariant("5000"));

/* Theme selector external themes */
boost::filesystem::path pathAddr = GetDataDir() / "themes";
QDir dir(pathAddr.string().c_str());
Expand Down Expand Up @@ -197,13 +186,7 @@ void OptionsDialog::setMapper()
mapper->addMapping(ui->bitcoinAtStartup, OptionsModel::StartAtStartup);
mapper->addMapping(ui->threadsScriptVerif, OptionsModel::ThreadsScriptVerif);
mapper->addMapping(ui->databaseCache, OptionsModel::DatabaseCache);
// Zeromint Enabled
mapper->addMapping(ui->checkBoxZeromintEnable, OptionsModel::ZeromintEnable);
// Zerocoin mint percentage
mapper->addMapping(ui->zeromintPercentage, OptionsModel::ZeromintPercentage);
// Zerocoin preferred denomination
mapper->addMapping(ui->preferredDenom, OptionsModel::ZeromintPrefDenom);


/* Wallet */
mapper->addMapping(ui->spendZeroConfChange, OptionsModel::SpendZeroConfChange);
mapper->addMapping(ui->coinControlFeatures, OptionsModel::CoinControlFeatures);
Expand Down

0 comments on commit 98caabe

Please sign in to comment.