[Dev] Documenting Feathercoin Specific Software settings - Part 1
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b
src/qt/overviewpage.h
overviwpage.h integrates with the ui file.
+ void setOverview();
Additional code
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b
src/qt/reportview.cpp
New file with the FTC reports update in? 500 llines code.
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b
src/qt/reportview.h
New file containing FTC reports addon. 91 lines code.
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b
src/qt/rpcconsole.cpp
- setNumBlocks(model ->getNumBlocks(), model ->getNumBlocksOfPeers()); - connect(model, SIGNAL(numBlocksChanged(int,int)), this, SLOT(setNumBlocks(int,int)));
Bitcoin code replaced
+ setNumBlocks(model ->getNumBlocks()); + connect(model, SIGNAL(numBlocksChanged(int)), this, SLOT(setNumBlocks(int)));
Bitcoin code replaced
+ message(CMD_REPLY, (tr("Welcome to the Feathercoin RPC console.") + "<br>" +
name change, Bitcoin code replaced.
- void RPCConsole::setNumBlocks(int count, int countOfPeers) - // If there is no current countOfPeers available display N/A instead of 0, which can't ever be true - ui->totalBlocks->setText(countOfPeers == 0 ? tr("N/A") : QString::number(countOfPeers));
Bitcoin code removed
+ void RPCConsole::setNumBlocks(int count)
Bitcoin code replaced.
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b
src/qt/signverifymessagedialog.cpp
+ ui->addressIn_VM->setPlaceholderText(tr("Enter a Feathercoin address (e.g. 6djzFXtrfK8axEpEhSPe5o7YgJ16gFjSw7)"));
Name change, Bitcoin code replaced
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b
src/qt/splashscreen.cpp
Layout of splash screen has been updated, use latest file.
+ pixPaint.drawText(newPixmap.width()-titleTextWidth-paddingRight+44,paddingTop,titleText); + pixPaint.drawText(newPixmap.width()-titleTextWidth-paddingRight+2+58,paddingTop+titleVersionVSpace,versionText); + pixPaint.drawText(newPixmap.width()-titleTextWidth-paddingRight+64,paddingTop+titleCopyrightVSpace,copyrightText);
Layout adjustments Bitcoin code replaced
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b
src/qt/utilitydialog.cpp
This file has further updates. Compare with latest.
+ ui->copyrightLabel->setText(tr("Copyright") + QString(" © 2013-%1 ").arg(COPYRIGHT_YEAR) + tr("The Feathercoin Core developers"));
Replace Bitcoin code name change, auto at compile time?
+ header = tr("Feathercoin Core") + " " + tr("version") + " " + + " feathercoin-qt [" + tr("command-line options") + "] " + "\n"; + tr("Feathercoin Core is shutting down...") + "<br /><br />" +
Name change Bitcoin code replaced
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b
src/qt/walletframe.cpp
This file has further updates. Compare with latest.
+void WalletFrame::gotoAccountReportPage() +{ + QMap<QString, WalletView*>::const_iterator i; + for (i = mapWalletViews.constBegin(); i != mapWalletViews.constEnd(); + +i) + i.value()->gotoAccountReportPage(); +}
Additional code for Feathercoin reports add-on
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b
src/qt/walletframe.h
+ /** Switch to account report page */ + void gotoAccountReportPage(); +
FTC reports addon additional code.
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b
src/qt/walletview.cpp
+#include "reportview.h"
Additional code FTC reports add-on.
+ + accountreportPage = new QWidget(this); + QVBoxLayout *vboxR = new QVBoxLayout(); + QHBoxLayout *hboxR_buttons = new QHBoxLayout(); + reportView = new ReportView(this); + vboxR->addWidget(reportView); + +
Additional code FTC reports add-on.
+ QPushButton *exportRButton = new QPushButton(tr("&Export"), this); + exportRButton->setToolTip(tr("Export the data in the current tab to a file")); +#ifndef Q_OS_MAC // Icons on push buttons are very uncommon on Mac + exportRButton->setIcon(QIcon(":/icons/export")); + #endif + hboxR_buttons->addStretch(); + hboxR_buttons->addWidget(exportRButton); + vboxR->addLayout(hboxR_buttons); + accountreportPage->setLayout(vboxR); +
Additional code FTC reports add-on.
+ addWidget(accountreportPage); + connect(exportRButton, SIGNAL(clicked()), reportView, SLOT(exportClicked()));
Additional code for FTC reports.
+ reportView->setModel(walletModel);
Additional code for FTC reports.
+ void WalletView::gotoAccountReportPage() + { + setCurrentWidget(accountreportPage); + } +
Additional code for FTC reports.
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b
src/qt/walletview.h
+ class ReportView;
Code for FTC reports added.
+ QWidget *accountreportPage;
Code for FTC reports added.
+ /** Switch to account report page */ + void gotoAccountReportPage(); +
Code for FTC reports added.
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
https://github.com/FeatherCoin/Feathercoin/commit/516a78744d2eac208b61a864f81d59dc9055568d
src/qt/bitcoin.cpp
Add MerchantListView FTC reports commit
+ return QCoreApplication::translate("feathercoin-core", psz).toStdString();
Bitcoin code replaced, name change
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
https://github.com/FeatherCoin/Feathercoin/commit/516a78744d2eac208b61a864f81d59dc9055568d
src/qt/bitcoingui.cpp
Add MerchantListView FTC reports commit
- tabGroup->addAction(accountReportAction);
Bitcoin code replaced reports
+ tabGroup->addAction(accountReportAction); + + 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);
Bitcoin code replaced reports
+ connect(merchantListAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized())); + connect(merchantListAction, SIGNAL(triggered()), this, SLOT(gotoMerchantListPage())); +
FTC reports code added
- QMenu *file = appMenuBar->addMenu(tr("&File")); + QMenu *file = appMenuBar->addMenu(tr("&Wallet"));
Bitcoin code replaced.
- file->addAction(signMessageAction); - file->addAction(verifyMessageAction); + file->addSeparator(); + file->addAction(encryptWalletAction); + file->addAction(changePassphraseAction);
Bitcoin code replaced, scrypt?
+ settings->addAction(optionsAction); + settings->addSeparator();
Code added
- settings->addAction(changePassphraseAction);
Bitcoin code removed.
+ settings->addAction(signMessageAction); + settings->addAction(verifyMessageAction); settings->addSeparator(); settings->addSeparator();
-
settings->addAction(openRPCConsoleAction);
Replace Bitcoin code
- settings->addAction(optionsAction); - QMenu *help = appMenuBar->addMenu(tr("&Help")); - help->addAction(openRPCConsoleAction);
Bitcoin code removed
+ QMenu *advanced = appMenuBar->addMenu(tr("&Advanced")); + advanced->addAction(accountReportAction); + advanced->addSeparator(); + advanced->addAction(merchantListAction); } } + + QMenu *help = appMenuBar->addMenu(tr("&Help"));
Code added
+ toolbar->addAction(merchantListAction); + merchantListAction->setEnabled(enabled); + void BitcoinGUI::gotoMerchantListPage() + { + merchantListAction->setChecked(true); + if (walletFrame) walletFrame->gotoMerchantListPage(); + } +
Code added
-