Browse Source

replace Anoncoin to Gostcoin

pull/5/head
orignal 7 years ago
parent
commit
133adfa36a
  1. 24
      src/qt/bitcoingui.cpp
  2. 6
      src/qt/splashscreen.cpp

24
src/qt/bitcoingui.cpp

@ -74,7 +74,7 @@ BitcoinGUI::BitcoinGUI(QWidget *parent) :
prevBlocks(0) prevBlocks(0)
{ {
restoreWindowGeometry(); restoreWindowGeometry();
setWindowTitle(tr("Anoncoin") + " - " + tr("Wallet")); setWindowTitle(tr("Gostcoin") + " - " + tr("Wallet"));
#ifndef Q_OS_MAC #ifndef Q_OS_MAC
QApplication::setWindowIcon(QIcon(":icons/bitcoin")); QApplication::setWindowIcon(QIcon(":icons/bitcoin"));
setWindowIcon(QIcon(":icons/bitcoin")); setWindowIcon(QIcon(":icons/bitcoin"));
@ -182,7 +182,7 @@ void BitcoinGUI::createActions()
tabGroup->addAction(overviewAction); tabGroup->addAction(overviewAction);
sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Send"), this); sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Send"), this);
sendCoinsAction->setStatusTip(tr("Send coins to a Anoncoin address")); sendCoinsAction->setStatusTip(tr("Send coins to a Gostcoin address"));
sendCoinsAction->setToolTip(sendCoinsAction->statusTip()); sendCoinsAction->setToolTip(sendCoinsAction->statusTip());
sendCoinsAction->setCheckable(true); sendCoinsAction->setCheckable(true);
sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2)); sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2));
@ -224,14 +224,14 @@ void BitcoinGUI::createActions()
quitAction->setStatusTip(tr("Quit application")); quitAction->setStatusTip(tr("Quit application"));
quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q)); quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));
quitAction->setMenuRole(QAction::QuitRole); quitAction->setMenuRole(QAction::QuitRole);
aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About Anoncoin"), this); aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About Gostcoin"), this);
aboutAction->setStatusTip(tr("Show information about Anoncoin")); aboutAction->setStatusTip(tr("Show information about Gostcoin"));
aboutAction->setMenuRole(QAction::AboutRole); aboutAction->setMenuRole(QAction::AboutRole);
aboutQtAction = new QAction(QIcon(":/trolltech/qmessagebox/images/qtlogo-64.png"), tr("About &Qt"), this); aboutQtAction = new QAction(QIcon(":/trolltech/qmessagebox/images/qtlogo-64.png"), tr("About &Qt"), this);
aboutQtAction->setStatusTip(tr("Show information about Qt")); aboutQtAction->setStatusTip(tr("Show information about Qt"));
aboutQtAction->setMenuRole(QAction::AboutQtRole); aboutQtAction->setMenuRole(QAction::AboutQtRole);
optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this); optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);
optionsAction->setStatusTip(tr("Modify configuration options for Anoncoin")); optionsAction->setStatusTip(tr("Modify configuration options for Gostcoin"));
optionsAction->setMenuRole(QAction::PreferencesRole); optionsAction->setMenuRole(QAction::PreferencesRole);
toggleHideAction = new QAction(QIcon(":/icons/bitcoin"), tr("&Show / Hide"), this); toggleHideAction = new QAction(QIcon(":/icons/bitcoin"), tr("&Show / Hide"), this);
toggleHideAction->setStatusTip(tr("Show or hide the main Window")); toggleHideAction->setStatusTip(tr("Show or hide the main Window"));
@ -244,9 +244,9 @@ void BitcoinGUI::createActions()
changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Passphrase..."), this); changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Passphrase..."), this);
changePassphraseAction->setStatusTip(tr("Change the passphrase used for wallet encryption")); changePassphraseAction->setStatusTip(tr("Change the passphrase used for wallet encryption"));
signMessageAction = new QAction(QIcon(":/icons/edit"), tr("Sign &message..."), this); signMessageAction = new QAction(QIcon(":/icons/edit"), tr("Sign &message..."), this);
signMessageAction->setStatusTip(tr("Sign messages with your Anoncoin addresses to prove you own them")); signMessageAction->setStatusTip(tr("Sign messages with your Gostcoin addresses to prove you own them"));
verifyMessageAction = new QAction(QIcon(":/icons/transaction_0"), tr("&Verify message..."), this); verifyMessageAction = new QAction(QIcon(":/icons/transaction_0"), tr("&Verify message..."), this);
verifyMessageAction->setStatusTip(tr("Verify messages to ensure they were signed with specified Anoncoin addresses")); verifyMessageAction->setStatusTip(tr("Verify messages to ensure they were signed with specified Gostcoin addresses"));
openRPCConsoleAction = new QAction(QIcon(":/icons/debugwindow"), tr("&Debug window"), this); openRPCConsoleAction = new QAction(QIcon(":/icons/debugwindow"), tr("&Debug window"), this);
openRPCConsoleAction->setStatusTip(tr("Open debugging and diagnostic console")); openRPCConsoleAction->setStatusTip(tr("Open debugging and diagnostic console"));
@ -426,7 +426,7 @@ void BitcoinGUI::createTrayIcon()
#ifndef Q_OS_MAC #ifndef Q_OS_MAC
trayIcon = new QSystemTrayIcon(this); trayIcon = new QSystemTrayIcon(this);
trayIcon->setToolTip(tr("Anoncoin client")); trayIcon->setToolTip(tr("Gostcoin client"));
trayIcon->setIcon(QIcon(":/icons/toolbar")); trayIcon->setIcon(QIcon(":/icons/toolbar"));
trayIcon->show(); trayIcon->show();
#endif #endif
@ -568,7 +568,7 @@ void BitcoinGUI::setNumConnections(int count)
default: icon = ":/icons/connect_4"; break; default: icon = ":/icons/connect_4"; break;
} }
labelConnectionsIcon->setPixmap(QIcon(icon).pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE)); labelConnectionsIcon->setPixmap(QIcon(icon).pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
labelConnectionsIcon->setToolTip(tr("%n active connection(s) to Anoncoin network", "", count)); labelConnectionsIcon->setToolTip(tr("%n active connection(s) to Gostcoin network", "", count));
} }
void BitcoinGUI::setNumI2PConnections(int count) void BitcoinGUI::setNumI2PConnections(int count)
@ -583,7 +583,7 @@ void BitcoinGUI::setNumI2PConnections(int count)
default: i2pIcon = ":/icons/bwi2pconnect_4"; break; default: i2pIcon = ":/icons/bwi2pconnect_4"; break;
} }
labelI2PConnections->setPixmap(QPixmap(i2pIcon)); labelI2PConnections->setPixmap(QPixmap(i2pIcon));
labelI2PConnections->setToolTip(tr("%n active connection(s) to I2P-Anoncoin network", "", count)); labelI2PConnections->setToolTip(tr("%n active connection(s) to I2P-Gostcoin network", "", count));
} }
void BitcoinGUI::setNumBlocks(int count, int nTotalBlocks) void BitcoinGUI::setNumBlocks(int count, int nTotalBlocks)
@ -813,7 +813,7 @@ void BitcoinGUI::dropEvent(QDropEvent *event)
if (nValidUrisFound) if (nValidUrisFound)
walletFrame->gotoSendCoinsPage(); walletFrame->gotoSendCoinsPage();
else else
message(tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid Anoncoin address or malformed URI parameters."), message(tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid Gostcoin address or malformed URI parameters."),
CClientUIInterface::ICON_WARNING); CClientUIInterface::ICON_WARNING);
} }
@ -836,7 +836,7 @@ void BitcoinGUI::handleURI(QString strURI)
{ {
// URI has to be valid // URI has to be valid
if (!walletFrame->handleURI(strURI)) if (!walletFrame->handleURI(strURI))
message(tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid Anoncoin address or malformed URI parameters."), message(tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid Gostcoin address or malformed URI parameters."),
CClientUIInterface::ICON_WARNING); CClientUIInterface::ICON_WARNING);
} }

