Skip to content

Commit

Permalink
Changed butkoin Unit to ButK
Browse files Browse the repository at this point in the history
  • Loading branch information
butkcore-dev committed Jul 21, 2021
1 parent 88486f8 commit 1911894
Show file tree
Hide file tree
Showing 33 changed files with 205 additions and 205 deletions.
2 changes: 1 addition & 1 deletion src/qt/bitcoinamountfield.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AmountSpinBox: public QAbstractSpinBox
public:
explicit AmountSpinBox(QWidget *parent):
QAbstractSpinBox(parent),
currentUnit(BitcoinUnits::BUT),
currentUnit(BitcoinUnits::BUTK),
singleStep(100000) // satoshis
{
setAlignment(Qt::AlignRight);
Expand Down
52 changes: 26 additions & 26 deletions src/qt/bitcoinunits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ BitcoinUnits::BitcoinUnits(QObject *parent):
QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits()
{
QList<BitcoinUnits::Unit> unitlist;
unitlist.append(BUT);
unitlist.append(mBUT);
unitlist.append(uBUT);
unitlist.append(BUTK);
unitlist.append(mBUTK);
unitlist.append(uBUTK);
unitlist.append(ruffs);
return unitlist;
}
Expand All @@ -31,9 +31,9 @@ bool BitcoinUnits::valid(int unit)
{
switch(unit)
{
case BUT:
case mBUT:
case uBUT:
case BUTK:
case mBUTK:
case uBUTK:
case ruffs:
return true;
default:
Expand All @@ -47,9 +47,9 @@ QString BitcoinUnits::name(int unit)
{
switch(unit)
{
case BUT: return QString("BUT");
case mBUT: return QString("mBUT");
case uBUT: return QString::fromUtf8("μBUT");
case BUTK: return QString("BUTK");
case mBUTK: return QString("mBUTK");
case uBUTK: return QString::fromUtf8("μBUTK");
case ruffs: return QString("ruffs");
default: return QString("???");
}
Expand All @@ -58,9 +58,9 @@ QString BitcoinUnits::name(int unit)
{
switch(unit)
{
case BUT: return QString("tBUT");
case mBUT: return QString("mtBUT");
case uBUT: return QString::fromUtf8("μtBUT");
case BUTK: return QString("tBUTK");
case mBUTK: return QString("mtBUTK");
case uBUTK: return QString::fromUtf8("μtBUTK");
case ruffs: return QString("tduffs");
default: return QString("???");
}
Expand All @@ -73,21 +73,21 @@ QString BitcoinUnits::description(int unit)
{
switch(unit)
{
case BUT: return QString("But");
case mBUT: return QString("Milli-But (1 / 1" THIN_SP_UTF8 "000)");
case uBUT: return QString("Micro-But (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
case ruffs: return QString("Ten Nano-But (1 / 100" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
case BUTK: return QString("ButK");
case mBUTK: return QString("Milli-ButK (1 / 1" THIN_SP_UTF8 "000)");
case uBUTK: return QString("Micro-ButK (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
case ruffs: return QString("Ten Nano-ButK (1 / 100" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
default: return QString("???");
}
}
else
{
switch(unit)
{
case BUT: return QString("TestButs");
case mBUT: return QString("Milli-TestBut (1 / 1" THIN_SP_UTF8 "000)");
case uBUT: return QString("Micro-TestBut (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
case ruffs: return QString("Ten Nano-TestBut (1 / 100" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
case BUTK: return QString("TestButKs");
case mBUTK: return QString("Milli-TestButK (1 / 1" THIN_SP_UTF8 "000)");
case uBUTK: return QString("Micro-TestButK (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
case ruffs: return QString("Ten Nano-TestButK (1 / 100" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
default: return QString("???");
}
}
Expand All @@ -97,9 +97,9 @@ qint64 BitcoinUnits::factor(int unit)
{
switch(unit)
{
case BUT: return 100000000;
case mBUT: return 100000;
case uBUT: return 100;
case BUTK: return 100000000;
case mBUTK: return 100000;
case uBUTK: return 100;
case ruffs: return 1;
default: return 100000000;
}
Expand All @@ -109,9 +109,9 @@ int BitcoinUnits::decimals(int unit)
{
switch(unit)
{
case BUT: return 8;
case mBUT: return 5;
case uBUT: return 2;
case BUTK: return 8;
case mBUTK: return 5;
case uBUTK: return 2;
case ruffs: return 0;
default: return 0;
}
Expand Down
6 changes: 3 additions & 3 deletions src/qt/bitcoinunits.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ class BitcoinUnits: public QAbstractListModel
*/
enum Unit
{
BUT,
mBUT,
uBUT,
BUTK,
mBUTK,
uBUTK,
ruffs
};

Expand Down
2 changes: 1 addition & 1 deletion src/qt/butstrings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ QT_TRANSLATE_NOOP("but-core", "Invalid script detected."),
QT_TRANSLATE_NOOP("but-core", "Invalid spork address specified with -sporkaddr"),
QT_TRANSLATE_NOOP("but-core", "KeePassHttp id for the established association"),
QT_TRANSLATE_NOOP("but-core", "KeePassHttp key for AES encrypted communication with KeePass"),
QT_TRANSLATE_NOOP("but-core", "Keep N BUT mixed (%u-%u, default: %u)"),
QT_TRANSLATE_NOOP("but-core", "Keep N BUTK mixed (%u-%u, default: %u)"),
QT_TRANSLATE_NOOP("but-core", "Keep at most <n> unconnectable transactions in memory (default: %u)"),
QT_TRANSLATE_NOOP("but-core", "Keep the transaction memory pool below <n> megabytes (default: %u)"),
QT_TRANSLATE_NOOP("but-core", "Keypool ran out, please call keypoolrefill first"),
Expand Down
4 changes: 2 additions & 2 deletions src/qt/coincontroldialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ void CoinControlDialog::updateLabels(WalletModel *model, QDialog* dialog)
}

// actually update labels
int nDisplayUnit = BitcoinUnits::BUT;
int nDisplayUnit = BitcoinUnits::BUTK;
if (model && model->getOptionsModel())
nDisplayUnit = model->getOptionsModel()->getDisplayUnit();

Expand Down Expand Up @@ -709,7 +709,7 @@ void CoinControlDialog::updateView()
{
sAddress = QString::fromStdString(CBitcoinAddress(outputAddress).ToString());

// if listMode or change => show but address. In tree mode, address is not shown again for direct wallet address outputs
// if listMode or change => show butk address. In tree mode, address is not shown again for direct wallet address outputs
if (!treeMode || (!(sAddress == sWalletAddress)))
itemOutput->setText(COLUMN_ADDRESS, sAddress);

Expand Down
8 changes: 4 additions & 4 deletions src/qt/forms/coincontroldialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<enum>Qt::ActionsContextMenu</enum>
</property>
<property name="text">
<string notr="true">0.00 BUT</string>
<string notr="true">0.00 BUTK</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
Expand Down Expand Up @@ -212,7 +212,7 @@
<enum>Qt::ActionsContextMenu</enum>
</property>
<property name="text">
<string notr="true">0.00 BUT</string>
<string notr="true">0.00 BUTK</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
Expand Down Expand Up @@ -257,7 +257,7 @@
<enum>Qt::ActionsContextMenu</enum>
</property>
<property name="text">
<string notr="true">0.00 BUT</string>
<string notr="true">0.00 BUTK</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
Expand Down Expand Up @@ -292,7 +292,7 @@
<enum>Qt::ActionsContextMenu</enum>
</property>
<property name="text">
<string notr="true">0.00 BUT</string>
<string notr="true">0.00 BUTK</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
Expand Down
8 changes: 4 additions & 4 deletions src/qt/forms/overviewpage.ui
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<item>
<widget class="QLabel" name="labelWalletStatus">
<property name="toolTip">
<string>The displayed information may be out of date. Your wallet automatically synchronizes with the But network after a connection is established, but this process has not completed yet.</string>
<string>The displayed information may be out of date. Your wallet automatically synchronizes with the BUTK network after a connection is established, BUTK this process has not completed yet.</string>
</property>
<property name="text">
<string notr="true">(out of sync)</string>
Expand Down Expand Up @@ -422,7 +422,7 @@
<item>
<widget class="QLabel" name="labelPrivateSendSyncStatus">
<property name="toolTip">
<string>The displayed information may be out of date. Your wallet automatically synchronizes with the But network after a connection is established, but this process has not completed yet.</string>
<string>The displayed information may be out of date. Your wallet automatically synchronizes with the BUTK network after a connection is established, but this process has not completed yet.</string>
</property>
<property name="text">
<string notr="true">(out of sync)</string>
Expand Down Expand Up @@ -508,7 +508,7 @@
</font>
</property>
<property name="text">
<string notr="true">0 BUT</string>
<string notr="true">0 BUTK</string>
</property>
</widget>
</item>
Expand All @@ -522,7 +522,7 @@
<item row="3" column="1">
<widget class="QLabel" name="labelAmountRounds">
<property name="text">
<string>0 BUT / 0 Rounds</string>
<string>0 BUTK / 0 Rounds</string>
</property>
</widget>
</item>
Expand Down
14 changes: 7 additions & 7 deletions src/qt/forms/sendcoinsdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
<enum>Qt::ActionsContextMenu</enum>
</property>
<property name="text">
<string notr="true">0.00 BUT</string>
<string notr="true">0.00 BUTK</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
Expand Down Expand Up @@ -404,7 +404,7 @@
<enum>Qt::ActionsContextMenu</enum>
</property>
<property name="text">
<string notr="true">0.00 BUT</string>
<string notr="true">0.00 BUTK</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
Expand Down Expand Up @@ -455,7 +455,7 @@
<enum>Qt::ActionsContextMenu</enum>
</property>
<property name="text">
<string notr="true">0.00 BUT</string>
<string notr="true">0.00 BUTK</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
Expand Down Expand Up @@ -484,7 +484,7 @@
<enum>Qt::ActionsContextMenu</enum>
</property>
<property name="text">
<string notr="true">0.00 BUT</string>
<string notr="true">0.00 BUTK</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
Expand Down Expand Up @@ -888,7 +888,7 @@
<item>
<widget class="QCheckBox" name="checkBoxMinimumFee">
<property name="toolTip">
<string>Paying only the minimum fee is just fine as long as there is less transaction volume than space in the blocks.&lt;br /&gt;But be aware that this can end up in a never confirming transaction once there is more demand for but transactions than the network can process.</string>
<string>Paying only the minimum fee is just fine as long as there is less transaction volume than space in the blocks.&lt;br /&gt;But be aware that this can end up in a never confirming transaction once there is more demand for BUTK transactions than the network can process.</string>
</property>
<property name="text">
<string/>
Expand All @@ -901,7 +901,7 @@
<bool>true</bool>
</property>
<property name="toolTip">
<string>Paying only the minimum fee is just fine as long as there is less transaction volume than space in the blocks.&lt;br /&gt;But be aware that this can end up in a never confirming transaction once there is more demand for but transactions than the network can process.</string>
<string>Paying only the minimum fee is just fine as long as there is less transaction volume than space in the blocks.&lt;br /&gt;But be aware that this can end up in a never confirming transaction once there is more demand for BUTK transactions than the network can process.</string>
</property>
<property name="text">
<string>(read the tooltip)</string>
Expand Down Expand Up @@ -1245,7 +1245,7 @@
<cursorShape>IBeamCursor</cursorShape>
</property>
<property name="text">
<string notr="true">123.456 BUT</string>
<string notr="true">123.456 BUTK</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
Expand Down
Loading

0 comments on commit 1911894

Please sign in to comment.