Skip to content

Commit

Permalink
Quarkcoin to Quark transition in Qt
Browse files Browse the repository at this point in the history
  • Loading branch information
geocoin committed Dec 22, 2013
1 parent ef38eab commit 20f503b
Show file tree
Hide file tree
Showing 76 changed files with 4,288 additions and 4,287 deletions.
1 change: 1 addition & 0 deletions contrib/installericons/info
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.by shakezula
Binary file added contrib/installericons/qrk-installer-side.bmp
Binary file not shown.
Binary file added contrib/installericons/qrk-installer-top.bmp
Binary file not shown.
Binary file added contrib/installericons/qrk-installer.ico
Binary file not shown.
Binary file added contrib/installericons/qrk-uninstaller.ico
Binary file not shown.
Binary file added contrib/installericons/qrk.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions src/qt/aboutdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ AboutDialog::AboutDialog(QWidget *parent) :

// Set current copyright year
ui->copyrightLabel->setText(
tr("Copyright") + QString(" &copy; 2009-%1 ").arg(COPYRIGHT_YEAR) + tr("The Bitcoin developers") + QString(",<br>") +
tr("Copyright") + QString(" &copy; 2013 ") + tr("The Quarkcoin developers"));
tr("Copyright") + QString(" &copy; 2009-%1 ").arg(COPYRIGHT_YEAR) + tr("The Bitcoin Developers") + QString(",<br>") +
tr("Copyright") + QString(" &copy; 2013 ") + tr("The Quark Developers"));
}