6
src/qt/splashscreen.cpp

@ -24,7 +24,9 @@ SplashScreen::SplashScreen(const QPixmap &pixmap, Qt::WindowFlags f) :
QString versionText = QString("Version %1 ").arg(QString::fromStdString(FormatFullVersion())); QString versionText = QString("Version %1 ").arg(QString::fromStdString(FormatFullVersion()));
QString copyrightText1 = QChar(0xA9)+QString(" 2009-%1 ").arg(COPYRIGHT_YEAR) + QString(tr("The Bitcoin developers")); QString copyrightText1 = QChar(0xA9)+QString(" 2009-%1 ").arg(COPYRIGHT_YEAR) + QString(tr("The Bitcoin developers"));
QString copyrightText2 = QChar(0xA9)+QString(" 2011-%1 ").arg(COPYRIGHT_YEAR) + QString(tr("The Litecoin developers")); QString copyrightText2 = QChar(0xA9)+QString(" 2011-%1 ").arg(COPYRIGHT_YEAR) + QString(tr("The Litecoin developers"));
QString copyrightText3 = QChar(0xA9)+QString(" %1 ").arg(COPYRIGHT_YEAR) + QString(tr("The Anoncoin developers")); QString copyrightText3 = QChar(0xA9)+QString(" 2013-%1 ").arg(COPYRIGHT_YEAR) + QString(tr("The Anoncoin developers"));
QString copyrightText4 = QChar(0xA9)+QString(" 2015-%1 ").arg(COPYRIGHT_YEAR) + QString(tr("The i2pd developers"));
QString copyrightText5 = QChar(0xA9)+QString(" %1 ").arg(COPYRIGHT_YEAR) + QString(tr("The Gostcoin developers"));
QString font = "Arial"; QString font = "Arial";
@ -48,6 +50,8 @@ SplashScreen::SplashScreen(const QPixmap &pixmap, Qt::WindowFlags f) :
pixPaint.drawText(paddingLeftCol2,paddingTopCol2+line1,copyrightText1); pixPaint.drawText(paddingLeftCol2,paddingTopCol2+line1,copyrightText1);
pixPaint.drawText(paddingLeftCol2,paddingTopCol2+line2,copyrightText2); pixPaint.drawText(paddingLeftCol2,paddingTopCol2+line2,copyrightText2);
pixPaint.drawText(paddingLeftCol2,paddingTopCol2+line3,copyrightText3); pixPaint.drawText(paddingLeftCol2,paddingTopCol2+line3,copyrightText3);
pixPaint.drawText(paddingLeftCol2,paddingTopCol2+line3,copyrightText4);
pixPaint.drawText(paddingLeftCol2,paddingTopCol2+line3,copyrightText5);
pixPaint.end(); pixPaint.end();

Loading…
Cancel
Save