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