void AboutDialog::setModel(ClientModel *model)
Expand Down
4 changes: 2 additions & 2 deletions src/qt/addressbookpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ AddressBookPage::AddressBookPage(Mode mode, Tabs tab, QWidget *parent) :
switch(tab)
{
case SendingTab:
ui->labelExplanation->setText(tr("These are your Quarkcoin addresses for sending payments. Always check the amount and the receiving address before sending coins."));
ui->labelExplanation->setText(tr("These are your Quark addresses for sending payments. Always check the amount and the receiving address before sending coins."));
ui->deleteAddress->setVisible(true);
ui->signMessage->setVisible(false);
break;
case ReceivingTab:
ui->labelExplanation->setText(tr("These are your Quarkcoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you."));
ui->labelExplanation->setText(tr("These are your Quark addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you."));
ui->deleteAddress->setVisible(false);
ui->signMessage->setVisible(true);
break;
Expand Down
4 changes: 2 additions & 2 deletions src/qt/askpassphrasedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void AskPassphraseDialog::accept()
break;
}
QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm wallet encryption"),
tr("Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR QUARKCOINS</b>!") + "<br><br>" + tr("Are you sure you wish to encrypt your wallet?"),
tr("Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR QUARK</b>!") + "<br><br>" + tr("Are you sure you wish to encrypt your wallet?"),
QMessageBox::Yes|QMessageBox::Cancel,
QMessageBox::Cancel);
if(retval == QMessageBox::Yes)
Expand All @@ -109,7 +109,7 @@ void AskPassphraseDialog::accept()
{
QMessageBox::warning(this, tr("Wallet encrypted"),
"<qt>" +
tr("Quarkcoin will close now to finish the encryption process. "
tr("Quark will close now to finish the encryption process. "
"Remember that encrypting your wallet cannot fully protect "
"your coins from being stolen by malware infecting your computer.") +
"<br><br><b>" +
Expand Down
22 changes: 11 additions & 11 deletions src/qt/bitcoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ static void InitMessage(const std::string &message)
*/
static std::string Translate(const char* psz)
{
return QCoreApplication::translate("quarkcoin-core", psz).toStdString();
return QCoreApplication::translate("quark-core", psz).toStdString();
}

/* Handle runaway exceptions. Shows a message box with the problem and quits the program.
*/
static void handleRunawayException(std::exception *e)
{
PrintExceptionContinue(e, "Runaway exception");
QMessageBox::critical(0, "Runaway exception", BitcoinGUI::tr("A fatal error occurred. Quarkcoin can no longer continue safely and will quit.") + QString("\n\n") + QString::fromStdString(strMiscWarning));
QMessageBox::critical(0, "Runaway exception", BitcoinGUI::tr("A fatal error occurred. Quark can no longer continue safely and will quit.") + QString("\n\n") + QString::fromStdString(strMiscWarning));
exit(1);
}

Expand Down Expand Up @@ -137,25 +137,25 @@ int main(int argc, char *argv[])
// Install global event filter that makes sure that long tooltips can be word-wrapped
app.installEventFilter(new GUIUtil::ToolTipToRichTextFilter(TOOLTIP_WRAP_THRESHOLD, &app));

// ... then quarkcoin.conf:
// ... then quark.conf:
if (!boost::filesystem::is_directory(GetDataDir(false)))
{
// This message can not be translated, as translation is not initialized yet
// (which not yet possible because lang=XX can be overridden in quarkcoin.conf in the data directory)
QMessageBox::critical(0, "Quarkcoin",
// (which not yet possible because lang=XX can be overridden in quark.conf in the data directory)
QMessageBox::critical(0, "Quark",
QString("Error: Specified data directory \"%1\" does not exist.").arg(QString::fromStdString(mapArgs["-datadir"])));
return 1;
}
ReadConfigFile(mapArgs, mapMultiArgs);

// Application identification (must be set before OptionsModel is initialized,
// as it is used to locate QSettings)
QApplication::setOrganizationName("Quarkcoin");
QApplication::setOrganizationDomain("quarkcoin.org");
QApplication::setOrganizationName("Quark");
QApplication::setOrganizationDomain("quark.org");
if(GetBoolArg("-testnet")) // Separate UI settings for testnet
QApplication::setApplicationName("Quarkcoin-Qt-testnet");
QApplication::setApplicationName("Quark-Qt-testnet");
else
QApplication::setApplicationName("Quarkcoin-Qt");
QApplication::setApplicationName("Quark-Qt");

// ... then GUI settings:
OptionsModel optionsModel;
Expand Down Expand Up @@ -264,7 +264,7 @@ int main(int argc, char *argv[])
}

// Now that initialization/startup is done, process any command-line
// quarkcoin: URIs
// quark: URIs
QObject::connect(paymentServer, SIGNAL(receivedURI(QString)), &window, SLOT(handleURI(QString)));
QTimer::singleShot(100, paymentServer, SLOT(uiReady()));

Expand All @@ -275,7 +275,7 @@ int main(int argc, char *argv[])
window.removeAllWallets();
guiref = 0;
}
// Shutdown the core and its threads, but don't exit Quarkcoin-Qt here
// Shutdown the core and its threads, but don't exit Quark-Qt here
threadGroup.interrupt_all();
threadGroup.join_all();
Shutdown();
Expand Down
24 changes: 12 additions & 12 deletions src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ BitcoinGUI::BitcoinGUI(QWidget *parent) :
prevBlocks(0)
{
restoreWindowGeometry();
setWindowTitle(tr("Quarkcoin") + " - " + tr("Wallet"));
setWindowTitle(tr("Quark") + " - " + tr("Wallet"));
#ifndef Q_OS_MAC
QApplication::setWindowIcon(QIcon(":icons/bitcoin"));
setWindowIcon(QIcon(":icons/bitcoin"));
Expand Down Expand Up @@ -169,7 +169,7 @@ void BitcoinGUI::createActions()
tabGroup->addAction(overviewAction);

sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Send"), this);
sendCoinsAction->setStatusTip(tr("Send coins to a Quarkcoin address"));
sendCoinsAction->setStatusTip(tr("Send coins to a Quark address"));
sendCoinsAction->setToolTip(sendCoinsAction->statusTip());
sendCoinsAction->setCheckable(true);
sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2));
Expand Down Expand Up @@ -211,14 +211,14 @@ void BitcoinGUI::createActions()
quitAction->setStatusTip(tr("Quit application"));
quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));
quitAction->setMenuRole(QAction::QuitRole);
aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About Quarkcoin"), this);
aboutAction->setStatusTip(tr("Show information about Quarkcoin"));
aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About Quark"), this);
aboutAction->setStatusTip(tr("Show information about Quark"));
aboutAction->setMenuRole(QAction::AboutRole);
aboutQtAction = new QAction(QIcon(":/trolltech/qmessagebox/images/qtlogo-64.png"), tr("About &Qt"), this);
aboutQtAction->setStatusTip(tr("Show information about Qt"));
aboutQtAction->setMenuRole(QAction::AboutQtRole);
optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);
optionsAction->setStatusTip(tr("Modify configuration options for Quarkcoin"));
optionsAction->setStatusTip(tr("Modify configuration options for Quark"));
optionsAction->setMenuRole(QAction::PreferencesRole);
toggleHideAction = new QAction(QIcon(":/icons/bitcoin"), tr("&Show / Hide"), this);
toggleHideAction->setStatusTip(tr("Show or hide the main Window"));
Expand All @@ -231,9 +231,9 @@ void BitcoinGUI::createActions()
changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Passphrase..."), this);
changePassphraseAction->setStatusTip(tr("Change the passphrase used for wallet encryption"));
signMessageAction = new QAction(QIcon(":/icons/edit"), tr("Sign &message..."), this);
signMessageAction->setStatusTip(tr("Sign messages with your Quarkcoin addresses to prove you own them"));
signMessageAction->setStatusTip(tr("Sign messages with your Quark addresses to prove you own them"));
verifyMessageAction = new QAction(QIcon(":/icons/transaction_0"), tr("&Verify message..."), this);
verifyMessageAction->setStatusTip(tr("Verify messages to ensure they were signed with specified Quarkcoin addresses"));
verifyMessageAction->setStatusTip(tr("Verify messages to ensure they were signed with specified Quark addresses"));

