[Dev] Documenting Feathercoin Specific Software settings - Part 7
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Remove merchant list : - commit
https://github.com/FeatherCoin/Feathercoin/commit/bb84dccd0147c2e3d4d5080a4b7b05111ede8d69
src/qt/bitcoingui.cpp
Code removed
- merchantListAction = new QAction(QIcon(":/icons/merchantList"), tr("&MerchantList"), this); - merchantListAction->setStatusTip(tr("Print merchant list")); - merchantListAction->setToolTip(merchantListAction->statusTip()); - merchantListAction->setCheckable(true); - merchantListAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_6)); - tabGroup->addAction(merchantListAction);
Code removed
- connect(accountReportAction, SIGNAL(triggered()), this, SLOT(gotoAccountReportPage())); - connect(merchantListAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized())); - connect(merchantListAction, SIGNAL(triggered()), this, SLOT(gotoMerchantListPage())); + connect(accountReportAction, SIGNAL(triggered()), this, SLOT(gotoAccountReportPage()));
Code replaced
- advanced->addSeparator(); - advanced->addAction(merchantListAction); - toolbar->addAction(merchantListAction); - merchantListAction->setEnabled(enabled); -void BitcoinGUI::gotoMerchantListPage() -{ - merchantListAction->setChecked(true); - if (walletFrame) walletFrame->gotoMerchantListPage(); -} -
Code removed
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Remove merchant list : - commit
https://github.com/FeatherCoin/Feathercoin/commit/bb84dccd0147c2e3d4d5080a4b7b05111ede8d69
src/qt/bitcoingui.h
- QAction *merchantListAction; - /** Switch to merchant list page */ - void gotoMerchantListPage();
Code removed
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Remove merchant list : - commit
https://github.com/FeatherCoin/Feathercoin/commit/bb84dccd0147c2e3d4d5080a4b7b05111ede8d69
src/qt/feathercoin.qrc
- <file alias="merchantList">res/icons/merchantList.png</file> - <file alias="merchant_map">res/images/feathercoinmap.png</file> - <file alias="merchant_e">res/images/btc-e.png</file> - <file alias="merchant_c">res/images/cryptsy.png</file> - <file alias="merchant_bter">res/images/bter.png</file> - <file alias="merchant_ct">res/images/ct.png</file> - <file alias="merchant_cm">res/images/cm.png</file> - <file alias="merchant_mc">res/images/mc.png</file> - <file alias="merchant_bitcoinbazaar">res/images/bitcoinbazaar.co.uk.png</file> - <file alias="merchant_pockio">res/images/pockio.png</file> - <file alias="merchant_shapeshift">res/images/shapeshift.png</file> - <file alias="merchant_bitbooks">res/images/bitbooks.png</file> - <file alias="merchant_coinverted">res/images/coinverted.png</file> - <file alias="merchant_bit">res/images/bittrex.png</file> - <file alias="merchant_bittylicious">res/images/bittylicious.png</file> - <file alias="merchant_vircurex">res/images/vircurex.png</file>
Code removed
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Remove merchant list : - commit
https://github.com/FeatherCoin/Feathercoin/commit/bb84dccd0147c2e3d4d5080a4b7b05111ede8d69
Various removed files
src/qt/forms/merchantlist.ui src/qt/merchantlist.cpp src/qt/res/icons/merchantList.png src/qt/res/images/bitbooks.png src/qt/res/images/bitcoinbazaar.co.uk.png src/qt/res/images/bittrex.png src/qt/res/images/bittylicious.png src/qt/res/images/btc-e.png src/qt/res/images/bter.png src/qt/res/images/cm.png src/qt/res/images/coinverted.png src/qt/res/images/cryptsy.png src/qt/res/images/ct.png src/qt/res/images/feathercoinmap.png src/qt/res/images/mc.png src/qt/res/images/pockio.png src/qt/res/images/shapeshift.png src/qt/res/images/vircurex.png
Files removed
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Remove merchant list : - commit
https://github.com/FeatherCoin/Feathercoin/commit/bb84dccd0147c2e3d4d5080a4b7b05111ede8d69
Various files code removed
src/qt/walletframe.cpp
-void WalletFrame::gotoMerchantListPage() -{ - QMap<QString, WalletView*>::const_iterator i; - for (i = mapWalletViews.constBegin(); i != mapWalletViews.constEnd(); ++i) - i.value()->gotoMerchantListPage(); -} -
code removed
src/qt/walletframe.h
- /** Switch to merchant list page */ - void gotoMerchantListPage(); -
Code removed
src/qt/walletview.cpp
- #include "merchantlist.h" - merchantlistPage = new MerchantListView(); - addWidget(merchantlistPage); - merchantlistPage->setWalletModel(walletModel); -void WalletView::gotoMerchantListPage() -{ - setCurrentWidget(merchantlistPage); -} -
Code removed
src/qt/walletview.h
-class MerchantListView; - MerchantListView *merchantlistPage; - /** Switch to merchant list page */ - void gotoMerchantListPage();
Code removed
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Update icons : - commit
https://github.com/FeatherCoin/Feathercoin/commit/68d03260581b1382bf3d472d108f9760c889485b
src/qt/res/icons/*
src/qt/res/icons/bitcoin.icns src/qt/res/icons/bitcoin.ico src/qt/res/icons/bitcoin.png src/qt/res/icons/bitcoin_testnet.ico src/qt/res/icons/bitcoin_testnet.png src/qt/res/images/mainbg.png
Icon images updated.
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Remove share balance : - commit
https://github.com/FeatherCoin/Feathercoin/commit/1445ef558b3f4f407b4c6fb074db09f5c60eb4fd
src/qt/forms/overviewpage.ui
- <item row="3" column="0"> - <widget class="QLabel" name="labelShareText"> - <property name="text"> - <string>Share</string> - </property> - </widget> - </item> - <item row="3" column="1"> - <widget class="QLabel" name="labelShare"> - <property name="font"> - <font> - <family>System</family> - <pointsize>10</pointsize> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>0 FTC</string> - </property> - <property name="alignment"> - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> - </property> - </widget> - </item>
Code removed
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Remove share balance : - commit
https://github.com/FeatherCoin/Feathercoin/commit/1445ef558b3f4f407b4c6fb074db09f5c60eb4fd
src/qt/overviewpage.cpp
- int shareBalance=0; //Ready for POS - ui->labelShare->setText(BitcoinUnits::formatWithUnit(unit, shareBalance));
Code removed
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
fix api : - commit
https://github.com/FeatherCoin/Feathercoin/commit/cf030fe5436f8ca260684d5c7b3c788a4ecc130b
Move shapeshift api from http to https
src/qt/shiftdialog.cpp
- manager->get(QNetworkRequest(QUrl("http://shapeshift.io/rate/ftc_btc"))); + manager->get(QNetworkRequest(QUrl("https://shapeshift.io/rate/ftc_btc")));
Various exchange addresses are updated to be https . Additional coin exchanges are added
} + if(name_value.toString()=="ftc_ltc") + { + sw=11; + }
Additional if statements to deal with additional cases.
+ QString strURL="https://shapeshift.io/txStat/"+ui->txAddress->text(); + network_request.setUrl(QUrl("https://shapeshift.io/shift"));
Code replaced to https
+ manager->get(QNetworkRequest(QUrl("https://shapeshift.io/rate/ftc_btc")));
Various code replaced https
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Standardise overviewpage : - commit
https://github.com/FeatherCoin/Feathercoin/commit/cf030fe5436f8ca260684d5c7b3c788a4ecc130b
User interface changes
contrib/feathercoin-qt.pro
contrib/bitcoin-qt.pro renamed? pro file not used as part of build now, although used in FTC for Qt temp storage when editing forms?
+ ../src/qt/forms/qrcodedialog.ui \ + ../src/qt/forms/shiftdialog.ui \ + ../src/qt/forms/snapwidget.ui \ + ../src/qt/bitcoin.qrc \ + ../src/qt/feathercoin.qrc \ (error)
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Standardise overviewpage : - commit
https://github.com/FeatherCoin/Feathercoin/commit/cf030fe5436f8ca260684d5c7b3c788a4ecc130b
User interface changes
src/qt/forms/overviewpage.ui
- <widget class="QLabel" name="labelMainlogo"> - <property name="text"> - <string/> - </property> - <property name="pixmap"> - <pixmap resource="../feathercoin.qrc">:/images/mainlogo</pixmap> - </property> - <property name="alignment"> + <widget class="QFrame" name="frame"> + <layout class="QVBoxLayout" name="verticalLayout_4">
Examples of user interface changes, done through Qt.
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Standardise overviewpage : - commit
https://github.com/FeatherCoin/Feathercoin/commit/cf030fe5436f8ca260684d5c7b3c788a4ecc130b
User interface changes
src/qt/overviewpage.cpp
- bool showImmature =true; + // only show immature (newly mined) balance if it's non-zero, so as not to complicate things + // for the non-mining users + bool showImmature = immatureBalance != 0;
Code replaced.
- setOverview(); -} - -void OverviewPage::setOverview() -{ - ui->labelOverview1->setText(tr("Current Block :")+tr(" %1 ").arg(clientModel->getNumBlocks())); - ui->labelOverview2->setText(tr("Current Difficulty :")+tr(" %1").arg(clientModel->getCurrDifficulty()));
Code removed
- // Show RPC information when blocks had changed - connect(model, SIGNAL(numBlocksChanged(int)), this, SLOT(setOverview()));
Code removed
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Standardise overviewpage : - commit
https://github.com/FeatherCoin/Feathercoin/commit/cf030fe5436f8ca260684d5c7b3c788a4ecc130b
User interface changes
src/qt/overviewpage.h
- void setOverview();
Code removed
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Restore experimental notice : - commit
https://github.com/FeatherCoin/Feathercoin/commit/81df7a613be84b00a61f3fd5dd601b3d9aafeceb
User interface changes
src/qt/forms/aboutdialog.ui
- <string>This is not experiment,This is our real life and great history.</string> + <string>This is experimental software.</string>
Feathercoin about message changed. Note : about and interface changes were updated later.
- <widget class="QLabel" name="label_8"> - <property name="text"> - <string>Our goal is to let you have a good time.</string> - </property> - </widget> - </item> - <item>
About message removed, don’t remember this going in?
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Restore experimental notice : - commit
https://github.com/FeatherCoin/Feathercoin/commit/96aad5e0265f0892b8d8c434d9c54fb6d68bad5a
User interface changes
COPYING
+ Copyright (c) 2013-2014 Feathercoin Developers
One file updated, copyright. How to handle copy rights - just do a sweep / search and replace in one commit?
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
fix Total Line 1 : - commit
https://github.com/FeatherCoin/Feathercoin/commit/3307d437c2fb98806ee2a83bc5e7455d7985b0a4
User interface changes
src/qt/reportview.cpp
+ //view->setFixedHeight(360); vlayout->addWidget(view); + + QTableView *viewT = new QTableView(this); + viewT->setFixedHeight(26); + vlayout->addWidget(viewT);
fix Total Line 1 Code added.
+ reportViewT=viewT;
Code added
- reportView->setShowGrid(false); + reportView->setShowGrid(false); + + reportModelT = new QStandardItemModel(this); + reportViewT->setModel(reportModelT); + reportViewT->setAlternatingRowColors(true); + reportViewT->setSelectionBehavior(QAbstractItemView::SelectRows); + reportViewT->setSelectionMode(QAbstractItemView::ExtendedSelection); + reportViewT->verticalHeader()->hide(); + reportViewT->setShowGrid(false); +
Code replaced / added.
- reportModel->setRowCount(addresslist.size()+1); + reportModel->setRowCount(addresslist.size());
Code replaced
- reportModel->setItem(i,0,new QStandardItem(tr("Total"))); - reportModel->setItem(i,1,new QStandardItem(dateWidget->currentText())); - reportModel->setItem(i,2,new QStandardItem(typeWidget->currentText())); - reportModel->setItem(i,3,new QStandardItem(QObject::tr("%1").arg(QObject::tr("%1").arg(fTotal)))); - reportModel->setItem(i,4,new QStandardItem(QObject::tr("%1").arg(iTimes))); - reportModel->item(i,0)->setTextAlignment(Qt::AlignCenter); - reportModel->item(i,2)->setTextAlignment(Qt::AlignCenter); - reportModel->item(i,3)->setTextAlignment(Qt::AlignCenter); - reportModel->item(i,4)->setTextAlignment(Qt::AlignCenter); - reportModel->item(i,0)->setFont(QFont("Times", 10, QFont::Black)); - reportModel->item(i,1)->setFont(QFont("Times", 10, QFont::Black)); - reportModel->item(i,2)->setFont(QFont("Times", 10, QFont::Black)); - reportModel->item(i,3)->setFont(QFont("Times", 10, QFont::Black)); - reportModel->item(i,4)->setFont(QFont("Times", 10, QFont::Black));
Code removed
+ //Total Line + reportModelT->clear(); + reportModelT->setRowCount(1); + reportModelT->setHorizontalHeaderItem(0, new QStandardItem(tr("AddressLabel"))); + reportModelT->setHorizontalHeaderItem(1, new QStandardItem(tr("DateRange"))); + reportModelT->setHorizontalHeaderItem(2, new QStandardItem(tr("Type"))); + reportModelT->setHorizontalHeaderItem(3, new QStandardItem(tr("Payment amount"))); + reportModelT->setHorizontalHeaderItem(4, new QStandardItem(tr("Number of payments"))); + reportViewT->horizontalHeader()->resizeSection(0, 270); + reportViewT->horizontalHeader()->resizeSection(1, 120); + reportViewT->horizontalHeader()->resizeSection(2, 120); + reportViewT->horizontalHeader()->resizeSection(3, 140); + reportViewT->horizontalHeader()->resizeSection(4, 140); + reportModelT->setItem(0,0,new QStandardItem(tr("Total"))); + reportModelT->setItem(0,1,new QStandardItem(dateWidget->currentText())); + reportModelT->setItem(0,2,new QStandardItem(typeWidget->currentText())); + reportModelT->setItem(0,3,new QStandardItem(QObject::tr("%1").arg(QObject::tr("%1").arg(fTotal)))); + reportModelT->setItem(0,4,new QStandardItem(QObject::tr("%1").arg(iTimes))); + reportModelT->item(0,0)->setTextAlignment(Qt::AlignCenter); + reportModelT->item(0,1)->setTextAlignment(Qt::AlignCenter); + reportModelT->item(0,2)->setTextAlignment(Qt::AlignCenter); + reportModelT->item(0,3)->setTextAlignment(Qt::AlignCenter); + reportModelT->item(0,4)->setTextAlignment(Qt::AlignCenter); + reportModelT->item(0,0)->setFont(QFont("Times", 10, QFont::Black)); + reportModelT->item(0,1)->setFont(QFont("Times", 10, QFont::Black)); + reportModelT->item(0,2)->setFont(QFont("Times", 10, QFont::Black)); + reportModelT->item(0,3)->setFont(QFont("Times", 10, QFont::Black)); + reportModelT->item(0,4)->setFont(QFont("Times", 10, QFont::Black)); + reportViewT->horizontalHeader()->hide();
Code replaced.
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
fix Total Line 2 : - commit
https://github.com/FeatherCoin/Feathercoin/commit/b01ecc54adb6364ddea6360d16c6b39e86e00b84
User interface changes
src/qt/reportview.h
+ QTableView *reportViewT;
Code added
+ QStandardItemModel *reportModelT;
Code added
-#endif // REPORTVIEW_H +#endif // REPORTVIEW_H
Code replaced
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Adds in support for printing paper wallets : - commit
https://github.com/FeatherCoin/Feathercoin/commit/3689244d7b94650c257cc4b7e8151b427b6cd6cf
Adds support for printing paper wallets
contrib/feathercoin-qt.pro
+ ../src/qt/feathercoin.qrc + + QT + = \ + printsupport
Add code to .pro file.
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Adds in support for printing paper wallets : - commit
https://github.com/FeatherCoin/Feathercoin/commit/3689244d7b94650c257cc4b7e8151b427b6cd6cf
Adds support for printing paper wallets
src/m4/bitcoin_qt.m4
+ qt5_modules="Qt5Core Qt5Gui Qt5Network Qt5Widgets Qt5PrintSupport"
Replace code to add Qt5PrintSupport
+ QT_INCLUDES="-I$qt_include_path -I$qt_include_path/QtCore -I$qt_include_path/QtGui -I$qt_include_path/QtWidgets -I$qt_include_path/QtNetwork -I$qt_include_path/QtTest -I$qt_include_path/QtDBus -I$qt_include_path/QtPrintSupport"
Code replaced to add I$qt_include_path/QtPrintSupport
+ LIBS="$LIBS -L$qt_plugin_path/printsupport"
Code added
+ BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}PrintSupport],[main],,BITCOIN_QT_FAIL(lib$QT_LIB_PREFIXPrintSupport not found))) + _BITCOIN_QT_CHECK_STATIC_PLUGINS([Q_IMPORT_PLUGIN(QMinimalIntegrationPlugin)],[-lqminimal]) + _BITCOIN_QT_CHECK_STATIC_PLUGINS([Q_IMPORT_PLUGIN(QWindowsPrinterSupportPlugin)],[-lwindowsprintersupport])
Code added
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Adds in support for printing paper wallets : - commit
https://github.com/FeatherCoin/Feathercoin/commit/3689244d7b94650c257cc4b7e8151b427b6cd6cf
Adds support for printing paper wallets
src/qt/Makefile.am
+ forms/paperwalletdialog.ui \ + moc_verticallabel.cpp \ + res/icons/print.png \ + RES_FONTS = \ + res/fonts/ComicNeue-Bold.ttf \ + res/fonts/ComicNeue-Bold-Oblique.ttf \ + res/fonts/ComicNeue-Light.ttf \ + res/fonts/ComicNeue-Light-Oblique.ttf \ + res/fonts/ComicNeue-Regular.ttf \ + res/fonts/ComicNeue-Regular-Oblique.ttf + + verticallabel.cpp \ + verticallabel.cpp \ + res/images/paper_wallet.png \
Code added
+ $(QT_QRC) $(QT_TS) $(PROTOBUF_PROTO) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES) $(RES_FONTS)
Code replaced