openRPCConsoleAction = new QAction(QIcon(":/icons/debugwindow"), tr("&Debug window"), this);
openRPCConsoleAction->setStatusTip(tr("Open debugging and diagnostic console"));
Expand Down Expand Up @@ -357,7 +357,7 @@ void BitcoinGUI::createTrayIcon()
#ifndef Q_OS_MAC
trayIcon = new QSystemTrayIcon(this);

trayIcon->setToolTip(tr("Quarkcoin client"));
trayIcon->setToolTip(tr("Quark client"));
trayIcon->setIcon(QIcon(":/icons/toolbar"));
trayIcon->show();
#endif
Expand Down Expand Up @@ -498,7 +498,7 @@ void BitcoinGUI::setNumConnections(int count)
default: icon = ":/icons/connect_4"; break;
}
labelConnectionsIcon->setPixmap(QIcon(icon).pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
labelConnectionsIcon->setToolTip(tr("%n active connection(s) to Quarkcoin network", "", count));
labelConnectionsIcon->setToolTip(tr("%n active connection(s) to Quark network", "", count));
}

void BitcoinGUI::setNumBlocks(int count, int nTotalBlocks)
Expand Down Expand Up @@ -597,7 +597,7 @@ void BitcoinGUI::setNumBlocks(int count, int nTotalBlocks)

void BitcoinGUI::message(const QString &title, const QString &message, unsigned int style, bool *ret)
{
QString strTitle = tr("Quarkcoin"); // default title
QString strTitle = tr("Quark"); // default title
// Default to information icon
int nMBoxIcon = QMessageBox::Information;
int nNotifyIcon = Notificator::Information;
Expand Down Expand Up @@ -728,7 +728,7 @@ void BitcoinGUI::dropEvent(QDropEvent *event)
if (nValidUrisFound)
walletFrame->gotoSendCoinsPage();
else
message(tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid Quarkcoin address or malformed URI parameters."),
message(tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid Quark address or malformed URI parameters."),
CClientUIInterface::ICON_WARNING);
}

Expand All @@ -751,7 +751,7 @@ void BitcoinGUI::handleURI(QString strURI)
{
// URI has to be valid
if (!walletFrame->handleURI(strURI))
message(tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid Quarkcoin address or malformed URI parameters."),
message(tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid Quark address or malformed URI parameters."),
CClientUIInterface::ICON_WARNING);
}

Expand Down
Loading

0 comments on commit 20f503b

Please sign in to comment.